Page 1 of 1

{Solved} Convert Jpg to Gif

Posted: 2008-02-06T22:34:37-07:00
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.

Re: Convert Jpg to Gif

Posted: 2008-02-07T15:35:39-07:00
by fmw42
Perhaps install the jpeg delegate library:

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

Re: Convert Jpg to Gif

Posted: 2008-02-07T16:42:40-07:00
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?

Re: Convert Jpg to Gif

Posted: 2008-02-07T18:17:30-07:00
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.

Re: Convert Jpg to Gif

Posted: 2008-02-07T19:01:24-07:00
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?

Re: Convert Jpg to Gif

Posted: 2008-02-07T20:58:49-07:00
by anthony
Check the sumary section of your configure command

That will tell you if it is finding the library or not.

Re: Convert Jpg to Gif

Posted: 2008-02-07T21:01:48-07:00
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.

Re: Convert Jpg to Gif

Posted: 2008-02-07T21:22:00-07:00
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.

Re: Convert Jpg to Gif

Posted: 2008-02-07T21:42:53-07:00
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?

Re: Convert Jpg to Gif

Posted: 2008-02-07T23:58:56-07:00
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.

Re: Convert Jpg to Gif

Posted: 2008-02-08T21:51:45-07:00
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.