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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-13-2000, 12:02 PM
|
#1
|
Member
Registered: Jun 2000
Location: Buffalo, New York
Distribution: Ubuntu, Raspbian
Posts: 381
Rep:
|
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
|
|
|
10-13-2000, 12:16 PM
|
#2
|
root 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,617
|
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.
|
|
|
10-13-2000, 03:58 PM
|
#3
|
Member
Registered: Jun 2000
Location: Buffalo, New York
Distribution: Ubuntu, Raspbian
Posts: 381
Original Poster
Rep:
|
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
|
|
|
10-13-2000, 04:11 PM
|
#4
|
root 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,617
|
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
|
|
|
10-14-2000, 07:10 PM
|
#5
|
Member
Registered: Jun 2000
Location: Buffalo, New York
Distribution: Ubuntu, Raspbian
Posts: 381
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 03:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|