{Solved} Convert Jpg to Gif

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
ScottCargill

{Solved} Convert Jpg to Gif

Post by ScottCargill »

I've got imagemagick 6.3.5.10 on a Gentoo linux box. Fresh install via the portage tree.

Basic install will not convert jpg to gif.....

Can somone point me on the right path to correcting this??

What do I need to do to add jpg to im's list of do's.
Last edited by ScottCargill on 2008-02-11T14:50:04-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert Jpg to Gif

Post by fmw42 »

Perhaps install the jpeg delegate library:

http://www.imagemagick.org/download/delegates/
ScottCargill

Re: Convert Jpg to Gif

Post by ScottCargill »

Ok, Now we're on the right track... that was 80% of what I need.... How, or whats the procedure for installing a delegate?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Convert Jpg to Gif

Post by anthony »

Install that software package or library, and try it.

Some delegates like RSVG and Liquid Resize also require IM to be re-built, but most do not. Add the delegate and it should just 'work'.

Code: Select all

convert -list format
will list the formats that your installed version of IM understands.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
ScottCargill

Re: Convert Jpg to Gif

Post by ScottCargill »

Ok, I took libjpeg-6b.tar.gz, put it in a temp directory.

./configure
make
make test'd
make install'd everything worked fine jim and dandy.

convert --list format showed everything like it should, but no jpg or jpeg in the list.

I had originally installed imagemagick via the portage tree through gentoo. What'll it take to re-complile imagemagick, will a new install catch the jpeg library?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Convert Jpg to Gif

Post by anthony »

Check the sumary section of your configure command

That will tell you if it is finding the library or not.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert Jpg to Gif

Post by fmw42 »

You can also check what delegates you have installed by

convert -list delegates

and look for the line that starts with DELEGATES

Mine has

DELEGATES bzlib freetype jpeg jp2 lcms lqr png tiff x11 xml zlib


I had compiled IM from source (but am no expert on that) and had installed the above delegate libraries first.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Convert Jpg to Gif

Post by anthony »

You really mean look at

Code: Select all

convert -list configure
and look for the DELEGATES line... :)

My own (locally build) has
DELEGATES bzlib fontconfig freetype gs jpeg jp2 lcms lqr png rsvg tiff x11 xml wmf zlib
My local build includes delegates not normally available, including jp2, rsvg, and lqr

This is really a built in summary of the configuration results that built your particular version of IM. You set the same results in the output of the configuration script, before you actually make IM.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
ScottCargill

Re: Convert Jpg to Gif

Post by ScottCargill »

zlib is the only delegate it has listed.

I need to install this or I should say re-configure / compile it. I just can't figure out from where. I installed via portage, so I'm stuck trying to find the directory I need to be in to ./configure.

I edited the configure.xml file switched -withjpg= to yes there's a delegate value at the bottom with zlib in it should I add jpg or jpeg to that line also?
ScottCargill

Re: Convert Jpg to Gif

Post by ScottCargill »

Ok,

I've stepped back two steps.

I've unmerged imagemagick.

Downloaded the tarball. I have downloaded and installed libjpeg-6b delegate.
./configure make and make installed IM.

Jpeg works!, Unfortunately now .ttf files are not reconized.

I downloaded and installed the freetype delegate, installed it. Tryed ./configure -with-jpg -with-freetype

The config process Ran fine, but showed freetype did not pass the tests.

So, I've made a little progress I think, Could be wrong and I've taken 3 steps backwards...

Any help? Direction on this.... I need .jpg and .ttf enabled. at this point I'm 1 for 2.
ScottCargill

Re: Convert Jpg to Gif

Post by ScottCargill »

Ok, Just so it's down somewhere for others that find themselves with this problem

Heres, what I ended up doing to solve the problem.

Problem, Jpg not supported by default install of imagemagick via gentoos' portage system.

Tryed, unmerging imagemagick and manually installing, with mixed results, see above.

Solution.

/etc/make.conf add jpeg to the use flags

emerge imagemagick with the new added use flag of jpeg and the default installation works like a champ.

Its' always something simple that eludes us.
Post Reply