PNG export quality

Post questions on how to use or achieve an effect in Inkscape.
calebjellyfish
Posts: 3
Joined: Sun Feb 17, 2019 1:14 am

PNG export quality

Postby calebjellyfish » Sun Feb 17, 2019 2:00 am

Hello, i'm new to this forum and I'm a pretty new inkscape user. I'm using it to develop landscape designs. I am using Windows 10 Home, and I'm exporting my project as PNG image at 300 dpi, and for some reason when I open the image after exporting it appears different on my screen than what it looks like in Inkscape. Also when I open the PNG image in the general photo viewer vs a program like Microsoft Paint, the fonts and lines look faded and some elements don't display at all when opened in the photo viewer. Also the thumbnail/icon image in File Viewer looks different compared to when I open it in the photo viewer. A similar issue is happening on my phone (when I view the PNG file on my phone, it looks faded and is missing some elements).

Does anyone know why this is happening? Is this just a windows glitch or is there something going on with the Inkscape export? I've attached a low res version of this file to this post.

Thanks for the help!
Attachments
Skyland Bubble Plan v2_low.png
Skyland Bubble Plan v2_low.png (150.83 KiB) Viewed 1149 times

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: PNG export quality

Postby druban » Sun Feb 17, 2019 7:50 am

Different programs read the transparency in PNG differently or not at all. This may be part of the problem you are seeing. Additionally there is always the question of antialiasing making text and other small high contrast elements look fuzzy and gray when exported to raster formats, and the solution to THAT problem is quite elaborate.
it would be helpful to see your file and maybe a screenshot of Inkscape with your file open and one of the exported file to see what elements were changed or dropped. The attached PNG doesn't help because I can't tell what is missing or different
Your mind is what you think it is.

User avatar
z3z
Posts: 36
Joined: Wed Jul 22, 2015 5:03 pm
Location: Scotland

Re: PNG export quality

Postby z3z » Sun Feb 17, 2019 10:36 am

You've got quite a number of semi-transparent objects, as far as I can tell. They'll look different depending on the background they're viewed against.

Try creating a white rectangle the same size as your image, and move it to the very bottom underneath all other objects (or create a new layer at the bottom and put it there). Now export your image again. Does that help?

calebjellyfish
Posts: 3
Joined: Sun Feb 17, 2019 1:14 am

Re: PNG export quality

Postby calebjellyfish » Mon Feb 18, 2019 12:03 pm

druban wrote:Different programs read the transparency in PNG differently or not at all. This may be part of the problem you are seeing. Additionally there is always the question of antialiasing making text and other small high contrast elements look fuzzy and gray when exported to raster formats, and the solution to THAT problem is quite elaborate.
it would be helpful to see your file and maybe a screenshot of Inkscape with your file open and one of the exported file to see what elements were changed or dropped. The attached PNG doesn't help because I can't tell what is missing or different


Heres a screenshot from Inkscape and screenshot from the PNG file when I open it in Photo Viewer (Microsoft). The layer showing the roof of the house changes to white, and several of the elements in the legend appear to be a different color/faded, and the text is less defined/faded. But yes it does seem to only be happening with layers/elements that aren't at 100% opacity and that have nothing behind them.

Thanks for the help with this!
Attachments
skyland_screenshot2.png
skyland_screenshot2.png (234.79 KiB) Viewed 1085 times
skyland_screenshot.png
skyland_screenshot.png (180.02 KiB) Viewed 1085 times

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: PNG export quality

Postby druban » Mon Feb 18, 2019 2:44 pm

if you shared file it would be easier! This way is just slow and trial and error...but try editing your document properties to have opaque white background maybe? Are any of your layers set to screen or multiply? Also have you tried opening the png in a browser and not in photos, which is optimized for jpegs
Your mind is what you think it is.

calebjellyfish
Posts: 3
Joined: Sun Feb 17, 2019 1:14 am

Re: PNG export quality

Postby calebjellyfish » Mon Feb 18, 2019 11:25 pm

Ahh, druban you are the best! I just changed the whole document background to white instead of transparent using the properties menu, that fixed everything. Never would have figured that out on my own. Thanks for the help!!

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: PNG export quality

Postby druban » Tue Feb 19, 2019 4:41 pm

Glad that worked!
Your mind is what you think it is.


Return to “Help with using Inkscape”