transparency question - large files
Posted: 2008-06-20T11:00:19-07:00
im trying to convert an image that has a transparent background:
http://www.itsalmostreal.com/test.png
and replacing the background with solid white like:
http://www.itsalmostreal.com/done.png
i'll be operating on huge files (44inches x 80inches @ 300 dpi) so im trying to do this using a method other than the following ones, because they forever on large files:
whenever i try to kill the transparency, using either of the two following examples, the area that was transparent becomes black.
i also already tried this, but for some reason it doesnt work either
in short i need a quick way to make sure that all apps see the background as being white, and not black. the input image (test.png) is a product of converting a layered PSD to flat TIFF conversion using Apple's SIPS. i ran into problems loading large layered psd files (anyone know how to load the composite image in PSDs?), so i had to use something to convert them to a format i can use with IM (flat TIFF files).
i guess the quyestion im asking is... is there a way to remove set all transparent space to the color white without actually processing each pixel? can the image header be modified to do the deed?
thanks for any help!
im using -> ImageMagick 6.3.7 02/19/08 Q16 on Ubuntu Server 8.04
http://www.itsalmostreal.com/test.png
and replacing the background with solid white like:
http://www.itsalmostreal.com/done.png
i'll be operating on huge files (44inches x 80inches @ 300 dpi) so im trying to do this using a method other than the following ones, because they forever on large files:
Code: Select all
convert test.png -flatten done.png
Code: Select all
convert -size 1500x1500 xc:white test.png -geometry +0+0 -composite done.png
Code: Select all
convert test.png -alpha off done.png
Code: Select all
convert test.png -alpha reset done.png
Code: Select all
convert test.png -transparent-color white -alpha off done.png
in short i need a quick way to make sure that all apps see the background as being white, and not black. the input image (test.png) is a product of converting a layered PSD to flat TIFF conversion using Apple's SIPS. i ran into problems loading large layered psd files (anyone know how to load the composite image in PSDs?), so i had to use something to convert them to a format i can use with IM (flat TIFF files).
i guess the quyestion im asking is... is there a way to remove set all transparent space to the color white without actually processing each pixel? can the image header be modified to do the deed?
thanks for any help!
im using -> ImageMagick 6.3.7 02/19/08 Q16 on Ubuntu Server 8.04