[magick-users] rotated image different bit depth

Rob Redmon Rob.Redmon at noaa.gov
Tue Mar 4 12:15:02 PST 2008


Hi,

When I use "-rotate" to rotate a 8-bit PNG, the result is 16-bit.  Is 
there a way to preserve bit-depth?

# before rotation
robr at cartman[13:11:25][/tmp/cdmp/tmp/] file PO09__1957_DEC_IONOGRAM_0010.png
PO09__1957_DEC_IONOGRAM_0010.png: PNG image data, 4720 x 2368, 8-bit 
grayscale, non-interlaced

# rotate
robr at cartman[13:11:31][/tmp/cdmp/tmp/] convert -rotate 180 
PO09__1957_DEC_IONOGRAM_0010.png PO09__1957_DEC_IONOGRAM_0010.png

# after rotation
robr at cartman[13:11:49][/tmp/cdmp/tmp/] file PO09__1957_DEC_IONOGRAM_0010.png
PO09__1957_DEC_IONOGRAM_0010.png: PNG image data, 4720 x 2368, 16-bit 
grayscale, non-interlaced

Thanks,

Rob

-- 
Rob Redmon - Physicist - Ionosphere
NOAA/NGDC
325 Broadway E/GC2
Boulder, Colorado 80305
Tel: (303) 497-4331
Fax: (303) 497-6513
Rob.Redmon at noaa.gov

"Engineering is the art of making what you want from things you can get." 



More information about the Magick-users mailing list