[magick-users] Reading PNG with transparency broken
Anthony Thyssen
anthony at griffith.edu.au
Wed Dec 19 19:14:22 PST 2007
Miro Dietiker on wrote...
| Hi magicks
|
| I right switched from source files JPG to PNG source images in a database.
|
| Aim was to introduce transparency.
|
JPEG format can not save transparency!!!!
You are just luck you did not get a BLACK background, rather than the
white with some color.
That background is the 'undefined' color that us hidden by the PNG
transparency. that is transparent-red looks the same as
transparent-blue to use, but will be just red and blue when you save
directly to JPEG.
The solution is to remove the transparency by flateening the image to a
color of your choise...
convert image.png -background white -flatten image.jpg
| This is debian imagemagick:
| Version: ImageMagick 6.0.6 02/11/07 Q16 http://www.imagemagick.org
| Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC
|
Also your IM is EXTREMELY old!
Unfortunatally there is currently no way of generating new debian
packages and no debian package experts know how to generate such
packages. If we can get the help of a debian expert we could
probably setup the ability to generate of debian type packages.
I looked at the Debian package to try to figure this out, but did not
know enough with the current IM changes to get this working.
The only suggestion I have is to install a personal version of IM for
your system, outside the debian IM package.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
"Violence never solves anything." --- Attila the Hun.
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list