Convert tif fail

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
myspacee
Posts: 153
Joined: 2007-06-14T02:09:35-07:00

Convert tif fail

Post by myspacee »

Hello,
try to emulate this command:

Code: Select all

i_view32.exe 1k.tif /resize_long=2048 /resample /aspectratio /convert=2k.tif
but i encoutered an error. Try to simple convert my tif to JPG without luck.
Using : Windows 2003 - ImageMagick-6.8.8-7-Q16-x86-windows

Code: Select all

convert m.tif m.jpg
Return this error:

Code: Select all

convert.exe: Unknown field with tag 32781 (0x800d) encountered. `TIFFReadDirect
ory' @ warning/tiff.c/TIFFWarnings/850.
convert.exe: unable to extend cache `m.tif': No space left on device @ error/ca
che.c/OpenPixelCache/3691.
Can't post now my file but can post Identify log:

Code: Select all

Image: m.tif
  Format: TIFF (Tagged Image File Format)
  Mime type: image/tiff
  Class: DirectClass
  Geometry: 22349x31504+0+0
  Resolution: 1270x1270
  Print size: 17.5976x24.8063
  Units: PixelsPerInch
  Type: Bilevel
  Base type: Bilevel
  Endianess: MSB
  Colorspace: Gray
  Rendering intent: Undefined
  Gamma: 0.454545
  Background color: gray(255)
  Border color: gray(223)
  Matte color: gray(189)
  Transparent color: gray(0)
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 22349x31504+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: Group4
  Orientation: TopLeft
  Properties:
    comment: Magenta
    date:create: 2014-03-02T21:09:56+01:00
    date:modify: 2014-03-01T21:25:32+01:00
    signature: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    tiff:endian: lsb
    tiff:image-id: 1. M@0@01032014204042@X_20140302_NUOVAFERRARA_FER_17@375813.ps (M)
    tiff:photometric: min-is-white
    tiff:rows-per-strip: 93
  Artifacts:
    filename: m.tif
    verbose: true
  Tainted: False
  Filesize: 2.314MB
  Number pixels: 704.1M
  Pixels per second: 1.7342GB
  User time: 0.031u
  Elapsed time: 0:01.406
  Version: ImageMagick 6.8.8-7 Q16 x86 2014-02-13 http://www.imagemagick.org
can suggest any correction ?

Thank you,
m.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert tif fail

Post by fmw42 »

convert.exe: Unknown field with tag 32781 (0x800d) encountered. `TIFFReadDirect
ory' @ warning/tiff.c/TIFFWarnings/850.

convert.exe: unable to extend cache `m.tif': No space left on device @ error/ca
che.c/OpenPixelCache/3691.
The first is just a warning and can be ignored. There is a text field in the tiff file that IM does not understand.

As a guess, the second might be that your TMP (TEMP?) directory is full. I do not use windows, so cannot tell you where to find it.
myspacee
Posts: 153
Joined: 2007-06-14T02:09:35-07:00

Re: Convert tif fail

Post by myspacee »

Thank you for reply,
this TIF hate IM. All others conversions are ok. Post link with original file:

http://static.repubblica.it/laprovincia ... ggio/m.tif

Thank you for any info,
m.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert tif fail

Post by fmw42 »

Geometry: 22349x31504+0+0
This is a huge file in pixel dimensions. You may be running out of memory and IM is then using hard disk space or you may have a full tmp directory.

See http://www.imagemagick.org/Usage/files/#massive
myspacee
Posts: 153
Joined: 2007-06-14T02:09:35-07:00

Re: Convert tif fail

Post by myspacee »

I know that are huge in dimensions,
and this is why i try to resize them...

I'm reading IM 'Really Massive Image Handling' section right now, anyone can suggest a strategy to handle files like these ?
I really want to remove IrfanView and convert script to Imagemagick.

m.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert tif fail

Post by fmw42 »

Code: Select all

convert m.tif m.jpg 
worked fine for me on IM 6.8.8.7 Mac OSX. It took 4 minutes on my computer to finish. I only get the warning. The image looks fine.

Check your TMP directory and see if it is full.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Convert tif fail

Post by dlemstra »

Your image takes around 11 gigabyte disk space with the Q16 version of ImageMagick. Do you have enough free space available on your disk?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply