Problem???

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
ylafont
Posts: 28
Joined: 2014-11-03T16:33:39-07:00
Authentication code: 6789

Problem???

Post by ylafont »

Forgive the newbie questions, new to IM and not really sure what causes theses issues.


I had to recompile and install the new version of the IM because of delegate issues. Thought i had the ironed out however

Code: Select all

pi@PiScanner ~/tmp/TestScans $ convert -version
Version: ImageMagick 6.8.9-10 Q16 armv6l 2014-11-05 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib djvu fontconfig freetype jbig jng jpeg lcms lqr openexr png tiff x xml zlib
RaspberryPi Wheezy (Debian)

I cant seem to be able to ready TIFF files. cant convert ....ect.

Code: Select all

pi@PiScanner ~/tmp/TestScans $ identify out2.tif
identify: out2.tif: Seek error accessing TIFF directory. `TIFFFetchDirectory' @ error/tiff.c/TIFFErrors/582.
identify: out2.tif: Failed to read directory at offset 0. `TIFFReadDirectory' @ error/tiff.c/TIFFErrors/582.

Code: Select all

pi@PiScanner ~/tmp/TestScans $ sudo convert out2.tif out2.png
convert: out2.tif: Seek error accessing TIFF directory. `TIFFFetchDirectory' @ error/tiff.c/TIFFErrors/582.
convert: out2.tif: Failed to read directory at offset 0. `TIFFReadDirectory' @ error/tiff.c/TIFFErrors/582.
convert: no images defined `out2.png' @ error/convert.c/ConvertImageCommand/3210.

Code: Select all

pi@PiScanner ~/tmp/TestScans $ time compare -metric rmse -subimage-search -dissimilarity-threshold 1 -similarity-threshold 0.98 out2.tiff \( -size 1x1 xc:black \) null:                 compare: out2.tiff: Seek error accessing TIFF directory. `TIFFFetchDirectory' @ error/tiff.c/TIFFErrors/582.
compare: out2.tiff: Failed to read directory at offset 0. `TIFFReadDirectory' @ error/tiff.c/TIFFErrors/582.

real    0m0.250s
user    0m0.160s
sys     0m0.070s

output of configure

Code: Select all

ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type: armv6l-unknown-linux-gnueabihf
Build system type: armv6l-unknown-linux-gnueabihf

                  Option                        Value
-------------------------------------------------------------------------------
Shared libraries  --enable-shared=yes           yes
Static libraries  --enable-static=yes           yes
Module support    --with-modules=no             no
GNU ld            --with-gnu-ld=yes             yes
Quantum depth     --with-quantum-depth=16       16
High Dynamic Range Imagery
                  --enable-hdri=no              no

Install documentation:          yes

Delegate Configuration:
BZLIB             --with-bzlib=yes              yes
Autotrace         --with-autotrace=no           no
Dejavu fonts      --with-dejavu-font-dir=default        none
DJVU              --with-djvu=yes               yes
DPS               --with-dps=yes                no
FFTW              --with-fftw=yes               no
FlashPIX          --with-fpx=yes                no
FontConfig        --with-fontconfig=yes         yes
FreeType          --with-freetype=yes           yes
GhostPCL          None                          pcl6 (unknown)
GhostXPS          None                          gxps (unknown)
Ghostscript       None                          gs (9.05)
Ghostscript fonts --with-gs-font-dir=default    /usr/share/fonts/type1/gsfonts/
Ghostscript lib   --with-gslib=no               no
Graphviz          --with-gvc=no
JBIG              --with-jbig=yes               yes
JPEG v1           --with-jpeg=yes               yes
JPEG-2000         --with-jp2=
LCMS v1           --with-lcms=yes               yes
LCMS v2           --with-lcms2=yes              no
LQR               --with-lqr=yes                yes
LTDL              --with-ltdl=yes               no
LZMA              --with-lzma=yes               no
Magick++          --with-magick-plus-plus=yes   yes
OpenEXR           --with-openexr=yes            yes
OpenJP2           --with-openjp2=yes            no
PANGO             --with-pango=yes              no
PERL              --with-perl=no                no
PNG               --with-png=yes                yes
RSVG              --with-rsvg=no                no
TIFF              --with-tiff=yes               yes
WEBP              --with-webp=yes               no
Windows fonts     --with-windows-font-dir=      none
WMF               --with-wmf=no         no
X11               --with-x=                     yes
XML               --with-xml=yes                yes
ZLIB              --with-zlib=yes               yes
Any assistance would be beneficial! thank you.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem???

Post by magick »

These exceptions are coming directly from the TIFF delegate library. The likely cause might be a corrupt TIFF image or the TIFF delegate library. Try these commands:
  • convert rose: rose.tif
    identify -verbose rose.tif
ylafont
Posts: 28
Joined: 2014-11-03T16:33:39-07:00
Authentication code: 6789

Re: Problem???

Post by ylafont »

i am assuiming the command is
convert rose: file

Code: Select all

pi@PiScanner ~/tmp/TestScans $ convert rose: out2.tif
convert: Error writing data for field "BitsPerSample". `out2.tif' @ error/tiff.c/TIFFErrors/582.
Tiff images seem fine, i can view them without issues.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem???

