2007.04.29 10:27 "[Tiff] VBScript and ImageMagick for Couting tiff pages", by B1FF NEWBIE

I found a way for VBScripts:

Using ImageMagick-6.3.3-Q16


Set img = CreateObject("ImageMagickObject.MagickImage.1")
msgs = img.Identify ("-format","%p", "C:\2page.tif")
MsgBox msgs


That prints the number of pages perfectly. But when using certain tiff files i get this error:

identify: 2page.tif: wrong data type 4 for "Orientation"; tag ignored. 'TIFFReaderDirectory'

I can turn off error handling within VBScript but it doesn't read the page number.

It works perfectly with normal tiff files.

Can I turn off error messages withing ImageMagick?

_________________________________________________________________ Consigue aquí las mejores y mas recientes ofertas de trabajo en América Latina y USA: http://latam.msn.com/empleos/