[solved] Unexpected error exporting rectangle as png

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
Pbsouthwood
Posts: 4
Joined: Wed Oct 21, 2015 8:31 pm

[solved] Unexpected error exporting rectangle as png

Postby Pbsouthwood » Wed Oct 21, 2015 8:47 pm

I tried to export a rectangle to a previously named file saved from the same rectangle on another occasion and got error "The chosen area to be exported is invalid" I tried deleting the rectangle and creating a new one of the same extents, but got the same error. I also tried exiting Inkscape and reloading, with same result, Same thing happens when I try a different rectangle in the same file, same result. I opened a recent file and tried to export a rectangle that worked fine a few days a go, but got same error.
I am using Inkscape 0.91pre3 r13670

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Unexpected error exporting rectangle as png

Postby hulf2012 » Thu Oct 22, 2015 12:45 am

Hello

It's a strange problem. Can you share your svg file? or at least a similar sample?
... As far as I remember, Inkscape saves the last file direction used when exporting to PNG. It puts them as an XML tag into the SVG file. Perhaps, your problem is related with that. But to be sure, It's better to see your SVG file. Or, You can do it by yourself, opening the svg file in a text editor, and looking for something that looks like your last saved file direction. When found, try to delete it. It's something like


Code: Select all

<svg>
<element  ....   png_export_path = "direction/to/your file/yourfile.png">
</element >
</svg>


Something like that.

Please answer if you manage to solve your problem
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Unexpected error exporting rectangle as png

Postby Moini » Thu Oct 22, 2015 4:06 am

Two more things you could try:

- use the official version, not a prerelease version. I can't promise you won't get that error, but a few have been fixed since pre3.
- another idea: rename your preference file, then restart Inkscape. It will create a new preference file, and - of course - reset all your preferences to the default values
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Pbsouthwood
Posts: 4
Joined: Wed Oct 21, 2015 8:31 pm

Re: Unexpected error exporting rectangle as png

Postby Pbsouthwood » Thu Oct 22, 2015 4:01 pm

I tried opening in an older version Inkscape 0.48.4 r9939 and it exported the same rectangle to png without any problems. Now that I think of it, I may have had the same problem and the same solution the first time I exported that rectangle.
I opened the file in notebook and could not find the string png_export_path.
I would be quite happy for anyone to look at the file, but how do I attach it?
I will also try loading latest version and see if that makes any difference.

Pbsouthwood
Posts: 4
Joined: Wed Oct 21, 2015 8:31 pm

Re: Unexpected error exporting rectangle as png

Postby Pbsouthwood » Thu Oct 22, 2015 7:03 pm

I installed the latest stable version Inkscape 0.91 r13725 and the problem seems to have gone away.
Unless someone is interested in trying to find out what the problem was, I think we can call it solved.
Thanks
Peter

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: [solved] Unexpected error exporting rectangle as png

Postby Moini » Thu Oct 22, 2015 10:53 pm

Sounds good :) - if you encounter the problem again (I hope you won't, of course!), you can upload files here by switching to the 'full editor' mode, then at the bottom there's a tab labelled 'attachments'.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Pbsouthwood
Posts: 4
Joined: Wed Oct 21, 2015 8:31 pm

Re: [solved] Unexpected error exporting rectangle as png

Postby Pbsouthwood » Fri Oct 23, 2015 12:26 am

Thanks, I will do that if the need arises.
Cheers,
P

praveen117
Posts: 1
Joined: Sat Mar 26, 2016 12:10 pm

Re: [solved] Unexpected error exporting rectangle as png

Postby praveen117 » Sat Mar 26, 2016 12:21 pm

The main problem with the error message "The chosen area to be exported is invalid." is the settings done in the inkscape tool recently and you forgot what change you did. As per the solution it is very easy. In the export png image tool box you can see 4 options for export area. they are
1. Page 2. Drawing 3. selection 4. custom
First three options have no problem however the 4th option custom has all the variables set to 0 by default. (This means nothing is selected to export)
If you have selected custom but didn't give the dimensions then the message pops up.
Hence change it to either option 1.Page or 2.Drawing.
Hope this helps

Kennin
Posts: 31
Joined: Fri Mar 18, 2016 2:54 am

Re: [solved] Unexpected error exporting rectangle as png

Postby Kennin » Sun Oct 02, 2016 9:22 pm

praveen117 wrote:Hope this helps


Perfect! I just had the same issue, and your tip did it! Thanks!

ju_pastusa
Posts: 1
Joined: Thu Jul 06, 2017 9:52 am

Re: [solved] Unexpected error exporting rectangle as png

Postby ju_pastusa » Thu Jul 06, 2017 9:57 am

I've just ha the same issue. The answer is simple: you must be trying to export/save with the Custom exporting area, instead of the Page exporting area. Just click on the button written Page and it will export normally.


Return to “Discuss Software Issues”