How to create pyramid tiff files with JMagic

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
emilian.utma

How to create pyramid tiff files with JMagic

Post by emilian.utma »

Hello

I would like to see a complete example in order to create a pyramid encoded TIFF image.
I have tried the following code but in some programs the image is not recognized as .ptif:

//get the image//
ImageInfo info = new ImageInfo(calePoza);
MagickImage image = new MagickImage(info);
image.setFileName("image.ptif");
image.writeImage(info);
//

Best regards
Emil
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: How to create pyramid tiff files with JMagic

Post by magick »

Its possible your version of ImageMagick does not include TIFF support. Type
  • identify -list format
Does the TIFF tag have a mode of rw+?
emilian.utma

Re: How to create pyramid tiff files with JMagic

Post by emilian.utma »

Hello

I think it does. Here is the result of "identify -list format" command:
...
PTIF* TIFF rw- Pyramid encoded TIFF
...
TIFF* TIFF rw+ Tagged Image File Format (LIBTIFF, Version 3.8.2)
...

Also I'm using: ImageMagick-6.3.6-Q16-windows-dll.exe and JMagick 6.2.6. (ImageMagick-6.2.9-4-Q16-windows-dll.exe - I could not found it).

Any other suggestion?

Best regards,
Emil
Post Reply