crashes with large Tiff images

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
skan
Posts: 5
Joined: 2012-01-26T20:36:51-07:00
Authentication code: 8675308

crashes with large Tiff images

Post by skan »

Hello

I've installed ImageMagick-6.7.4-10-Q16-windows-x64-dll.exe
and I've found it crashes (IMDisplay) with large tiff images such as this one:
http://www.eea.europa.eu/data-and-maps/ ... 100_06.zip

The image is right because I can view it with other programs but Imagemagick takes all my PC memory (12GB) and freezes Windows 7 64bit).

Regards
Last edited by skan on 2012-01-26T20:41:12-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: crashes with large Tiff images

Post by fmw42 »

Is your image in BigTiff format? If so, see viewtopic.php?f=1&t=19308&p=75539&hilit=BigTiff#p75539
skan
Posts: 5
Joined: 2012-01-26T20:36:51-07:00
Authentication code: 8675308

Re: crashes with large Tiff images

Post by skan »

Hi

That post ends without a solution.
It suggests to use bigtiff libraries but it doesn't say how.
Is there any precompiled Windows version with BigTiff libraries?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: crashes with large Tiff images

Post by fmw42 »

Sorry I am not a Windows user, so I would not know. But I suggest you verify that your file is in BigTiff format, though I don't know how one does that unless there is some tiff app that give you the tiff format information. In unix there is tiffinfo. I don't know if your Windows has that or not. But you can try

tiffinfo yourimage.tiff
skan
Posts: 5
Joined: 2012-01-26T20:36:51-07:00
Authentication code: 8675308

Re: crashes with large Tiff images

Post by skan »

Hi

I've tried different programs and the only information I've got from this files is this:
ImageWidth (1 Long): 67000
ImageLength (1 Short): 58000
BitsPerSample (1 Short): 8
Compression (1 Short): LZW
Photometric (1 Short): Palette
StripOffsets (58000 Long): 466221, 466862, 467506, 468150, 468794,...
SamplesPerPixel (1 Short): 1
RowsPerStrip (1 Short): 1
StripByteCounts (58000 Long): 641, 644, 644, 644, 642, 644, 644, 644, 642,...
PlanarConfig (1 Short): Contig
Predictor (1 Short): 1
ColorMap (768 Short): 65535, 59110, 65535, 52428, 52428, 59110,...
SampleFormat (1 Short): 1
33550 (3 Double):
33922 (6 Double):
34735 (80 Short): 1, 1, 0, 18, 1024, 0, 1, 1, 1025, 0, 1, 1,...
34736 (7 Double):
34737 (69 ASCII): ETRS_1989_LAEA_L52_M10|GCS Name = GCS_ETRS_19...
42112 (86 ASCII): <GDALMetadata> <Item name="LAYER_TYPE" samp...
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: crashes with large Tiff images

Post by magick »

Try this command:
  • convert -limit map 0 -limit memory 0 g100_06.tif -resize 10% g100_06.png
The limit option forces the pixel cache to disk rather than memory. Its slow but it gets the job done.
skan
Posts: 5
Joined: 2012-01-26T20:36:51-07:00
Authentication code: 8675308

Re: crashes with large Tiff images

Post by skan »

Ups!, I've already uninstalled Imagemagick
Anyway I think my computer has enough memory (12GB) to open 150MB files, even if they are compressed.

thanks anyway
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: crashes with large Tiff images

Post by magick »

That's 150MB compressed. Uncompressed its 67000 * 58000 * 8 or 30GB.
skan
Posts: 5
Joined: 2012-01-26T20:36:51-07:00
Authentication code: 8675308

Re: crashes with large Tiff images

Post by skan »

I've found a program that can view and zomm in/out the image properly and very fast:
FWTools
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: crashes with large Tiff images

Post by magick »

TIFF supports scanline processing which can be very fast. However, ImageMagick supports over 100 image formats and some compromises were made as discussed in the architecture discussion @ http://www.imagemagick.org/script/architecture.php.
Post Reply