AWARE [SYSTEMS]
AWare Systems, , Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
May 2007

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



New Datamatrix section



Valid HTML 4.01!



Thread

2007.05.01 19:14 "VBScript and ImageMagick for Couting tiff pages with error code", by <laxqiun@hotmail.com>
2007.05.01 19:41 "Re: VBScript and ImageMagick for Couting tiff pages with error code", by Bob Friesenhahn

2007.05.01 19:14 "VBScript and ImageMagick for Couting tiff pages with error code", by <laxqiun@hotmail.com>

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
To: tiff@lists.maptools.org
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/