Cannot process tiff files

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
SimonKravis
Posts: 4
Joined: 2013-03-25T16:44:12-07:00
Authentication code: 6789

Cannot process tiff files

Post by SimonKravis »

I'm using IM 6.8.3-Q8 (32 bit windows dynamic on XP) from a VBA environment using the IM Com object ImageMagickOject.MagickImage.1 to process a multi-page tiff file created by Ghostscript from PDF files.

Invocation is

Code: Select all

Set imgMkObj =CreateObject("ImageMagickOject.MagickImage.1")
When I use

Code: Select all

imgMkObj.Convert p1.tif p1.jpg
to convert from tiff to jpg I get the expected output with a single jpg created for each page

When i use

Code: Select all

imgMkObj.Convert p1.tif p2.tif
p2.tif gets created OK. It's much smaller than p1.tif, perhaps because it's compressed.

But if i try to put in a processing parameter eg

Code: Select all

imgMkObj.Convert p1.tif, "-blur 0x6", p2.tif 
or

Code: Select all

 imgMkObj.Convert p1.tif, "-resize 50%", p2.tif
Then p2.tif does not get created and no error condition is flagged.

Any ideas?
SimonKravis
Posts: 4
Joined: 2013-03-25T16:44:12-07:00
Authentication code: 6789

Re: Cannot process tiff files

Post by SimonKravis »

SimonKravis wrote:I'm using IM 6.8.3-Q8 (32 bit windows dynamic on XP) from a VBA environment using the IM Com object ImageMagickOject.MagickImage.1 to process a multi-page tiff file created by Ghostscript from PDF files.

Invocation is

Code: Select all

Set imgMkObj =CreateObject("ImageMagickOject.MagickImage.1")
When I use

Code: Select all

imgMkObj.Convert p1.tif p1.jpg
to convert from tiff to jpg I get the expected output with a single jpg created for each page

When i use

Code: Select all

imgMkObj.Convert p1.tif p2.tif
p2.tif gets created OK. It's much smaller than p1.tif, perhaps because it's compressed.

But if i try to put in a processing parameter eg

Code: Select all

imgMkObj.Convert p1.tif, "-blur 0x6", p2.tif 
or

Code: Select all

 imgMkObj.Convert p1.tif, "-resize 50%", p2.tif
Then p2.tif does not get created and no error condition is flagged.

Any ideas?
Problem is that for object called from VBA, all parameters need to be separated by commas eg

Code: Select all

imgMkObj.Convert p1.tif, "-blur", "0x6", p2.tif
Post Reply