convert TIF works, Magick++ read same TIF aborts

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
eadorean
Posts: 7
Joined: 2013-02-08T13:46:47-07:00
Authentication code: 6789

convert TIF works, Magick++ read same TIF aborts

Post by eadorean » 2013-02-08T14:06:00-07:00

Hello,

I can use from command line the convert command to transform some.tif to anything else.
But when I use the read command in Magick++ program, it failes to read the same TIF file, with following message:

"terminate called after throwing an instance of 'Magick::WarningCoder'
what(): convert1: some.tiff: unknown field with tag 33780 (0x83f4) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/768
Aborted"

I compile my C++ program with "c++ -o convert1 convert1.cpp `Magick++-config --cppflags --cxxflags --ldflags --libs`"

Can you please point out what am I doing wrong?

Thank you,

Ervin


The output of
convert -list configure is:

"Path: /usr/lib64/ImageMagick-6.7.7/config/configure.xml

Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99 -std=gnu99
CFLAGS -pthread -I/usr/include/OpenEXR -O2 -fPIC -Wall -pthread
CODER_PATH /usr/lib64/ImageMagick-6.7.7/modules-Q16/coders
CONFIGURE ./configure '--prefix=/usr' '--libdir=/usr/lib64' '--mandir=/usr/man' '--sysconfdir=/etc' '--program-prefix=' '--with-x' '--with-frozenpaths=no' '--without-modules' '--disable-openmp' '--enable-static=no' '--enable-shared' '--with-perl' '--build=x86_64-slackware-linux' 'build_alias=x86_64-slackware-linux' 'CFLAGS=-O2 -fPIC' 'CXXFLAGS=-O2 -fPIC'
CONFIGURE_PATH /etc/ImageMagick/
COPYRIGHT Copyright (C) 1999-2012 ImageMagick Studio LLC
CPPFLAGS -I/usr/include/ImageMagick
CXX g++
CXXFLAGS -O2 -fPIC -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib djvu fftw fontconfig freetype jpeg jng jp2 lcms2 lzma openexr pango png rsvg tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS 'CFLAGS=-O2 -fPIC' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-gvc=no --with-wmf=no
DOCUMENTATION_PATH /usr/share/doc/ImageMagick-6.7.7
EXEC-PREFIX /usr
EXECUTABLE_PATH /usr/bin
FEATURES
FILTER_PATH /usr/lib64/ImageMagick-6.7.7/modules-Q16/filters
HOST x86_64-slackware-linux-gnu
INCLUDE_PATH /usr/include/ImageMagick
LDFLAGS -L/usr/lib64 -L/usr/lib
LIB_VERSION 0x677
LIB_VERSION_NUMBER 6,7,7,10
LIBRARY_PATH /usr/lib64/ImageMagick-6.7.7
LIBS -lMagickCore -llcms2 -ltiff -lfreetype -ljasper -ljpeg -lpng14 -ldjvulibre -lfftw3 -lfontconfig -lXext -lXt -lSM -lICE -lX11 -llzma -lbz2 -pthread -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread -pthread -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread -lrsvg-2 -lgio-2.0 -lgdk_pixbuf-2.0 -lm -lcairo -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lz -lm -lpthread -lltdl
NAME ImageMagick
PCFLAGS
PREFIX /usr
QuantumDepth 16
RELEASE_DATE 2012-06-28
SHARE_PATH /usr/share/ImageMagick-6.7.7
SVN_REVISION 8535
TARGET_CPU x86_64
TARGET_OS linux-gnu
TARGET_VENDOR slackware
VERSION 6.7.7
WEBSITE http://www.imagemagick.org"

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

Re: convert TIF works, Magick++ read same TIF aborts

Post by magick » 2013-02-08T16:32:19-07:00

Use try / catch for this warning, write it to stdout, and then ignore it.

eadorean
Posts: 7
Joined: 2013-02-08T13:46:47-07:00
Authentication code: 6789

Re: convert TIF works, Magick++ read same TIF aborts

Post by eadorean » 2013-02-09T08:44:11-07:00

The warning does not bother me at all.
"Aborted" is the problem.

Thanks.

Post Reply