GD problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

GD problem

Post by evilmonkey »

Hello. I have a problem with GD. I have some code that takes a jpeg and resizes it. The way it works is the parameters for maximum width, maximum height and the file, and it resizes the jpeg file keeping the length to width ratio constant. My problem however, is not the code. I run this code on a local machine with php set up, get a 1600x1200 image, and I can resize it to any size. Once I upload it to the server however, I take that same image, and the same code, but I am only able to resize up to 100x134, even though I set max_width and max_hieght to 600. I tried this with 6 pictures, all of size 1600x1200.

Bottom line, works fine on my test machine, works badly on the webserver. Can someone please shed some light on this problem for me? Is there anything I can do? Do I have to complain about the PHP setup?

Thanks!
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Compare your test and production phpinfo() there is a section for GD.
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

It is identical.
Post Reply