jespino / inkscape-export-layers

MIT License
40 stars 19 forks source link

Problem exporting jpg, and layer visibility issue on OSX #2

Closed ugajin-nijagu closed 7 years ago

ugajin-nijagu commented 8 years ago

There is an issue with Inkscape v0.91 on pre-build for OSX

Example:

I have file with two layers named with [export] prefix and export to .png

If I run extension a second time in .jpg mode, the previously exported .png files are gone!

Thanks.

-u

Xaviju commented 8 years ago

Does not export .jpg, and deletes previously exported png files when in .jpg mode

This is the expected behavior. Inkscape only exports to PNG. The extension uses imagemagick to convert the file to JPEG. If you run it twice with the same name, it overrides the previous files and then deletes the PNG. The extension could be enhanced by adding a property to export both. But, for the moment, you can just change the name of the layers and export again and you will get two different files.

For exporting JPEG, please ensure that you have imagemagick installed. Its a required dependency. I will review the documentation.

ugajin-nijagu commented 8 years ago

It will be helpful if you make clear any required dependencies. AFAIK OS X pre-build will not usually include image magic, and I won't be installing it.
Also, I am surprised that two files with identical file names, but different filename extensions should overwrite each other. This is unheard of behaviour on OS X. In addition, it is't very user friendly, to have to change the layer names in order to export to both formats. Inkscape may not export, but it does save to other formats, including .xcf. You do not comment on the layer visibility issue. Thanks -u

jespino commented 8 years ago

I agree, this behavior must be fixed, is a bit agressive to delete a file without asking. My idea is to generate the png as a temporary filename when exporting to jpeg.

Thanks for your feedback I going to reopen the issue to improve this part as soon as posible.

jespino commented 7 years ago

Solved! Thanks again :)