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.
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!