VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: aravot on October 31, 2010, 23:20:46 pm

Title: [FIXED] Duplicate resized image
Post by: aravot on October 31, 2010, 23:20:46 pm
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.
Title: Re: Duplicate resized image
Post by: zanardi on November 01, 2010, 17:00:38 pm
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.
Title: Re: Duplicate resized image
Post by: aravot on November 01, 2010, 21:14:43 pm
The bug I think has been there from before, there aren't enough users reporting issues, I test and report what I find.
Title: Re: Duplicate resized image
Post by: jenkinhill on November 01, 2010, 23:19:45 pm
I think that issue has been around since 1.1.3?
Title: Re: Duplicate resized image
Post by: zanardi on November 02, 2010, 09:29:57 am
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?
Title: Re: Duplicate resized image
Post by: aravot on November 02, 2010, 17:37:28 pm
I don't see the reason behind it, maybe Soeren can shine a light.
Title: Re: Duplicate resized image
Post by: zanardi on November 03, 2010, 17:19:48 pm
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?
Title: Re: Duplicate resized image
Post by: aravot on November 03, 2010, 17:27:29 pm
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.
Title: Re: Duplicate resized image
Post by: zanardi on November 10, 2010, 21:46:49 pm
I put this in the tracker for 1.1.7
Title: Re: Duplicate resized image
Post by: ruben-sp on January 13, 2011, 18:22:26 pm
there is already a thread for this topic, and it seems to be solved


http://forum.virtuemart.net/index.php?topic=51644.0
Title: Re: Duplicate resized image
Post by: zanardi on January 13, 2011, 21:59:27 pm
Thank you, i will take a look at that thread also.
Title: Re: Duplicate resized image
Post by: zanardi on February 13, 2011, 14:07:21 pm
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]
Title: Re: Duplicate resized image
Post by: aravot on February 13, 2011, 20:36:07 pm
Tested the file, seems to be fixed no duplicate image.