Batch Convert TIF to PNG with transparency color
Posted: 2009-06-11T20:06:31-07:00
Hi,
I need to batch convert TIF files to PNG and set the transparent color to blue. I tried to use mogrify.exe from the portable download 6.5.3-Q16. Here's the command I used:
mogrify -format png -transparent blue *.tif
It does the conversion to png but only set the transparency to the first processed image. The rest of my png are not transparent. I'm aslo getting this message as the ouput:
C:\TIF>mogrify -format png -transparent blue *.tif
mogrify: MeetBDTR_Man0001.tif: invalid TIFF directory; tags are not sorted in ascending order. `TIFF
ReadDirectory' @ tiff.c/TIFFWarnings/525.
Any ideas ?
Thanks!
-eXoRt
I need to batch convert TIF files to PNG and set the transparent color to blue. I tried to use mogrify.exe from the portable download 6.5.3-Q16. Here's the command I used:
mogrify -format png -transparent blue *.tif
It does the conversion to png but only set the transparency to the first processed image. The rest of my png are not transparent. I'm aslo getting this message as the ouput:
C:\TIF>mogrify -format png -transparent blue *.tif
mogrify: MeetBDTR_Man0001.tif: invalid TIFF directory; tags are not sorted in ascending order. `TIFF
ReadDirectory' @ tiff.c/TIFFWarnings/525.
Any ideas ?
Thanks!
-eXoRt