Post by magick »

It appears to be a problem with the TIFF delegate library. What version are you running:
  • identify -list format | grep -i tiff
ylafont
Posts: 28
Joined: 2014-11-03T16:33:39-07:00
Authentication code: 6789

Re: Problem???

Post by ylafont »

Code: Select all

pi@PiScanner ~/tmp/TestScans $ identify -list format | grep -i tiff
      EPT  rw-   Encapsulated PostScript with TIFF preview
     EPT2  rw-   Encapsulated PostScript Level II with TIFF preview
     EPT3  rw+   Encapsulated PostScript Level III with TIFF preview
     PTIF* rw+   Pyramid encoded TIFF
     TIFF* rw+   Tagged Image File Format (LIBTIFF, Version 3.9.6)
   TIFF64* rw-   Tagged Image File Format (64-bit) (LIBTIFF, Version 3.9.6)
Thank you for the assistance Magick.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Problem???

Post by fmw42 »

LibTiff is now at 4.0.3. Perhaps the newer version may have it fixed. See http://www.remotesensing.org/libtiff/ for downloading.
ylafont
Posts: 28
Joined: 2014-11-03T16:33:39-07:00
Authentication code: 6789

Re: Problem???

Post by ylafont »

fmw42 wrote:LibTiff is now at 4.0.3. Perhaps the newer version may have it fixed. See http://www.remotesensing.org/libtiff/ for downloading.
trying that now hopefully it will help, as it compiles. do you know if i will have to recompile and make IM again? or should it pick up the new version of libtiff?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Problem???

Post by fmw42 »

I do not know. But I always recompile IM to be safe.

identify -list format

will tell you the version number of libtiff. So you can try without recompiling IM and check. If it is not the current version, then recompile IM.
ylafont
Posts: 28
Joined: 2014-11-03T16:33:39-07:00
Authentication code: 6789

Re: Problem???

Post by ylafont »

fmw42 wrote:I do not know. But I always recompile IM to be safe.

identify -list format

will tell you the version number of libtiff. So you can try without recompiling IM and check. If it is not the current version, then recompile IM.


did not pick it up, recompiling now. usually takes about 2 hours on a pi.
ylafont
Posts: 28
Joined: 2014-11-03T16:33:39-07:00
Authentication code: 6789

Re: Problem???

Post by ylafont »

Frustrating to say the least.

Compiled and installed both, IM did not pick up the new version for libtiff. Is there a file i can edit does everything needs to be complete uninstalled and uninstalled?

UPDATE:--------------
Ok I think i got it.

dpkg- querry showed that both version of libtiff were installed. I removed version 3.9.6, at first i thought i was in trouble since it removed a bunch of stuff.

I had to make install again. but it picked up version 4.0.3

Lets hope i did not break anything else.!

thanks for assistance.
Post Reply