Bug with export-background color if opacity=0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Medium
|
Unassigned |
Bug Description
Inkscape 0.91, tested on Mac OS X and Windows XP, same problem:
If you export a png and the opacity is set to zero, then the export-background color is ignored! This is a very new behaviour with 0.91 and a bug in my eyes. I export some images with a specific background color and full transparency to modify the transparency later in my workflow. With the new version 0.91 I had problems now. Try this:
Provide a simple test.svg and execute this two command lines:
inkscape.com test.svg --without-gui --export-area-page --export-
inkscape.com test.svg --without-gui --export-area-page --export-
The command line output shows:
DPI: 90
Background RRGGBBAA: 00ff0000
Area 0:0:512:512 exported to 512 x 512 pixels (90 dpi)
Bitmap saved as: test_000.png
DPI: 90
Background RRGGBBAA: 00ff0064
Area 0:0:512:512 exported to 512 x 512 pixels (90 dpi)
Bitmap saved as: test_100.png
In both cases the background color is set to green (#00ff00). The first one with full transparency, the second one with 100/255 = #64 opacity. If you check the transparent areas with GIMP now, you see the background color for the first version is set to black (#000000) - this is only if you use Inkscape 0.91. With the older versions all seems OK.
> If you export a png and the opacity is set to zero, then the
> export-background color is ignored! This is a very new behaviour with
> 0.91 and a bug in my eyes.
AFAIU this is a side-effect of an intentional change: wiki.inkscape. org/wiki/ index.php/ Release_ notes/0. 91#General
<quote>
* Canvas background color can be set without exporting it (background transparency is only used for export but not the canvas).
</quote>
http://
The change was implemented based on this earlier report: /bugs.launchpad .net/inkscape/ +bug/169623
* Bug #169623 (sf1492333) “Canvas color option”
https:/