You are here: Re: jpeg support in 5.0.4, (and libs) « PHP Programming Language « IT news, forums, messages
Re: jpeg support in 5.0.4, (and libs)

Posted by B Squared on 10/19/05 08:19

Andy Hassall wrote:
> On Tue, 18 Oct 2005 14:27:39 -0700, B Squared <null@null.com> wrote:
>
>
>>I recently installed PHP 5.0.4 on my Fedora system. I compiled in the GD
>> option. (--with-gd). Then I tested the ImageTypes() function. It
>>seems .png and .gif (IMG_PNG and IMG_GIF) are supported, but jpeg
>>(IMG_JPEG) is not. Is this expected? How do I get .jpeg support?
>
>
> You may have to specifically use --with-jpeg-dir in configure - I've got
> "--with-jpeg-dir=/usr" in the configure line I used for building PHP, which
> implies at some point I added it on because JPEG support wasn't working.

So I did as you suggested, the jpeg lib was in /usr/lib. I looked at the
configuration output and saw, among other stuff

checking for the location of libjpeg... /usr/lib

checking for jpeg_read_header in -ljpeg... yes

and there were no errors, so it looks like it worked. But the
ImageTypes() function still doesn't recognize IMG_JPEG. Any other
suggestions.

Thanks in advance.

B Squared

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация