Hi,
I'm having several problems with PHP Upload and Resize (and Insert or Update database). I've download the latest version 1.1.7
I'm using the extension to upload an image, resize the main image and then create two smaller thumbnails and store the "name only" (of each of the 3 images) in the database.
If the image I'm uploading is already smaller than either (resized) thumbnails then the extension doesn't create the new copy (i.e. upload the image) but it does enter the new filename in the database - this means my website is looking for a file (e.g. _smallImageName.jpg that doesn't exist because the extension didn't create a new thumbnail and only uploaded the original file ImageName.jpg).
My extension is set up to resize to the following sizes: main image: 980 pixels width or 653 pixels high 1st thumb: 740 pixels wide or 493 pixels high (identified with a prefix _d) 2nd thumb: 167 pixels wide or 167 pixels high (identified with a prefix _s)
If I upload an image that is 1080 pixels wide called bigimage.jpg the extension correctly resizes the images and creates the thumbnails and updates the database so I get three images: bigimage.jpg (main image) 980 pixels wide _dbigimage.jpg (1st thumb) 740 pixels wide _sbigimage.jpg (2nd thumb) 167 pixels wide
However if I upload an image that is smaller than either of the thumbnails I get problems. So if I upload an image that is 250 pixels wide the extension only creates two images: bigimage.jpg (main image) 250 pixels wide (i.e. not resized - this is correct) 1st thumb - is missing - should be _dbigimage.jpg but the file has not been created _sbigimage.jpg (2nd thumb) 167 pixels wide but the database is updated with 3 filenames bigimage.jpg, _dbigimage.jpg, _sbigimage.jpg - even though _dbigimage.jpg does not exist.
If I upload an image that is smaller (or the same size) as the smallest thumbnail then the system only creates one resized image (instead of three). So if I upload an image that is 150 pixels wide the extension only creates one image: bigimage.jpg (main image) 150 pixels wide (i.e. not resized - this is correct) 1st thumb - is missing - should be _dbigimage.jpg but the file has not been created 2nd thumb - is missing - should be _sbigimage.jpg but the file has not been created but the database is updated with 3 filenames bigimage.jpg, _dbigimage.jpg, _sbigimage.jpg - even though _dbigimage.jpg and _sbigimage.jpg do not exist.
Please let me know if you need to see a test page.
Regards Adrian |
|
|