How do I install delegates

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?".
stefanders

How do I install delegates

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: How do I install delegates

Post by magick »

Try the following
The ImageMagick-devel rpm includes many of the delegate library dependencies such as JPEG, PNG, TIFF, etc.
stefanders

Re: How do I install delegates

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: How do I install delegates

Post 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).
stefanders

Re: How do I install delegates

Post 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/
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: How do I install delegates

Post 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.
stefanders

Re: How do I install delegates

Post 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...
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: How do I install delegates

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How do I install delegates

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
jacobkrahn
Posts: 1
Joined: 2019-04-09T21:04:38-07:00
Authentication code: 1152

Re: How do I install delegates

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How do I install delegates

Post 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.
rororoky
Posts: 1
Joined: 2019-05-23T23:15:41-07:00
Authentication code: 1152

Re: How do I install delegates

Post 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.
tukusejssirs
Posts: 4
Joined: 2014-04-07T11:11:41-07:00
Authentication code: 6789

Re: How do I install delegates

Post 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

Code: Select all

./configure
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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How do I install delegates

Post 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.)

Code: Select all

      PWP* PWP       r--   Seattle Film Works
Do you have a sample PWP file I can try to read?
snibgo's IM pages: im.snibgo.com
tukusejssirs
Posts: 4
Joined: 2014-04-07T11:11:41-07:00
Authentication code: 6789

Re: How do I install delegates

Post 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).
Post Reply