Page 1 of 1

conversion error on Linux machine

Posted: 2014-01-15T00:39:11-07:00
by LubnaAnsari
I am having ImageMagick-6.6.5 installed on a Linux machine.

Operating System: Linux x86-64
OS Version : Red Hat Enterprise 6

I am getting below error while converting the jpeg image on Linux though same configuration is working on Windows XP machine.


>refinery/6 01.15 12:54:38.444 CmdLineConversion_29559_convert /a01/ImageMagick/bin/convert /a01/Oracle/Middleware/user_projects/domains/c_prod/ucm/ibr/vault/~temp/myserver/29559/207346.jpg -resize 180x120 -density 72x72 /a01/Oracle/Middleware/user_projects/domains/c_prod/ucm/ibr/vault/~temp/myserver/29559/thumbnail0/thumbnail.jpg
>log/6 01.15 12:54:38.461 Job_29559_myserver key: csRenditionCreateFileError
log/6 01.15 12:54:38.461 Job_29559_myserver args:
log/6 01.15 12:54:38.461 Job_29559_myserver Thumbnail
log/6 01.15 12:54:38.461 Job_29559_myserver convert: no decode delegate for this image format `/a01/Oracle/Middleware/user_projects/domains/c_prod/ucm/ibr/vault/~temp/myserver/29559/207346.jpg' @ error/constitute.c/ReadImage/532.
log/6 01.15 12:54:38.461 Job_29559_myserver convert: missing an image filename `/a01/Oracle/Middleware/user_projects/domains/c_prod/ucm/ibr/vault/~temp/myserver/29559/thumbnail0/thumbnail.jpg' @ error/convert.c/ConvertImageCommand/2949.
log/6 01.15 12:54:38.461 Job_29559_myserver
log/6 01.15 12:54:38.461 Job_29559_myserver msgSimple: null
log/6 01.15 12:54:38.461 Job_29559_myserver encoded: null
log/6 01.15 12:54:38.461 Job_29559_myserver localized: null

Please suggest a solution on urgent basis.

Re: conversion error on Linux machine

Posted: 2014-01-15T10:12:02-07:00
by fmw42
Do you have libjpeg installed as delegate library? Check by

convert -list configure

look at the line starting with DELEGATES and see if jpeg or jpg is listed.


Does

convert logo: logo.jpg

work?

If so, does

convert logo.jpg logo2.jpg

work?

Re: conversion error on Linux machine

Posted: 2014-01-15T21:17:21-07:00
by LubnaAnsari
convert -list configure command does not list anything?

From where can i download libjpeg and how to install libjpeg on lLinux OS?

Re: conversion error on Linux machine

Posted: 2014-01-15T22:11:37-07:00
by fmw42
LubnaAnsari wrote:convert -list configure command does not list anything?

From where can i download libjpeg and how to install libjpeg on lLinux OS?

Something is wrong with your installation? It should not be completely empty!

On my Mac, IM 6.8.8.2, I get

Code: Select all

 convert -list configure

Path: /usr/local/lib/ImageMagick-6.8.8//config-Q16/configure.xml

Name           Value
-------------------------------------------------------------------------------
CC             gcc -std=gnu99 -std=gnu99
CFLAGS         -I/opt/local/include/lqr-1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -g -O2 -Wall -fexceptions -D_FORTIFY_SOURCE=0 -D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
CODER_PATH     /usr/local/lib/ImageMagick-6.8.8/modules-Q16/coders
CONFIGURE      ./configure  'CPPFLAGS=-I/opt/local/include' 'LDFLAGS=-L/opt/local/lib' '--enable-delegate-build' '--enable-shared' '--disable-static' '--disable-opencl' '--with-modules' '--with-quantum-depth=16' '--with-gslib' '--without-wmf' '--with-rsvg' '--disable-silent-rules' '--disable-dependency-tracking' '--disable-openmp' '--without-pango' '--with-gs-font-dir=/opt/local/share/ghostscript/fonts/' '--with-lqr' '--with-openjp2'
CONFIGURE_PATH /usr/local/etc/ImageMagick-6/
COPYRIGHT      Copyright (C) 1999-2014 ImageMagick Studio LLC
CPPFLAGS       -I/usr/local/include/ImageMagick-6
CXX            g++
CXXFLAGS       -g -O2 -D_THREAD_SAFE -pthread
DEFS           -DHAVE_CONFIG_H
DELEGATES      bzlib mpeg fftw fontconfig freetype gslib jbig jng jpeg lcms lqr lzma openexr png ps rsvg tiff webp x xml zlib
DISTCHECK_CONFIG_FLAGS 'CPPFLAGS=-I/opt/local/include' 'LDFLAGS=-L/opt/local/lib' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontpath= --with-gs-font-dir=/opt/local/share/ghostscript/fonts/ --with-gvc=no --with-mupdf=no --with-pango=no --with-wmf=no --with-perl=no
DOCUMENTATION_PATH /usr/local/share/doc/ImageMagick-6
EXEC-PREFIX    /usr/local
EXECUTABLE_PATH /usr/local/bin
FEATURES       DPC Modules
FILTER_PATH    /usr/local/lib/ImageMagick-6.8.8/modules-Q16/filters
HOST           x86_64-apple-darwin10.8.0
INCLUDE_PATH   /usr/local/include/ImageMagick-6
LDFLAGS        -L/usr/local/lib -L/opt/local/lib -L/Users/fred/applications/ImageMagick-6.8.8-2/magick -L/Users/fred/applications/ImageMagick-6.8.8-2/wand -L/opt/local/lib
LIB_VERSION    0x688
LIB_VERSION_NUMBER 6,8,8,2
LIBRARY_PATH   /usr/local/lib/ImageMagick-6.8.8
LIBS           -llcms2 -L/opt/local/lib -lfreetype -L/opt/local/lib -llqr-1 -lglib-2.0 -lintl -lfftw3 -L/opt/local/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -L/opt/local/lib -llzma -lbz2 -lz -lltdl -lm
NAME           ImageMagick
PCFLAGS        -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
PREFIX         /usr/local
QuantumDepth   16
RELEASE_DATE   2014-01-13
SHARE_PATH     /usr/local/share/ImageMagick-6
SHAREARCH_PATH /usr/local/lib/ImageMagick-6.8.8/config-Q16
SVN_REVISION   14347
TARGET_CPU     x86_64
TARGET_OS      darwin10.8.0
TARGET_VENDOR  apple
VERSION        6.8.8
WEBSITE        http://www.imagemagick.org

Path: [built-in]

Name           Value
-------------------------------------------------------------------------------
FEATURES       
NAME           ImageMagick
QuantumDepth   16

Did you install from source or from binary? If from binary, I would have expected you to have all the delegates you need.

Delegates can be downloaded from http://www.imagemagick.org/download/delegates/, but I am not sure if they are current.

I am not a Linux user, so I cannot advise on installation. IM 6.6.5 is very old. You might look into a more current binary. See http://www.imagemagick.org/script/binary-releases.php. If you install from source, you will need to install all the delegates that you need such as jpg, tiff, png, etc. That may be more complex on Linux, unless you can use a RPM.

If you decide to install from source, see
http://www.imagemagick.org/script/insta ... e.php#unix
http://www.imagemagick.org/script/advan ... lation.php