PHP Image Processing
Posted: Thu May 10, 2007 10:31 am
Hi,
I've been using PHP for some time, but have only recently entered into the arena of working with it where images are concerned.
I was looking at the image functions and haven't been able to determine whether PHP accommodates an image processing feature where it would resize the image (not in terms of height and width) to be web ready.
For example, the photos that might be uploaded from a camera are going to be high resolution and quite large in file size. Is there a function/list of functions in PHP that would allow you to convert that to a 72 dpi file in order to display it on the web.
I have found imagecreatefromjpeg - but am not sure if that's the correct function.
If someone could point me in the right direction (pointing to a tutorial would be ideal!) I would be greatly appreciative!
Thank you
I've been using PHP for some time, but have only recently entered into the arena of working with it where images are concerned.
I was looking at the image functions and haven't been able to determine whether PHP accommodates an image processing feature where it would resize the image (not in terms of height and width) to be web ready.
For example, the photos that might be uploaded from a camera are going to be high resolution and quite large in file size. Is there a function/list of functions in PHP that would allow you to convert that to a 72 dpi file in order to display it on the web.
I have found imagecreatefromjpeg - but am not sure if that's the correct function.
If someone could point me in the right direction (pointing to a tutorial would be ideal!) I would be greatly appreciative!
Thank you