[Pkg-pascal-devel] Change xcf2png -> ImageMagick breaks images with alpha channel

Michalis Kamburelis michalis.kambi at gmail.com
Thu Feb 11 12:46:12 GMT 2021


I checked the last change, to use ImageMagick to convert some XCF to
PNG within Castle Game Engine in Debian, and I don't think the command
works correctly.

Testcase:

cd src/ui/opengl/gui-images/
convert -layers flatten -background transparent FrameYellow.xcf
NewFrameYellow.png

You can now compare NewFrameYellow.png (which will be in Debian
package) vs FrameYellow.png in original CGE sources (attaching). The
former looks like it lost alpha channel, i.e. it is all yellow. while
it should be only a yellow frame with transparent area in the middle.

How can we fix it? In upstream, we use (obviously) jump GIMP to
convert XCF to PNG. I know that pulling GIMP as build-dependency of
CGE feels "heavy", but it seems like the most reliable solution.

Regards,
Michalis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NewFrameYellow.png
Type: image/png
Size: 299 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20210211/d1dfdb95/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FrameYellow.png
Type: image/png
Size: 191 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20210211/d1dfdb95/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FrameYellow.xcf
Type: image/x-xcf
Size: 1106 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20210211/d1dfdb95/attachment.bin>


More information about the Pkg-pascal-devel mailing list