class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I've done a script that uploads an image and change its size. It's working great on my local server. But when I upload it, doesn't work with jpg images. With jpgs it only uploads the image but don't tranform it. It only transforms PNG images.
With a PHPinfo test, this is the result for GD library: gd GD Support enabled GD Version bundled (2.0.28 compatible) GIF Read Support enabled GIF Create Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled
I've done a script that uploads an image and change its size. It's working great on my local server. But when I upload it, doesn't work with jpg images. With jpgs it only uploads the image but don't tranform it. It only transforms PNG images.
With a PHPinfo test, this is the result for GD library:
gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
What can I do to have support for jpg?
Thank you.