News:

Looking for documentation? Take a look on our wiki

Main Menu

[FIXED] Duplicate resized image

Started by aravot, October 31, 2010, 23:20:46 PM

Previous topic - Next topic

aravot

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.

zanardi

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.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

aravot

The bug I think has been there from before, there aren't enough users reporting issues, I test and report what I find.

jenkinhill

I think that issue has been around since 1.1.3?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

zanardi

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?
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter


zanardi

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?
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

aravot

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.

zanardi

I put this in the tracker for 1.1.7
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

ruben-sp

there is already a thread for this topic, and it seems to be solved


http://forum.virtuemart.net/index.php?topic=51644.0

zanardi

Thank you, i will take a look at that thread also.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

zanardi

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]
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter