LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-13-2000, 11:02 AM   #1
Larry James
Member
 
Registered: Jun 2000
Location: Buffalo, New York
Distribution: Ubuntu, Raspbian
Posts: 381

Rep: Reputation: 40

I'm writing a photo album in PHP. At present I use an external program to make thumbnails of which I put into an icon directory for the links. I see that PHP has support for actually resizing images on the fly. However, when I try to use the jpeg support functions, I get the error:

Warning: ImageJpeg: No JPG support in this PHP build

I include the following jpeg support options when building php4.0.2:

--with-jpeg-dir=/usr/lib
--with-gd=/usr/local/gd/gd-1.8.3

After the make I run:

nm ext/gd/gd.o | grep jp

and get the following output:

00000680 T php_if_imagecreatefromjpeg
00000afc T php_if_imagejpeg

I believe the T is supposed to be a U with the proper support. Also, running <? phpinfo() ?> shows support for png, but it doesn't show support for jpeg.

Thanks in advance for any suggestions or comments.

-- L. James
 
Old 10-13-2000, 11:16 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,597

Rep: Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080
To create jpegs php relies on the gd library, which you appear to have compiled in. But gd requires libjpeg-6b or higher, so make sure you have this installed (on my machine it is /usr/lib/libjpeg.so.62.0.0). If you don't it is available here - ftp://ftp.uu.net/graphics/jpeg/
If you are still having problems let us know.
 
Old 10-13-2000, 02:58 PM   #3
Larry James
Member
 
Registered: Jun 2000
Location: Buffalo, New York
Distribution: Ubuntu, Raspbian
Posts: 381

Original Poster
Rep: Reputation: 40
Thanks for the quick response. All the libraries were installed except the jpegsrc.v6b.tar.gz. I installed that and recompiled both apache and php. It still doesn't work.
I notice there doesn't seem to not be support for the imagejpeg on your system also. If you had, had support I was going to ask you where were the hurtles you experienced.

-- L. James
 
Old 10-13-2000, 03:11 PM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,597

Rep: Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080
I didn't make an effort to compile PHP with JPEG support. Full instructions can be found here - http://www.phpbuilder.com/forum/arch...00/08/4/102783
 
Old 10-14-2000, 06:10 PM   #5
Larry James
Member
 
Registered: Jun 2000
Location: Buffalo, New York
Distribution: Ubuntu, Raspbian
Posts: 381

Original Poster
Rep: Reputation: 40
Thanks a bunch for the support

Jeremy.

Thanks a bunch for the support. The problem is resolved. Your research was helpful. It confirmed that I had done everything.

There are many varibles involved with programming. One of the main persistent culprits this time was the config.cache. The system wouldn't search for the libraries that I was adding. I had continued to do make cleans for the longest. After clearing the cache, I had another problem that threw me for a loop. It wouldn't compile without errors... not even with the defaul ./configure. Then I downloaded the latest version, and it failed to compile by default.

The culprit with this new thing was a mismatch with my kernel files. I had started an incomplete stall of the kernel 2.4.0 and this was interfering with the includes.

All in all, I have the module working. It's facilitating my album program. However, it loads much slower than the one that had the icons directory (refering to the loading of the picture index). Also, I'm going to have to figure out what causes the main page to stop loading and never complete if you click on an image before they are all up. The only way you can get the other images is to do a brower refresh.

An example of the album is at:

http://www.apollo3.com/workshop/album/

-- L. James
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
JPEG Support Ben.d Linux - General 3 03-10-2004 07:43 AM
no jpeg support arrruken Linux - Software 1 03-03-2004 01:11 AM
reinstalled apache, php, still no php support SuSE 8.2 hindenbergbaby Linux - Software 1 10-14-2003 01:42 PM
build kernel with LVM support raggmopp Linux - Software 0 06-20-2003 04:25 PM
Trouble compiling JPEG support with PHP MusicmanAN Programming 0 05-13-2001 05:08 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration