Error during convert

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
miller
Posts: 4
Joined: 2015-06-28T15:18:07-07:00
Authentication code: 6789

Error during convert

Post by miller »

Hi to everybody,
i try to convert a image from jpg to pcl on my AIX-System. (preparing for printing)

my cmdline: convert ec10430039.jpg ec10430039.pcl

I got this errors from convert:

AnErrorHasOccurredReadingFromFile `ec10430039.jpg': A system call received a parameter that is not valid. @ error/constitute.c/ReadImage/637.
no images defined `ec10430039.pcl' @ error/convert.c/ConvertImageCommand/3066.

My version ov ImageMagick (Output from convert -version):
Version: ImageMagick 6.8.1-10 %F Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib fontconfig freetype jbig jng jp2 jpeg lcms lzma png ps tiff x x
ml zlib

Does anybody know what to do in this case?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Error during convert

Post by dlemstra »

Can you reproduce the issue with the latest version of ImageMagick?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
miller
Posts: 4
Joined: 2015-06-28T15:18:07-07:00
Authentication code: 6789

Re: Error during convert

Post by miller »

It is not easy to get the latest version for AIX.
My repository for 'freeware' related to AIX is perzl.org.
On this repository-website my installed version of ImageMagick is the newest one.
I'm sorry,I have no idea where to get a newer version von ImageMagick.
If there is anybody in the forum using a newer version on AIX pls. let me know.
Thank you.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Error during convert

Post by magick »

The "AnErrorHasOccurredReadingFromFile" exception message typically means ImageMagick was not installed properly or the configuration files have improper permissions. Look for the folders that includes delegates.xml and english.xml. Do they have read permissions enabled? You can determine where ImageMagick is looking for its configuration files with this command:
  • convert -debug configure ec10430039.jpg ec10430039.pcl
miller
Posts: 4
Joined: 2015-06-28T15:18:07-07:00
Authentication code: 6789

Re: Error during convert

Post by miller »

This is where the files are installed:

313 og: rs:/opt/freeware> find . -name delegates.xml
./etc/ImageMagick/delegates.xml
./share/doc/ImageMagick-6.8.1/www/source/delegates.xml
314 og: rs:/opt/freeware> find . -name magic.xml
./etc/ImageMagick/magic.xml
./share/doc/ImageMagick-6.8.1/www/source/magic.xml
315 og: rs:/opt/freeware> find . -name english.xml
./share/ImageMagick-6.8.1/english.xml
./share/doc/ImageMagick-6.8.1/www/source/english.xml
316 og: rs:/opt/freeware>

The directorys and files do have 'read-access'.
Owner is 'root'.

Output of the 'debug'-command:
287 og: rs:/users/rs> convert -debug configure ec10430039.jpg ec10430039.pcl
2015-06-29T14:40:53+02:00 0:00.010 0.000u 6.8.1 Configure rs[42663974]: utility.c/ExpandFilenames/936/Configure Command line: convert {-debug} {configure} {ec10430039.jpg} {ec10430039.pcl}
2015-06-29T14:40:53+02:00 0:00.020 0.000u 6.8.1 Configure rs[42663974]: configure.c/GetConfigureOptions/589/Configure Searching for configure file: "/opt/freeware/share/ImageMagick-6.8.1/magic.xml"
2015-06-29T14:40:53+02:00 0:00.020 0.000u 6.8.1 Configure rs[42663974]: configure.c/GetConfigureOptions/589/Configure Searching for configure file: "/opt/freeware/lib/ImageMagick-6.8.1//config-Q16/magic.xml"
2015-06-29T14:40:53+02:00 0:00.020 0.000u 6.8.1 Configure rs[42663974]: configure.c/GetConfigureOptions/589/Configure Searching for configure file: "/opt/freeware/etc/ImageMagick/magic.xml"
2015-06-29T14:40:53+02:00 0:00.030 0.010u 6.8.1 Configure rs[42663974]: configure.c/GetConfigureOptions/589/Configure Searching for configure file: "/opt/freeware/share/doc/ImageMagick-6.8.1/magic.xml"
2015-06-29T14:40:53+02:00 0:00.030 0.010u 6.8.1 Configure rs[42663974]: configure.c/GetConfigureOptions/589/Configure Searching for configure file: "/users/rs/.magick/magic.xml"
2015-06-29T14:40:53+02:00 0:00.030 0.010u 6.8.1 Configure rs[42663974]: magic.c/LoadMagicList/681/Configure Loading magic configure file "/opt/freeware/etc/ImageMagick/magic.xml" ...
2015-06-29T14:40:53+02:00 0:00.090 0.060u 6.8.1 Configure rs[42663974]: locale.c/LoadLocaleList/1092/Configure Loading locale configure file "/opt/freeware/share/ImageMagick-6.8.1/locale.xml" ...
2015-06-29T14:40:53+02:00 0:00.100 0.060u 6.8.1 Configure rs[42663974]: locale.c/LoadLocaleList/1092/Configure Loading locale configure file "/opt/freeware/share/ImageMagick-6.8.1/english.xml" ...
rs: AnErrorHasOccurredReadingFromFile `ec10430039.jpg': A system call received a parameter that is not valid. @ error/constitute.c/ReadImage/637.rs: no images defined `ec10430039.pcl' @error/convert.c/ConvertImageCommand/3066.
288 og: rs:/users/rs>
miller
Posts: 4
Joined: 2015-06-28T15:18:07-07:00
Authentication code: 6789

Re: Error during convert

Post by miller »

Additional info:

chmod 777 to dir /opt/freeware/etc/ImageMagick and
chmod 666 to all files in /opt/freeware/etc/ImageMagick/* (inluding delegates.xml)

has no positive effect.
Post Reply