How to add support for the JPEG image format
After installing Imagemagick, I've tested it with jpg image, like this:
identify 1.jpg
But, I got this result:
identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
Then, I tried to add support for JPEG format by:
yum install libjpeg libjpeg-devel
but, I got:
Setting up Install Process
No package libjpeg available.
No package libjpeg-devel available.
Nothing to do
I thought I need to update the apt-get, I did:
apt-get install libjpeg libjpeg-devel
but, I got:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libjpeg
E: Unable to locate package libjpeg-devel
Is there an easy way to get those libraries installed ? I am using Ubuntu 12.04.
imagemagick jpeg
add a comment |
After installing Imagemagick, I've tested it with jpg image, like this:
identify 1.jpg
But, I got this result:
identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
Then, I tried to add support for JPEG format by:
yum install libjpeg libjpeg-devel
but, I got:
Setting up Install Process
No package libjpeg available.
No package libjpeg-devel available.
Nothing to do
I thought I need to update the apt-get, I did:
apt-get install libjpeg libjpeg-devel
but, I got:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libjpeg
E: Unable to locate package libjpeg-devel
Is there an easy way to get those libraries installed ? I am using Ubuntu 12.04.
imagemagick jpeg
2
Why are you usingyum
? That is the package manager for a different distribution (Red Hat & Fedora), and if you have usedyum
to install imagemagick, I'm not at all surprised it can't find the libraries! You should only install software with apt-get unless you really know what you're doing! Also, "Ubuntu 12" isn't specific enough... There are two versions of Ubuntu that start with "12": 12.04 and 12.10. Ubuntu versions are based on release date: 12.04 was released April (month #04) of '12, and 12.10 was released October of '12. Please be sure and specify!
– thirtythreeforty
Nov 4 '12 at 4:06
I have Ubuntu Release 12.04 (precise) 32-bit, I didn't install imagemagick with yum, instead I tar xvfz ImageMagick.tar.gz, cd ImageMagick-6.8.0, cd ImageMagick-6.8.0-4, ./configure, make, sudo make install, sudo ldconfig /usr/local/lib
– Samir Sabri
Nov 4 '12 at 4:41
try apt-get install libjpeg-dev
– Shashank Singla
Jun 30 '15 at 6:39
It's a really great answer there http://askubuntu.com/a/746195
– L. Percy
Sep 26 '16 at 13:35
how in the world can any imagemagick package be of ANY use without support for JPEG prepackaged?! That's like selling pizza without cheese or bread or tomato sauce.
– Sridhar-Sarnobat
Mar 24 '17 at 4:59
add a comment |
After installing Imagemagick, I've tested it with jpg image, like this:
identify 1.jpg
But, I got this result:
identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
Then, I tried to add support for JPEG format by:
yum install libjpeg libjpeg-devel
but, I got:
Setting up Install Process
No package libjpeg available.
No package libjpeg-devel available.
Nothing to do
I thought I need to update the apt-get, I did:
apt-get install libjpeg libjpeg-devel
but, I got:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libjpeg
E: Unable to locate package libjpeg-devel
Is there an easy way to get those libraries installed ? I am using Ubuntu 12.04.
imagemagick jpeg
After installing Imagemagick, I've tested it with jpg image, like this:
identify 1.jpg
But, I got this result:
identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
Then, I tried to add support for JPEG format by:
yum install libjpeg libjpeg-devel
but, I got:
Setting up Install Process
No package libjpeg available.
No package libjpeg-devel available.
Nothing to do
I thought I need to update the apt-get, I did:
apt-get install libjpeg libjpeg-devel
but, I got:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libjpeg
E: Unable to locate package libjpeg-devel
Is there an easy way to get those libraries installed ? I am using Ubuntu 12.04.
imagemagick jpeg
imagemagick jpeg
edited Nov 4 '12 at 4:46
Scott Severance
10.4k73568
10.4k73568
asked Nov 4 '12 at 3:43
Samir SabriSamir Sabri
4212518
4212518
2
Why are you usingyum
? That is the package manager for a different distribution (Red Hat & Fedora), and if you have usedyum
to install imagemagick, I'm not at all surprised it can't find the libraries! You should only install software with apt-get unless you really know what you're doing! Also, "Ubuntu 12" isn't specific enough... There are two versions of Ubuntu that start with "12": 12.04 and 12.10. Ubuntu versions are based on release date: 12.04 was released April (month #04) of '12, and 12.10 was released October of '12. Please be sure and specify!
– thirtythreeforty
Nov 4 '12 at 4:06
I have Ubuntu Release 12.04 (precise) 32-bit, I didn't install imagemagick with yum, instead I tar xvfz ImageMagick.tar.gz, cd ImageMagick-6.8.0, cd ImageMagick-6.8.0-4, ./configure, make, sudo make install, sudo ldconfig /usr/local/lib
– Samir Sabri
Nov 4 '12 at 4:41
try apt-get install libjpeg-dev
– Shashank Singla
Jun 30 '15 at 6:39
It's a really great answer there http://askubuntu.com/a/746195
– L. Percy
Sep 26 '16 at 13:35
how in the world can any imagemagick package be of ANY use without support for JPEG prepackaged?! That's like selling pizza without cheese or bread or tomato sauce.
– Sridhar-Sarnobat
Mar 24 '17 at 4:59
add a comment |
2
Why are you usingyum
? That is the package manager for a different distribution (Red Hat & Fedora), and if you have usedyum
to install imagemagick, I'm not at all surprised it can't find the libraries! You should only install software with apt-get unless you really know what you're doing! Also, "Ubuntu 12" isn't specific enough... There are two versions of Ubuntu that start with "12": 12.04 and 12.10. Ubuntu versions are based on release date: 12.04 was released April (month #04) of '12, and 12.10 was released October of '12. Please be sure and specify!
– thirtythreeforty
Nov 4 '12 at 4:06
I have Ubuntu Release 12.04 (precise) 32-bit, I didn't install imagemagick with yum, instead I tar xvfz ImageMagick.tar.gz, cd ImageMagick-6.8.0, cd ImageMagick-6.8.0-4, ./configure, make, sudo make install, sudo ldconfig /usr/local/lib
– Samir Sabri
Nov 4 '12 at 4:41
try apt-get install libjpeg-dev
– Shashank Singla
Jun 30 '15 at 6:39
It's a really great answer there http://askubuntu.com/a/746195
– L. Percy
Sep 26 '16 at 13:35
how in the world can any imagemagick package be of ANY use without support for JPEG prepackaged?! That's like selling pizza without cheese or bread or tomato sauce.
– Sridhar-Sarnobat
Mar 24 '17 at 4:59
2
2
Why are you using
yum
? That is the package manager for a different distribution (Red Hat & Fedora), and if you have used yum
to install imagemagick, I'm not at all surprised it can't find the libraries! You should only install software with apt-get unless you really know what you're doing! Also, "Ubuntu 12" isn't specific enough... There are two versions of Ubuntu that start with "12": 12.04 and 12.10. Ubuntu versions are based on release date: 12.04 was released April (month #04) of '12, and 12.10 was released October of '12. Please be sure and specify!– thirtythreeforty
Nov 4 '12 at 4:06
Why are you using
yum
? That is the package manager for a different distribution (Red Hat & Fedora), and if you have used yum
to install imagemagick, I'm not at all surprised it can't find the libraries! You should only install software with apt-get unless you really know what you're doing! Also, "Ubuntu 12" isn't specific enough... There are two versions of Ubuntu that start with "12": 12.04 and 12.10. Ubuntu versions are based on release date: 12.04 was released April (month #04) of '12, and 12.10 was released October of '12. Please be sure and specify!– thirtythreeforty
Nov 4 '12 at 4:06
I have Ubuntu Release 12.04 (precise) 32-bit, I didn't install imagemagick with yum, instead I tar xvfz ImageMagick.tar.gz, cd ImageMagick-6.8.0, cd ImageMagick-6.8.0-4, ./configure, make, sudo make install, sudo ldconfig /usr/local/lib
– Samir Sabri
Nov 4 '12 at 4:41
I have Ubuntu Release 12.04 (precise) 32-bit, I didn't install imagemagick with yum, instead I tar xvfz ImageMagick.tar.gz, cd ImageMagick-6.8.0, cd ImageMagick-6.8.0-4, ./configure, make, sudo make install, sudo ldconfig /usr/local/lib
– Samir Sabri
Nov 4 '12 at 4:41
try apt-get install libjpeg-dev
– Shashank Singla
Jun 30 '15 at 6:39
try apt-get install libjpeg-dev
– Shashank Singla
Jun 30 '15 at 6:39
It's a really great answer there http://askubuntu.com/a/746195
– L. Percy
Sep 26 '16 at 13:35
It's a really great answer there http://askubuntu.com/a/746195
– L. Percy
Sep 26 '16 at 13:35
how in the world can any imagemagick package be of ANY use without support for JPEG prepackaged?! That's like selling pizza without cheese or bread or tomato sauce.
– Sridhar-Sarnobat
Mar 24 '17 at 4:59
how in the world can any imagemagick package be of ANY use without support for JPEG prepackaged?! That's like selling pizza without cheese or bread or tomato sauce.
– Sridhar-Sarnobat
Mar 24 '17 at 4:59
add a comment |
6 Answers
6
active
oldest
votes
I fixed the problem by installing from source the jpeg encoding library available at http://www.ijg.org/files/jpegsrc.v8c.tar.gz.
cd /usr/local/src
tar xvfz jpeg-8c.tar.gz
cd jpeg-8c
./configure --enable-shared --prefix=$CONFIGURE_PREFIX
make
sudo make install
Then I re-installed ImageMagick from source:
cd /usr/local/src
tar xvfz ImageMagick-6.6.9-5.tar.gz
cd ImageMagick-6.6.9-5
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp
make
sudo make install
Now its working, I've tested it like this:
sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg
1.jpg JPEG 128x106 128x106+0+0 8-bit sRGB 2.22KB 0.000u 0:00.000
This worked for me. I had to add export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/ in .profile
– mv288
Feb 10 '13 at 23:08
I only installed the first jpegsrc from source and reinstalled ImageMagick viaapt-get
and it worked too.
– kyng
Jun 27 '13 at 10:39
add a comment |
If you decide to build ImageMagick from source, you need to be prepared to manually resolve all dependencies. Unless you have a pressing need, you should install all software on Ubuntu from a repository -- either the official repos or a PPA.
If you install Imagemagick using APT (apt-get
, Synaptic, Software Center, etc.), then JPG files will work just fine, as I confirmed on my machine.
If your reason for building from source is to get a more recent version, hunt for a PPA that tracks the most recent version. If you're building from source in order to help with development, then you should find out from the Imagemagick folks just what is required to succesfully build it from source. It might be that you need to specify some flag to ./configure
or have some development library installed before running ./configure
.
But normally, building from source just needlessly complicates things.
Oh, by the way, Red Hat and Ubuntu use different names for packages. So if yum
complains about a missing package, it shouldn't be surprising if apt-get
can't find a package by that name. You shouldn't mix package managers on a system unless you have a really good reason to do so. Even then, try every other option first.
I have no specific reason to building from source, if installing Imagemagick using APT (apt-get, Synaptic, Software Center, etc.) will fix the JPG files issue, I will go with it, can you please point me how to install Imagemagick using APT like you did ?
– Samir Sabri
Nov 4 '12 at 8:35
@SamirSabri: Just search the Software Center or Synaptic. Or use tab completion onapt-get
to discover the command:sudo apt-get install imagemagick
.
– Scott Severance
Nov 4 '12 at 13:57
By the way, I strongly suggest that you remove all previous attempts to install imagemagick before you try to install using my method. Otherwise, you might end up with conflicts.
– Scott Severance
Nov 4 '12 at 14:01
Although I've removed previous attempts, I get an error when identify jpg image, like this: sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
– Samir Sabri
Nov 5 '12 at 2:14
add a comment |
Note that the no decode delegate
error can (quite confusingly) result from imagemagick (or some part of it) not finding the file. So before running to reinstall imagemagick, check with identify -list format
and convert -list configure
whether the JPEG format is supported, and if it is, the problem will probably be somewhere else.
For example, convert -resize 50% foo bar.jpg
gave me a no decode delegate for this image format
eror, but convert -resize 50% 'foo bar.jpg'
worked perfectly.
add a comment |
If you have just installed php5-imagick, try also installing the full imagemagick package. This will install all required libraries, such as the jpeg one.
sudo apt-get install imagemagick
Then restart your webserver to reload al libraries:
sudo service apache2 restart
JPEG decoding should now work without error.
add a comment |
have you tried :
sudo apt-get install libjpeg62
if the above command doesn't work, please go through following link.
http://psx-scene.com/forums/f150/help-install-libjpeg-libpng-ubuntu-9-10-livecd-64122/
Let em know, if this was helpful, good luck... :)
I tried your solution, I got: Reading package lists... Done Building dependency tree Reading state information... Done libjpeg62 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. But, I still get an error when identify jpg image: sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
– Samir Sabri
Nov 5 '12 at 2:17
okay, I found this : blog.ericlamb.net/2008/11/… please, check and let me know, thanks for your reply.
– Rishi Kolvekar
Nov 5 '12 at 3:29
I've just fixed it before reading your last comment, thanks, I have it in my answer below
– Samir Sabri
Nov 5 '12 at 3:35
sounds great !!! :)
– Rishi Kolvekar
Nov 5 '12 at 4:00
add a comment |
I was getting same error. It took me 2 days to get solved. My error when I was trying to display jpg image:
no decode delegate for this image format `jpeg' @ error/constitute.c/readimage/504
Then, I downloaded "Synaptic Package Manager" from Software center. --> removed older libjpeg packages* --> reinstalled libjpeg8 & libjpeg-turbo8 & libjpeg-turbo8-dev.
(*synaptics package manager will show dependency with other package, remove only older independent libjpeg packages)
After that I am able to open JPEG images without any concern.
Hope it helps :)
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f211627%2fhow-to-add-support-for-the-jpeg-image-format%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
I fixed the problem by installing from source the jpeg encoding library available at http://www.ijg.org/files/jpegsrc.v8c.tar.gz.
cd /usr/local/src
tar xvfz jpeg-8c.tar.gz
cd jpeg-8c
./configure --enable-shared --prefix=$CONFIGURE_PREFIX
make
sudo make install
Then I re-installed ImageMagick from source:
cd /usr/local/src
tar xvfz ImageMagick-6.6.9-5.tar.gz
cd ImageMagick-6.6.9-5
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp
make
sudo make install
Now its working, I've tested it like this:
sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg
1.jpg JPEG 128x106 128x106+0+0 8-bit sRGB 2.22KB 0.000u 0:00.000
This worked for me. I had to add export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/ in .profile
– mv288
Feb 10 '13 at 23:08
I only installed the first jpegsrc from source and reinstalled ImageMagick viaapt-get
and it worked too.
– kyng
Jun 27 '13 at 10:39
add a comment |
I fixed the problem by installing from source the jpeg encoding library available at http://www.ijg.org/files/jpegsrc.v8c.tar.gz.
cd /usr/local/src
tar xvfz jpeg-8c.tar.gz
cd jpeg-8c
./configure --enable-shared --prefix=$CONFIGURE_PREFIX
make
sudo make install
Then I re-installed ImageMagick from source:
cd /usr/local/src
tar xvfz ImageMagick-6.6.9-5.tar.gz
cd ImageMagick-6.6.9-5
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp
make
sudo make install
Now its working, I've tested it like this:
sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg
1.jpg JPEG 128x106 128x106+0+0 8-bit sRGB 2.22KB 0.000u 0:00.000
This worked for me. I had to add export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/ in .profile
– mv288
Feb 10 '13 at 23:08
I only installed the first jpegsrc from source and reinstalled ImageMagick viaapt-get
and it worked too.
– kyng
Jun 27 '13 at 10:39
add a comment |
I fixed the problem by installing from source the jpeg encoding library available at http://www.ijg.org/files/jpegsrc.v8c.tar.gz.
cd /usr/local/src
tar xvfz jpeg-8c.tar.gz
cd jpeg-8c
./configure --enable-shared --prefix=$CONFIGURE_PREFIX
make
sudo make install
Then I re-installed ImageMagick from source:
cd /usr/local/src
tar xvfz ImageMagick-6.6.9-5.tar.gz
cd ImageMagick-6.6.9-5
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp
make
sudo make install
Now its working, I've tested it like this:
sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg
1.jpg JPEG 128x106 128x106+0+0 8-bit sRGB 2.22KB 0.000u 0:00.000
I fixed the problem by installing from source the jpeg encoding library available at http://www.ijg.org/files/jpegsrc.v8c.tar.gz.
cd /usr/local/src
tar xvfz jpeg-8c.tar.gz
cd jpeg-8c
./configure --enable-shared --prefix=$CONFIGURE_PREFIX
make
sudo make install
Then I re-installed ImageMagick from source:
cd /usr/local/src
tar xvfz ImageMagick-6.6.9-5.tar.gz
cd ImageMagick-6.6.9-5
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp
make
sudo make install
Now its working, I've tested it like this:
sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg
1.jpg JPEG 128x106 128x106+0+0 8-bit sRGB 2.22KB 0.000u 0:00.000
answered Nov 5 '12 at 3:38
Samir SabriSamir Sabri
4212518
4212518
This worked for me. I had to add export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/ in .profile
– mv288
Feb 10 '13 at 23:08
I only installed the first jpegsrc from source and reinstalled ImageMagick viaapt-get
and it worked too.
– kyng
Jun 27 '13 at 10:39
add a comment |
This worked for me. I had to add export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/ in .profile
– mv288
Feb 10 '13 at 23:08
I only installed the first jpegsrc from source and reinstalled ImageMagick viaapt-get
and it worked too.
– kyng
Jun 27 '13 at 10:39
This worked for me. I had to add export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/ in .profile
– mv288
Feb 10 '13 at 23:08
This worked for me. I had to add export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/ in .profile
– mv288
Feb 10 '13 at 23:08
I only installed the first jpegsrc from source and reinstalled ImageMagick via
apt-get
and it worked too.– kyng
Jun 27 '13 at 10:39
I only installed the first jpegsrc from source and reinstalled ImageMagick via
apt-get
and it worked too.– kyng
Jun 27 '13 at 10:39
add a comment |
If you decide to build ImageMagick from source, you need to be prepared to manually resolve all dependencies. Unless you have a pressing need, you should install all software on Ubuntu from a repository -- either the official repos or a PPA.
If you install Imagemagick using APT (apt-get
, Synaptic, Software Center, etc.), then JPG files will work just fine, as I confirmed on my machine.
If your reason for building from source is to get a more recent version, hunt for a PPA that tracks the most recent version. If you're building from source in order to help with development, then you should find out from the Imagemagick folks just what is required to succesfully build it from source. It might be that you need to specify some flag to ./configure
or have some development library installed before running ./configure
.
But normally, building from source just needlessly complicates things.
Oh, by the way, Red Hat and Ubuntu use different names for packages. So if yum
complains about a missing package, it shouldn't be surprising if apt-get
can't find a package by that name. You shouldn't mix package managers on a system unless you have a really good reason to do so. Even then, try every other option first.
I have no specific reason to building from source, if installing Imagemagick using APT (apt-get, Synaptic, Software Center, etc.) will fix the JPG files issue, I will go with it, can you please point me how to install Imagemagick using APT like you did ?
– Samir Sabri
Nov 4 '12 at 8:35
@SamirSabri: Just search the Software Center or Synaptic. Or use tab completion onapt-get
to discover the command:sudo apt-get install imagemagick
.
– Scott Severance
Nov 4 '12 at 13:57
By the way, I strongly suggest that you remove all previous attempts to install imagemagick before you try to install using my method. Otherwise, you might end up with conflicts.
– Scott Severance
Nov 4 '12 at 14:01
Although I've removed previous attempts, I get an error when identify jpg image, like this: sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
– Samir Sabri
Nov 5 '12 at 2:14
add a comment |
If you decide to build ImageMagick from source, you need to be prepared to manually resolve all dependencies. Unless you have a pressing need, you should install all software on Ubuntu from a repository -- either the official repos or a PPA.
If you install Imagemagick using APT (apt-get
, Synaptic, Software Center, etc.), then JPG files will work just fine, as I confirmed on my machine.
If your reason for building from source is to get a more recent version, hunt for a PPA that tracks the most recent version. If you're building from source in order to help with development, then you should find out from the Imagemagick folks just what is required to succesfully build it from source. It might be that you need to specify some flag to ./configure
or have some development library installed before running ./configure
.
But normally, building from source just needlessly complicates things.
Oh, by the way, Red Hat and Ubuntu use different names for packages. So if yum
complains about a missing package, it shouldn't be surprising if apt-get
can't find a package by that name. You shouldn't mix package managers on a system unless you have a really good reason to do so. Even then, try every other option first.
I have no specific reason to building from source, if installing Imagemagick using APT (apt-get, Synaptic, Software Center, etc.) will fix the JPG files issue, I will go with it, can you please point me how to install Imagemagick using APT like you did ?
– Samir Sabri
Nov 4 '12 at 8:35
@SamirSabri: Just search the Software Center or Synaptic. Or use tab completion onapt-get
to discover the command:sudo apt-get install imagemagick
.
– Scott Severance
Nov 4 '12 at 13:57
By the way, I strongly suggest that you remove all previous attempts to install imagemagick before you try to install using my method. Otherwise, you might end up with conflicts.
– Scott Severance
Nov 4 '12 at 14:01
Although I've removed previous attempts, I get an error when identify jpg image, like this: sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
– Samir Sabri
Nov 5 '12 at 2:14
add a comment |
If you decide to build ImageMagick from source, you need to be prepared to manually resolve all dependencies. Unless you have a pressing need, you should install all software on Ubuntu from a repository -- either the official repos or a PPA.
If you install Imagemagick using APT (apt-get
, Synaptic, Software Center, etc.), then JPG files will work just fine, as I confirmed on my machine.
If your reason for building from source is to get a more recent version, hunt for a PPA that tracks the most recent version. If you're building from source in order to help with development, then you should find out from the Imagemagick folks just what is required to succesfully build it from source. It might be that you need to specify some flag to ./configure
or have some development library installed before running ./configure
.
But normally, building from source just needlessly complicates things.
Oh, by the way, Red Hat and Ubuntu use different names for packages. So if yum
complains about a missing package, it shouldn't be surprising if apt-get
can't find a package by that name. You shouldn't mix package managers on a system unless you have a really good reason to do so. Even then, try every other option first.
If you decide to build ImageMagick from source, you need to be prepared to manually resolve all dependencies. Unless you have a pressing need, you should install all software on Ubuntu from a repository -- either the official repos or a PPA.
If you install Imagemagick using APT (apt-get
, Synaptic, Software Center, etc.), then JPG files will work just fine, as I confirmed on my machine.
If your reason for building from source is to get a more recent version, hunt for a PPA that tracks the most recent version. If you're building from source in order to help with development, then you should find out from the Imagemagick folks just what is required to succesfully build it from source. It might be that you need to specify some flag to ./configure
or have some development library installed before running ./configure
.
But normally, building from source just needlessly complicates things.
Oh, by the way, Red Hat and Ubuntu use different names for packages. So if yum
complains about a missing package, it shouldn't be surprising if apt-get
can't find a package by that name. You shouldn't mix package managers on a system unless you have a really good reason to do so. Even then, try every other option first.
answered Nov 4 '12 at 4:52
Scott SeveranceScott Severance
10.4k73568
10.4k73568
I have no specific reason to building from source, if installing Imagemagick using APT (apt-get, Synaptic, Software Center, etc.) will fix the JPG files issue, I will go with it, can you please point me how to install Imagemagick using APT like you did ?
– Samir Sabri
Nov 4 '12 at 8:35
@SamirSabri: Just search the Software Center or Synaptic. Or use tab completion onapt-get
to discover the command:sudo apt-get install imagemagick
.
– Scott Severance
Nov 4 '12 at 13:57
By the way, I strongly suggest that you remove all previous attempts to install imagemagick before you try to install using my method. Otherwise, you might end up with conflicts.
– Scott Severance
Nov 4 '12 at 14:01
Although I've removed previous attempts, I get an error when identify jpg image, like this: sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
– Samir Sabri
Nov 5 '12 at 2:14
add a comment |
I have no specific reason to building from source, if installing Imagemagick using APT (apt-get, Synaptic, Software Center, etc.) will fix the JPG files issue, I will go with it, can you please point me how to install Imagemagick using APT like you did ?
– Samir Sabri
Nov 4 '12 at 8:35
@SamirSabri: Just search the Software Center or Synaptic. Or use tab completion onapt-get
to discover the command:sudo apt-get install imagemagick
.
– Scott Severance
Nov 4 '12 at 13:57
By the way, I strongly suggest that you remove all previous attempts to install imagemagick before you try to install using my method. Otherwise, you might end up with conflicts.
– Scott Severance
Nov 4 '12 at 14:01
Although I've removed previous attempts, I get an error when identify jpg image, like this: sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
– Samir Sabri
Nov 5 '12 at 2:14
I have no specific reason to building from source, if installing Imagemagick using APT (apt-get, Synaptic, Software Center, etc.) will fix the JPG files issue, I will go with it, can you please point me how to install Imagemagick using APT like you did ?
– Samir Sabri
Nov 4 '12 at 8:35
I have no specific reason to building from source, if installing Imagemagick using APT (apt-get, Synaptic, Software Center, etc.) will fix the JPG files issue, I will go with it, can you please point me how to install Imagemagick using APT like you did ?
– Samir Sabri
Nov 4 '12 at 8:35
@SamirSabri: Just search the Software Center or Synaptic. Or use tab completion on
apt-get
to discover the command: sudo apt-get install imagemagick
.– Scott Severance
Nov 4 '12 at 13:57
@SamirSabri: Just search the Software Center or Synaptic. Or use tab completion on
apt-get
to discover the command: sudo apt-get install imagemagick
.– Scott Severance
Nov 4 '12 at 13:57
By the way, I strongly suggest that you remove all previous attempts to install imagemagick before you try to install using my method. Otherwise, you might end up with conflicts.
– Scott Severance
Nov 4 '12 at 14:01
By the way, I strongly suggest that you remove all previous attempts to install imagemagick before you try to install using my method. Otherwise, you might end up with conflicts.
– Scott Severance
Nov 4 '12 at 14:01
Although I've removed previous attempts, I get an error when identify jpg image, like this: sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
– Samir Sabri
Nov 5 '12 at 2:14
Although I've removed previous attempts, I get an error when identify jpg image, like this: sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
– Samir Sabri
Nov 5 '12 at 2:14
add a comment |
Note that the no decode delegate
error can (quite confusingly) result from imagemagick (or some part of it) not finding the file. So before running to reinstall imagemagick, check with identify -list format
and convert -list configure
whether the JPEG format is supported, and if it is, the problem will probably be somewhere else.
For example, convert -resize 50% foo bar.jpg
gave me a no decode delegate for this image format
eror, but convert -resize 50% 'foo bar.jpg'
worked perfectly.
add a comment |
Note that the no decode delegate
error can (quite confusingly) result from imagemagick (or some part of it) not finding the file. So before running to reinstall imagemagick, check with identify -list format
and convert -list configure
whether the JPEG format is supported, and if it is, the problem will probably be somewhere else.
For example, convert -resize 50% foo bar.jpg
gave me a no decode delegate for this image format
eror, but convert -resize 50% 'foo bar.jpg'
worked perfectly.
add a comment |
Note that the no decode delegate
error can (quite confusingly) result from imagemagick (or some part of it) not finding the file. So before running to reinstall imagemagick, check with identify -list format
and convert -list configure
whether the JPEG format is supported, and if it is, the problem will probably be somewhere else.
For example, convert -resize 50% foo bar.jpg
gave me a no decode delegate for this image format
eror, but convert -resize 50% 'foo bar.jpg'
worked perfectly.
Note that the no decode delegate
error can (quite confusingly) result from imagemagick (or some part of it) not finding the file. So before running to reinstall imagemagick, check with identify -list format
and convert -list configure
whether the JPEG format is supported, and if it is, the problem will probably be somewhere else.
For example, convert -resize 50% foo bar.jpg
gave me a no decode delegate for this image format
eror, but convert -resize 50% 'foo bar.jpg'
worked perfectly.
answered Dec 4 '13 at 10:35
TgrTgr
412412
412412
add a comment |
add a comment |
If you have just installed php5-imagick, try also installing the full imagemagick package. This will install all required libraries, such as the jpeg one.
sudo apt-get install imagemagick
Then restart your webserver to reload al libraries:
sudo service apache2 restart
JPEG decoding should now work without error.
add a comment |
If you have just installed php5-imagick, try also installing the full imagemagick package. This will install all required libraries, such as the jpeg one.
sudo apt-get install imagemagick
Then restart your webserver to reload al libraries:
sudo service apache2 restart
JPEG decoding should now work without error.
add a comment |
If you have just installed php5-imagick, try also installing the full imagemagick package. This will install all required libraries, such as the jpeg one.
sudo apt-get install imagemagick
Then restart your webserver to reload al libraries:
sudo service apache2 restart
JPEG decoding should now work without error.
If you have just installed php5-imagick, try also installing the full imagemagick package. This will install all required libraries, such as the jpeg one.
sudo apt-get install imagemagick
Then restart your webserver to reload al libraries:
sudo service apache2 restart
JPEG decoding should now work without error.
answered Nov 2 '15 at 11:24
EpskampieEpskampie
33016
33016
add a comment |
add a comment |
have you tried :
sudo apt-get install libjpeg62
if the above command doesn't work, please go through following link.
http://psx-scene.com/forums/f150/help-install-libjpeg-libpng-ubuntu-9-10-livecd-64122/
Let em know, if this was helpful, good luck... :)
I tried your solution, I got: Reading package lists... Done Building dependency tree Reading state information... Done libjpeg62 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. But, I still get an error when identify jpg image: sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
– Samir Sabri
Nov 5 '12 at 2:17
okay, I found this : blog.ericlamb.net/2008/11/… please, check and let me know, thanks for your reply.
– Rishi Kolvekar
Nov 5 '12 at 3:29
I've just fixed it before reading your last comment, thanks, I have it in my answer below
– Samir Sabri
Nov 5 '12 at 3:35
sounds great !!! :)
– Rishi Kolvekar
Nov 5 '12 at 4:00
add a comment |
have you tried :
sudo apt-get install libjpeg62
if the above command doesn't work, please go through following link.
http://psx-scene.com/forums/f150/help-install-libjpeg-libpng-ubuntu-9-10-livecd-64122/
Let em know, if this was helpful, good luck... :)
I tried your solution, I got: Reading package lists... Done Building dependency tree Reading state information... Done libjpeg62 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. But, I still get an error when identify jpg image: sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
– Samir Sabri
Nov 5 '12 at 2:17
okay, I found this : blog.ericlamb.net/2008/11/… please, check and let me know, thanks for your reply.
– Rishi Kolvekar
Nov 5 '12 at 3:29
I've just fixed it before reading your last comment, thanks, I have it in my answer below
– Samir Sabri
Nov 5 '12 at 3:35
sounds great !!! :)
– Rishi Kolvekar
Nov 5 '12 at 4:00
add a comment |
have you tried :
sudo apt-get install libjpeg62
if the above command doesn't work, please go through following link.
http://psx-scene.com/forums/f150/help-install-libjpeg-libpng-ubuntu-9-10-livecd-64122/
Let em know, if this was helpful, good luck... :)
have you tried :
sudo apt-get install libjpeg62
if the above command doesn't work, please go through following link.
http://psx-scene.com/forums/f150/help-install-libjpeg-libpng-ubuntu-9-10-livecd-64122/
Let em know, if this was helpful, good luck... :)
edited Nov 4 '12 at 14:53
answered Nov 4 '12 at 4:02
Rishi KolvekarRishi Kolvekar
24113
24113
I tried your solution, I got: Reading package lists... Done Building dependency tree Reading state information... Done libjpeg62 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. But, I still get an error when identify jpg image: sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
– Samir Sabri
Nov 5 '12 at 2:17
okay, I found this : blog.ericlamb.net/2008/11/… please, check and let me know, thanks for your reply.
– Rishi Kolvekar
Nov 5 '12 at 3:29
I've just fixed it before reading your last comment, thanks, I have it in my answer below
– Samir Sabri
Nov 5 '12 at 3:35
sounds great !!! :)
– Rishi Kolvekar
Nov 5 '12 at 4:00
add a comment |
I tried your solution, I got: Reading package lists... Done Building dependency tree Reading state information... Done libjpeg62 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. But, I still get an error when identify jpg image: sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
– Samir Sabri
Nov 5 '12 at 2:17
okay, I found this : blog.ericlamb.net/2008/11/… please, check and let me know, thanks for your reply.
– Rishi Kolvekar
Nov 5 '12 at 3:29
I've just fixed it before reading your last comment, thanks, I have it in my answer below
– Samir Sabri
Nov 5 '12 at 3:35
sounds great !!! :)
– Rishi Kolvekar
Nov 5 '12 at 4:00
I tried your solution, I got: Reading package lists... Done Building dependency tree Reading state information... Done libjpeg62 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. But, I still get an error when identify jpg image: sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
– Samir Sabri
Nov 5 '12 at 2:17
I tried your solution, I got: Reading package lists... Done Building dependency tree Reading state information... Done libjpeg62 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. But, I still get an error when identify jpg image: sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/ReadImage/550.
– Samir Sabri
Nov 5 '12 at 2:17
okay, I found this : blog.ericlamb.net/2008/11/… please, check and let me know, thanks for your reply.
– Rishi Kolvekar
Nov 5 '12 at 3:29
okay, I found this : blog.ericlamb.net/2008/11/… please, check and let me know, thanks for your reply.
– Rishi Kolvekar
Nov 5 '12 at 3:29
I've just fixed it before reading your last comment, thanks, I have it in my answer below
– Samir Sabri
Nov 5 '12 at 3:35
I've just fixed it before reading your last comment, thanks, I have it in my answer below
– Samir Sabri
Nov 5 '12 at 3:35
sounds great !!! :)
– Rishi Kolvekar
Nov 5 '12 at 4:00
sounds great !!! :)
– Rishi Kolvekar
Nov 5 '12 at 4:00
add a comment |
I was getting same error. It took me 2 days to get solved. My error when I was trying to display jpg image:
no decode delegate for this image format `jpeg' @ error/constitute.c/readimage/504
Then, I downloaded "Synaptic Package Manager" from Software center. --> removed older libjpeg packages* --> reinstalled libjpeg8 & libjpeg-turbo8 & libjpeg-turbo8-dev.
(*synaptics package manager will show dependency with other package, remove only older independent libjpeg packages)
After that I am able to open JPEG images without any concern.
Hope it helps :)
New contributor
add a comment |
I was getting same error. It took me 2 days to get solved. My error when I was trying to display jpg image:
no decode delegate for this image format `jpeg' @ error/constitute.c/readimage/504
Then, I downloaded "Synaptic Package Manager" from Software center. --> removed older libjpeg packages* --> reinstalled libjpeg8 & libjpeg-turbo8 & libjpeg-turbo8-dev.
(*synaptics package manager will show dependency with other package, remove only older independent libjpeg packages)
After that I am able to open JPEG images without any concern.
Hope it helps :)
New contributor
add a comment |
I was getting same error. It took me 2 days to get solved. My error when I was trying to display jpg image:
no decode delegate for this image format `jpeg' @ error/constitute.c/readimage/504
Then, I downloaded "Synaptic Package Manager" from Software center. --> removed older libjpeg packages* --> reinstalled libjpeg8 & libjpeg-turbo8 & libjpeg-turbo8-dev.
(*synaptics package manager will show dependency with other package, remove only older independent libjpeg packages)
After that I am able to open JPEG images without any concern.
Hope it helps :)
New contributor
I was getting same error. It took me 2 days to get solved. My error when I was trying to display jpg image:
no decode delegate for this image format `jpeg' @ error/constitute.c/readimage/504
Then, I downloaded "Synaptic Package Manager" from Software center. --> removed older libjpeg packages* --> reinstalled libjpeg8 & libjpeg-turbo8 & libjpeg-turbo8-dev.
(*synaptics package manager will show dependency with other package, remove only older independent libjpeg packages)
After that I am able to open JPEG images without any concern.
Hope it helps :)
New contributor
New contributor
answered 19 mins ago
Kevin PatelKevin Patel
11
11
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f211627%2fhow-to-add-support-for-the-jpeg-image-format%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Why are you using
yum
? That is the package manager for a different distribution (Red Hat & Fedora), and if you have usedyum
to install imagemagick, I'm not at all surprised it can't find the libraries! You should only install software with apt-get unless you really know what you're doing! Also, "Ubuntu 12" isn't specific enough... There are two versions of Ubuntu that start with "12": 12.04 and 12.10. Ubuntu versions are based on release date: 12.04 was released April (month #04) of '12, and 12.10 was released October of '12. Please be sure and specify!– thirtythreeforty
Nov 4 '12 at 4:06
I have Ubuntu Release 12.04 (precise) 32-bit, I didn't install imagemagick with yum, instead I tar xvfz ImageMagick.tar.gz, cd ImageMagick-6.8.0, cd ImageMagick-6.8.0-4, ./configure, make, sudo make install, sudo ldconfig /usr/local/lib
– Samir Sabri
Nov 4 '12 at 4:41
try apt-get install libjpeg-dev
– Shashank Singla
Jun 30 '15 at 6:39
It's a really great answer there http://askubuntu.com/a/746195
– L. Percy
Sep 26 '16 at 13:35
how in the world can any imagemagick package be of ANY use without support for JPEG prepackaged?! That's like selling pizza without cheese or bread or tomato sauce.
– Sridhar-Sarnobat
Mar 24 '17 at 4:59