Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Modern Slider - Products by Category Tabs (SKU# FLEX-00016)

TOPIC: The module uses full size images

The module uses full size images 7 years 9 months ago #8549

Hi,

I installed the module in a website and compared it with the module as before.

I've noticed that the module uses the full size images, does not generate a thumbnail, as I attached that means the web 400kb weighs more and PageSpeed ​​low 90 to 73.

It would be interesting to reduce images to optimize performance

thank you very much
regards,
Manuel
Attachments:
The topic has been locked.

The module uses full size images 7 years 9 months ago #8560

Hi,

I just checked our DEMO and I am surprised. I don't know why the full URL's get used, instead of the thumb_url
Probably this has been missed or forgotten during the development period and nobody has reported it since then.

The solution is extremely easy, (indeed i am applying the same patch to module and make it permanently)

Open this PHP file:
/modules/mod_flexible_vm_pros_by_cats/core/vmcategoriesfullreader.php

find this Line (67th line):
SELECT GROUP_CONCAT(m.file_url SEPARATOR ',') 

replace it with this:
SELECT GROUP_CONCAT(m.file_url_thumb SEPARATOR ',') 


Finally, find this line (289th line):
SELECT m.file_url

and replace it with this:
SELECT m.file_url_thumb

And the Modern Slider will use thumbnails.(instead of full pictures)
Thanks for reporting and letting us know about it.

If you like Modern Slider and satisfied with the support you have received, please "write a review" on:
www.flexiblewebdesign.com/Virtuemart-Modules/Virtuemart-Modern-Slider-Products-by-Category-Tabs

Rate Modern Slider and write a couple of sentences to share your experience with the support team. It won't take more than 2 minutes from you but it is extremely important for us. Thanks in advance!

Regards,
Support
Last Edit: 7 years 9 months ago by Support.
The topic has been locked.

The module uses full size images 7 years 9 months ago #8578

Hi,

Thanks that may work (changing the last code is missing an "h" ;-))

The fact is that I have an empty field file_url_thumb, because I use the enable dynamic thumbnail resize, and that is not recorded in the database ... so this method does not work for me.

How I can call dynamically generated thumbnails?

thank you very much
regards,
Manuel
The topic has been locked.

The module uses full size images 7 years 9 months ago #8605

What do you mean?

Don't you have your pictures resized in this folder?

/images/stories/virtuemart/product/resized/

You misunderstood the "Dynamic Thumbnail Resizing" concept in Virtuemart. Look what it says here:

Attachment Pasted_Image_2_18_14__5_54_AM.png not found



(i am also using that option and i have the "resized" pictures in the /stories/ folder as expected)

The dynamic resizing is used to keep the aspect ratio. It is not literally resizing the picture all the time. Otherwise, it would be insane, your hosting server will overload almost everyday. Consider you have 1k visitors everyday and you have 100 product pictures. That means, your server needs to generate thumbnails "dynamically" 1000x100 = 100k. This just doesn't make any sense.

The product pictures you are generated and they stored in the /resized/ folder. Just like how the PHP files are cached and stored in the /cached/ folder. If you delete /resized/ folder, they will be re-generated. Virtuemart checks the thumb folder and see if the file is exist or not (once requested), If not exist, it will re-generate. IF it is exist, it will use the existing one.

This has absolutely nothing to do with enabling/disabling "Dynamic Thumbnail Resizing" option at all.

Regards,
Support
Last Edit: 7 years 9 months ago by Support.
The topic has been locked.

The module uses full size images 7 years 9 months ago #8682

You have right, but now i can't see the images

regalosdecapricho.com/oculto

Thanks
Manuel
The topic has been locked.

The module uses full size images 7 years 9 months ago #8698

I have posted my reply in here:
www.flexiblewebdesign.com/forum-virtuemart-modern-slider/1878-images-are-not-loading

So lets continue in the other topic. I am closing this one.

Please guide me what you have done and the product picture stop being showed off?
The topic has been locked.
Time to create page: 0.436 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo