Hi,
I'm trying to solve an issue with Inkscape PNG export, that I encountered.
I grabbed the source, but I see two PNG exporters in there: cairo-exporter and libpng-exporter.
Which one is used by inkscape by default? So I know where I should look.
The issue at hand:
If the SVG background colour has alpha 0x09 or smaller, the colour channels in the resulting PNG are mangled towards zero.
When exporting a document with alpha between 0x0a and 0xff, the colour channels are preserved.
https://bugs.launchpad.net/inkscape/+bug/1713146
The exporters I found:
./extension/internal/cairo-png-out.cpp
./helper/png-write.cpp
Thanks.
PNG exporter code: cairo or libpng?
Re: PNG exporter code: cairo or libpng?
No guarantees, but I think the cairo png extension is for saving as Cairo PNG (it's a separate file format, and differs from the standard PNG export in some ways, e.g. does not support transparency.
So I'd say the other one is the one that is used.
But you will get better answers from the developers directly, either via developers' mailing list (https://sourceforge.net/p/inkscape/mail ... ape-devel/) or via IRC (development chat is listed at https://inkscape.org/en/community/discussion/ or more directly at https://inkscape.org/en/*developer/chat/)
So I'd say the other one is the one that is used.
But you will get better answers from the developers directly, either via developers' mailing list (https://sourceforge.net/p/inkscape/mail ... ape-devel/) or via IRC (development chat is listed at https://inkscape.org/en/community/discussion/ or more directly at https://inkscape.org/en/*developer/chat/)
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)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Re: PNG exporter code: cairo or libpng?
Thanks Moini.