Page 1 of 2
How do I install delegates
Posted: 2010-09-21T10:46:59-07:00
by stefanders
Dear all,
I installed ImageMagick-6.5.7/ and ImageMagick-6.6.4/ and want to run the command
Code: Select all
sudo mogrify -resize 50% picture.jpg
What I get is:
Code: Select all
no decode delegate for this image format `picture.JPG' @ error/constitute.c/ReadImage/532.
I know that there is this page
http://www.imagemagick.org/download/delegates/
But how do I use this? Which tar.gz should I choose and then just extract, configure, make, make install???
Thanks for your help with this probably easy problem, Stefan
Re: How do I install delegates
Posted: 2010-09-21T10:52:24-07:00
by magick
Try the following
The ImageMagick-devel rpm includes many of the delegate library dependencies such as JPEG, PNG, TIFF, etc.
Re: How do I install delegates
Posted: 2010-09-21T11:03:30-07:00
by stefanders
When I type in:
Code: Select all
sudo yum install ImageMagick-devel
I get:
Code: Select all
Setting up Install Process
No package ImageMagick-devel available.
Nothing to do
Should I just tyoe in the other commands?
Re: How do I install delegates
Posted: 2010-09-21T11:17:14-07:00
by magick
More work, but just as effective. Install the development packages of notable libraries such as libjpeg-devel. Now reconfigure, rebuild, and reinstall ImageMagick. It should pick up the just installed delegate libraries (e.g. JPEG).
Re: How do I install delegates
Posted: 2010-09-21T11:22:56-07:00
by stefanders
Thanks for your fast answers.
I tried:
Code: Select all
wget ftp://ftp.imagemagick.org/pub/ImageMagi ... ick.tar.gz
tar xvfz ImageMagick.tar.gz
cd ImageMagick-*
./configure
make
make install
it worked but the error-message is still the same. How do I install the "development packages of notable libraries such as libjpeg-devel"? I can't find them on this page
http://www.imagemagick.org/download/delegates/
Re: How do I install delegates
Posted: 2010-09-21T11:36:05-07:00
by magick
You are better off getting them from your rpm repository with either yum, apt-get, or whatever packager you have on your system. If you cannot, you can always download the source package, for example libjpeg, and build and install the package from source. Now reconfigure ImageMagick. It tells you if it found the delegate library, just review the last 40 or so lines of the configure command line output.
Re: How do I install delegates
Posted: 2010-09-21T11:55:02-07:00
by stefanders
Sorry, I'm still quite new with linux and don't understand what you write... When I type in
Code: Select all
sudo apt-get install libjpeg-devel
I get
Code: Select all
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libjpeg-devel
Do I have to add a new source? And if yes, which?
From the page I wrote I can't find the package...
Re: How do I install delegates
Posted: 2010-09-21T12:17:31-07:00
by magick
Linux administration is beyond the scope of this forum. Check with Google and learn how to use apt-get to install the development package of JPEG.
Re: How do I install delegates
Posted: 2010-09-21T19:03:07-07:00
by anthony
magick wrote:You are better off getting them from your rpm repository with either yum, apt-get, or whatever packager you have on your system. If you cannot, you can always download the source package, for example libjpeg, and build and install the package from source. Now reconfigure ImageMagick. It tells you if it found the delegate library, just review the last 40 or so lines of the configure command line output.
For building your own RPM packages from source see...
IM Examples, API's RPM Build
http://www.imagemagick.org/Usage/api/#building
I do this very regularly for my Fedora Systems (to get certian varients by modifying the 'spec' RPM build file), however it should also work for SUSE and RHEL and CentOS linus systems.
I have yet to find instructions on how to build a Debian (and Ubuntu) package from source. Though the package repositories for those systems seem to be much more up-to-date than for fedora.
Re: How do I install delegates
Posted: 2019-04-09T21:11:18-07:00
by jacobkrahn
There needs to be an easier way to do this. I can't believe this post is 9 years old and I still can't find one.
Re: How do I install delegates
Posted: 2019-04-09T22:17:47-07:00
by fmw42
Sorry, I cannot help much, since I use a Mac. But on Linux systems, the version number is not often updated when they patch. The version date is more important. So an old version number with a more current date is likely good up to that date.
Re: How do I install delegates
Posted: 2019-05-23T23:36:01-07:00
by rororoky
When configuring compilation, the configure script will scan your environment to decide which delegate to activate. So you may firstly install delegates and make them accessible for the configure script.
https://imagemagick.org/script/advanced ... lation.php
So, first of all, install the delegates.(e.g. jpeg)
1. download jpegsrc.v9b.tar.gz
2. tar zxvf jpegsrc.v9b.tar.gz and then cd into what you extracted
3. ./configure
make
make install
By default steps above install your jpeg delegate in /usr/local/bin.
So append environment variables:
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/bin
Now your configure script can detect the installed delegate if everything went well.
Then you can install your ImageMagick distribution as official guidance.
Tips.
if you want to include delegates into ImageMagick distribution,
I personally suggest that you may put delegate libs into IM_Home/lib
because this is a additional dynamic library search path.
Wish this can help.
Re: How do I install delegates
Posted: 2019-07-31T14:06:10-07:00
by tukusejssirs
I need help with the delegates installation. I need to convert a .pwp file and it should be
supported. However, I have no idea how to install the delegate for .pwp file format. I tried to run
without parameters, then run
Code: Select all
./configure --enable-shared --with-djvu=yes --with-dps=yes --with-fpx=yes --with-jbig=yes --with-lqr=yes --enable-legacy-support --with-gslib --with-pwp
but still no delegate for .pwp file format would install.
Any ideas?
Info about versions:
Code: Select all
magick --version
Version: ImageMagick 7.0.8-59 Q16 x86_64 2019-07-30 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(3.1)
Delegates (built-in): bzlib fontconfig freetype gslib jng jp2 jpeg lcms lzma pangocairo png ps tiff x xml zlib
CentOS Linux release 7.6.1810 (Core)
GNU/Linux 3.10.0-957.21.3.el7.x86_64
Re: How do I install delegates
Posted: 2019-07-31T14:18:41-07:00
by snibgo
What does "magick -list format" say about the PWP format? For me, it says I can read PWP files, and I didn't install a delegate for that. (IM comes with coders\pwp.c, which I guess does the job.)
Do you have a sample PWP file I can try to read?
Re: How do I install delegates
Posted: 2019-08-01T00:12:03-07:00
by tukusejssirs
@snibgo, thank you for your answer.
It say the same as to you (although it did not output the PWP second time without asterisk).
The problem might be elsewhere. Here are the outputs of the commands I tried to use to convert a .pwp file to jpg (anyway, I am all new the the IM7 syntax):
Code: Select all
$ magick anjel.pwp anjel.jpg
magick: Extra content at the end of the document
`No such file or directory` @ error/svg.c/SVGError/3079.
$ magick anjel.pwp ./
magick: Extra content at the end of the document
`No such file or directory` @ error/svg.c/SVGError/3079.
I’ve just receive a file to convert it into .jpg file(s).