2007.04.27 12:27 "[Tiff] libtiff in VBScripts", by B1FF NEWBIE

2007.05.01 19:14 "[Tiff] VBScript and ImageMagick for Couting tiff pages with error code", by B1FF NEWBIE

I don't have tiffinfo.exe on my PC but using the command: identify -format "%p " c:\2page.tif presents me the correct page count.

But always, it doesn't matter what tiff file i take, I get that error message. I think it must be something wrong with the tiff files coming from my scanner. When I create other tiff files (made by Photoshop) I get no errors.

Maybe it's because my scanner use a tag that ImageMagick can't understand (more then tag 4).

For the tiff files that are giving you errors, if you use tiffinfo.exe against them, do they give you a proper page count?

-----Original Message-----

From: tiff-bounces@lists.maptools.org [mailto:tiff-bounces@lists.maptools.org] On Behalf Of B1FF NEWBIE

Sent: Sunday, April 29, 2007 5:27 AM

Subject: [Tiff] VBScript and ImageMagick for Couting tiff pages

I found a way for VBScripts:

Using ImageMagick-6.3.3-Q16

<VBScript-on>

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

</VBScript-off>

That prints the number of pages perfectly But with error message.

_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger:
http://messenger.latam.msn.com/