Page 1 of 1
crashes with large Tiff images
Posted: 2012-01-26T20:38:28-07:00
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
Re: crashes with large Tiff images
Posted: 2012-01-26T20:41:04-07:00
by fmw42
Re: crashes with large Tiff images
Posted: 2012-01-26T20:49:03-07:00
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?
Re: crashes with large Tiff images
Posted: 2012-01-26T21:29:57-07:00
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
Re: crashes with large Tiff images
Posted: 2012-01-27T05:42:49-07:00
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...
Re: crashes with large Tiff images
Posted: 2012-01-27T06:18:34-07:00
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.
Re: crashes with large Tiff images
Posted: 2012-01-27T06:28:51-07:00
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
Re: crashes with large Tiff images
Posted: 2012-01-27T08:37:10-07:00
by magick
That's 150MB compressed. Uncompressed its 67000 * 58000 * 8 or 30GB.
Re: crashes with large Tiff images
Posted: 2012-01-27T14:29:05-07:00
by skan
I've found a program that can view and zomm in/out the image properly and very fast:
FWTools
Re: crashes with large Tiff images
Posted: 2012-01-27T15:30:59-07:00
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.