Topic: Missing jpeglib.h (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=27789" title="Pages that link to Topic: Missing jpeglib.h (Page 1 of 1)" rel="nofollow" >Topic: Missing jpeglib.h <span class="small">(Page 1 of 1)</span>\

 
zavaboy
Bipolar (III) Inmate

From: f(x)
Insane since: Jun 2004

posted posted 04-15-2006 01:23

I installed ImageMagick a few months ago, I'm finally at a point where I want it. So as far as I could tell at the time, it installed correctly.

when I ran:
convert my_image.jpg -resize 400x400\> small/my_image.jpg

I got:
convert: no decode delegate for this image format `my_image.jpg'.

After Googling through a bunch of sites for a solution and one unsuccessful attempt to fix it, I found that I'm missing jpeglib.h.

When I checked the ImageMagick config log for jpeg:

code:
[root@Ivitek ImageMagick-6.2.5]# cat config.log | grep jpeg
  $ ./configure --with-jpeg=yes --with-png=yes
configure:42525: checking jpeglib.h usability
conftest.c:167:21: jpeglib.h: No such file or directory
| #include <jpeglib.h>
configure:42570: checking jpeglib.h presence
conftest.c:133:21: jpeglib.h: No such file or directory
| #include <jpeglib.h>
configure:42641: checking for jpeglib.h
configure:42659: checking for jpeg_read_header in -ljpeg
configure:42689: gcc -o conftest -g -O2 -Wall -pthread     conftest.c -ljpeg  -lm  -lpthread >&5
/usr/bin/ld: cannot find -ljpeg
| char jpeg_read_header ();
| jpeg_read_header ();
conftest.c:135:21: jpeglib.h: No such file or directory
| #include <jpeglib.h>
ac_cv_header_jpeglib_h=no
ac_cv_jpeg_version_ok=no
ac_cv_lib_jpeg_jpeg_read_header=no
CONFIGURE_ARGS='./configure --with-jpeg=yes --with-png=yes'
DISTCHECK_CONFIG_FLAGS='--with-jpeg=yes --with-png=yes'


Then I searched for jpeglib.h:

code:
[root@Ivitek ImageMagick-6.2.5]# locate jpeglib.h
[root@Ivitek ImageMagick-6.2.5]#


When I turned up with nothing, I Googled it. Now I'm lost because what I got from the Google results just confused me more.

Question: How do I get jpeglib.h where ImageMagick can find it and use it?

Linux: Red Hat Fedora Core 2
ImageMagick: 6.2.5
Me: confused

zavaboy
Bipolar (III) Inmate

From: f(x)
Insane since: Jun 2004

posted posted 04-15-2006 22:02

I finally figured out how to get jpeglib.h (i also got png.h while I was at it), but I still get the same thing returned when trying that ImageMagick convert command.

zavaboy
Bipolar (III) Inmate

From: f(x)
Insane since: Jun 2004

posted posted 04-16-2006 02:48

Ah! Got it! Forgot to reinstall ImageMagick with the new configuration. In the end, I get there...



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu