04 Oct 2011 11:09:39 liz banbury posted:
I'm trying to use both the PHP Uploader and the SMart Image Resizer at the same time and together with a current PHP script that I have. I know some parts of the current script can be removed. But here are the issues and questions:
1. The PHP Upload works in that it places the images in the specified folder and makes sure they have a unique name. My (non server behaviour) written insert query also works. However the Smart Image Resizer does not work. The images are not scaled, but seem to be resized. Actually seems more like a crop.
The issue I have with the filenames is this:
Is it possible to specify that the filename is created like this:
number_format($ID,0,".",",") . '_' . time() . '_' . mt_rand() .$image_name
Actualy the main part is $ID as this is taken from the user ID stored in the SESSION, which makes it easier for me to know which images below to which person if there was a problem....
Also what is strange is that some images are going via my code and some by the dmx software.
Please let me know if you'd like the full code :-)
Many thanks for any help liz