Author Topic: [FIXED] Duplicate resized image  (Read 9516 times)

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
[FIXED] Duplicate resized image
« 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.

zanardi

  • Contributing Developer
  • Full Member
  • *
  • Posts: 878
    • GiBiLogic
Re: Duplicate resized image
« Reply #1 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.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
Re: Duplicate resized image
« Reply #2 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.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27457
  • Always on vacation
    • Jenkin Hill Internet
Re: Duplicate resized image
« Reply #3 on: November 01, 2010, 23:19:45 pm »
I think that issue has been around since 1.1.3?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

zanardi

  • Contributing Developer
  • Full Member
  • *
  • Posts: 878
    • GiBiLogic
Re: Duplicate resized image
« Reply #4 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?
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
Re: Duplicate resized image
« Reply #5 on: November 02, 2010, 17:37:28 pm »
I don't see the reason behind it, maybe Soeren can shine a light.

zanardi

  • Contributing Developer
  • Full Member
  • *
  • Posts: 878
    • GiBiLogic
Re: Duplicate resized image
« Reply #6 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?
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
Re: Duplicate resized image
« Reply #7 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.

zanardi

  • Contributing Developer
  • Full Member
  • *
  • Posts: 878
    • GiBiLogic
Re: Duplicate resized image
« Reply #8 on: November 10, 2010, 21:46:49 pm »
I put this in the tracker for 1.1.7
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

ruben-sp

  • Jr. Member
  • **
  • Posts: 64
Re: Duplicate resized image
« Reply #9 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

zanardi

  • Contributing Developer
  • Full Member
  • *
  • Posts: 878
    • GiBiLogic
Re: Duplicate resized image
« Reply #10 on: January 13, 2011, 21:59:27 pm »
Thank you, i will take a look at that thread also.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

zanardi

  • Contributing Developer
  • Full Member
  • *
  • Posts: 878
    • GiBiLogic
Re: Duplicate resized image
« Reply #11 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]
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
Re: Duplicate resized image
« Reply #12 on: February 13, 2011, 20:36:07 pm »
Tested the file, seems to be fixed no duplicate image.