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.
Right - I had the path to the file wrong . Now I get this: It says "Process OK" but the file is till not rotated /// system information - class version : 0.33dev - operating system : WINNT - PHP version : 5.6.12 - GD version : 2.1.0 - supported image types : png jpg gif bmp - open_basedir : no restriction - upload_max_filesize : 20M (20971520 bytes) - language : en_GB source is a local file images/small/billionphotos-940634.png - local file OK determining MIME type - Checking MIME type with Fileinfo PECL extension MAGIC path defaults to C:\phpextras/magic Fileinfo PECL extension failed (finfo_open) - Checking MIME type with UNIX file() command UNIX file() command not availabled - Checking MIME type with mime.magic file (mime_content_type()) MIME type detected as image/png by mime_content_type() - MIME validated as image/png source variables - You can use all these before calling process() file_src_name : billionphotos-940634.png file_src_name_body : billionphotos-940634 file_src_name_ext : png file_src_pathname : images/small/billionphotos-940634.png file_src_mime : image/png file_src_size : 16715 (max= 20971520) file_src_error : 0 - source file is an image image_src_x : 150 image_src_y : 150 image_src_pixels : 22500 image_src_type : png image_src_bits : 8 process file and return the content - file size OK - file mime OK : image/png - file name safe format - destination variables file_dst_path : n/a file_dst_name_body : billionphotos-940634 file_dst_name_ext : png - image resizing or conversion wanted - source image is PNG - setting destination file type to png - rotate image : 180 - converting... - saving image... PNG image created image objects destroyed - process OKReply
It says "Process OK" but the file is till not rotated
///
system information
- class version : 0.33dev
- operating system : WINNT
- PHP version : 5.6.12
- GD version : 2.1.0
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- upload_max_filesize : 20M (20971520 bytes)
- language : en_GB
source is a local file images/small/billionphotos-940634.png
- local file OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
MAGIC path defaults to C:\phpextras/magic
Fileinfo PECL extension failed (finfo_open)
- Checking MIME type with UNIX file() command
UNIX file() command not availabled
- Checking MIME type with mime.magic file (mime_content_type())
MIME type detected as image/png by mime_content_type()
- MIME validated as image/png
source variables
- You can use all these before calling process()
file_src_name : billionphotos-940634.png
file_src_name_body : billionphotos-940634
file_src_name_ext : png
file_src_pathname : images/small/billionphotos-940634.png
file_src_mime : image/png
file_src_size : 16715 (max= 20971520)
file_src_error : 0
- source file is an image
image_src_x : 150
image_src_y : 150
image_src_pixels : 22500
image_src_type : png
image_src_bits : 8
process file and return the content
- file size OK
- file mime OK : image/png
- file name safe format
- destination variables
file_dst_path : n/a
file_dst_name_body : billionphotos-940634
file_dst_name_ext : png
- image resizing or conversion wanted
- source image is PNG
- setting destination file type to png
- rotate image : 180
- converting...
- saving image...
PNG image created
image objects destroyed
- process OK