Duplicate resized images are created one in product folder and one in resized folder
shop_image/product/
shop_image/product/resized
No problem is caused except if a site has thousands of images space adds up.
Guess what! A new bug! Just after i freezed 1.1.6 :-)
I just tested it and it was already that way in 1.1.5. Can someone please do some more test and find in which version it is present? That would make it easier to debug.
The bug I think has been there from before, there aren't enough users reporting issues, I test and report what I find.
I think that issue has been around since 1.1.3?
I tested 1.1.4, 1.1.3, 1.1.2 and in all of them a duplicate resized image is created. Are we sure this is not intended somehow?
I don't see the reason behind it, maybe Soeren can shine a light.
Yes! There is a reason behind it and we just didn't know it. There is still a couple of issues but it's not what we thought.
This is how it works.
1. Every product has a FULL IMAGE and a THUMB IMAGE. They BOTH are placed in "shop_image/product". If you're like me, you let VirtueMart auto create the THUMB, but remember that you can manually upload a different image as a THUMB.
2. THUMB image is what is shown in FLYPAGE. When you click on it, you can see FULL image (usually in lightbox).
3. If you DON'T check "Enable dynamic thumbnail resizing", in BROWSEPAGE you'll see each product with its corresponding THUMB.
4. IF, and only IF you CHECK "Enable dynamic thumbnail resizing", in BROWSEPAGE you'll see a RESIZED version of the THUMB. A thumbnail of the thumbnail. This RESIZED version is dynamically created when you browse that category (of course, once created it is used from then after).
*** Issues ***
a) If you use "Auto thumbnail creation" the resized thumbnail is created immediately, and NOT when you browse the page
b) If you use "Auto thumbnail creation" the resized thumbnail is created EVEN if the setting "Enable dynamic thumbnail resizing " is OFF
Easy, huh?
Thank you, this is not a big issue as VM works fine.
However I was testing with "Enable dynamic thumbnail resizing" ON/OFF and with "Auto thumbnail creation" selected and not selected, everytime two images were created.
Another issue was thumb creation for additional images, I will create a full report and post it with screen shots if interested but, if you want we can leave this alone.
I put this in the tracker for 1.1.7
there is already a thread for this topic, and it seems to be solved
http://forum.virtuemart.net/index.php?topic=51644.0
Thank you, i will take a look at that thread also.
For all of you who want to test, the attached file should solve the issue. I will commit it in a minute and include in 1.1.8.
[attachment cleanup by admin]
Tested the file, seems to be fixed no duplicate image.