I'm using ImageMagick Command Line tools to convert tiffs to png, resize them and remove the background by using clip (each tiff has an path)
Command without resizing:
Code: Select all
convert go.tif -alpha transparent -clip alpha.png
Code: Select all
Version: ImageMagick 6.6.9-7 2014-03-06 Q16 http://www.imagemagick.org
#================================
root@precise64:/var/www/sh/test# convert -list format | grep TIFF
EPT EPT rw- Encapsulated PostScript with TIFF preview
EPT2 EPT rw- Encapsulated PostScript Level II with TIFF preview
EPT3 EPT rw+ Encapsulated PostScript Level III with TIFF preview
GROUP4* TIFF rw- Raw CCITT Group4
PTIF* TIFF rw+ Pyramid encoded TIFF
TIFF* TIFF rw+ Tagged Image File Format (LIBTIFF, Version 3.9.5)
TIFF64* TIFF --- Tagged Image File Format (64-bit) (LIBTIFF, Version 3.9.5)
#================================
Code: Select all
convert.im6: no decode delegate for this image format `go.tif#1' @ error/blob.c/BlobToImage/364.
Code: Select all
Version: ImageMagick 6.7.7-10 2014-03-08 Q16 http://www.imagemagick.org
#================================
$ convert -list format | grep TIFF
EPT EPT rw- Encapsulated PostScript with TIFF preview
EPT2 EPT rw- Encapsulated PostScript Level II with TIFF preview
EPT3 EPT rw+ Encapsulated PostScript Level III with TIFF preview
GROUP4* TIFF rw- Raw CCITT Group4
PTIF* TIFF rw+ Pyramid encoded TIFF
TIFF* TIFF rw+ Tagged Image File Format (LIBTIFF, Version 3.9.6)
TIFF64* TIFF --- Tagged Image File Format (64-bit) (LIBTIFF, Version 3.9.6)
#================================
Code: Select all
convert.im6: go.tif: wrong data type 7 for "RichTIFFIPTC"; tag ignored. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/768.