VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: sagaranvekar on March 17, 2022, 22:18:14 PM

Title: Full image dimensions in VM config not working
Post by: sagaranvekar on March 17, 2022, 22:18:14 PM
Hello,

Website is using Joomla 3.10.6 and Virtuemart 3.8.8
Store is in catalog mode.

I have stubborn client who refuses to optimize images before uploading on website (old man!). Initially, in Virtuemart -> Configuration -> Templates -> Media Files Settings, there was no value set for  Fullimage width &  Fullimage height. So, I added  Fullimage width & height and saved configuration as below:
(https://i.postimg.cc/FzbR0fQ4/Config.png)
Then I tried uploading an image which is bigger than 1500px. But it is uploading image with no effect. No dimension & size change after upload.
In Joomla Content -> Media -> Options -> Media tab -> Maximum Size (in MB) is set to 2MB. However I was able to upload image file of 8MB & 3744x3744px in dimensions.

Website also uses this plugin for multiple image uploads: https://extensions.joomla.org/extension/vm-product-multiple-image-upload/
But I tested with default Virtuemart image upload option & still no effect.
Is there any way to prevent such big file uploads?

Please help.
Title: Re: Full image dimensions in VM config not working
Post by: Jörgen on March 18, 2022, 09:01:04 AM
Yes there is an extension that help scaling images before upload in VM:
https://shop.st42.fr/en/products/multi-upload-images.htm (https://shop.st42.fr/en/products/multi-upload-images.htm)

I use it myself and you can set a lot of options for the uploaded images, full size, thumbnails etc.

Jörgen
Title: Re: Full image dimensions in VM config not working
Post by: GJC Web Design on March 18, 2022, 12:29:35 PM
QuoteIn Joomla Content -> Media -> Options -> Media tab -> Maximum Size (in MB) is set to 2MB. However I was able to upload image file of 8MB & 3744x3744px in dimensions.
VM doesn't use any part of the Joomla media system
QuoteThen I tried uploading an image which is bigger than 1500px. But it is uploading image with no effect. No dimension & size change after upload.
This is only the display size of the image in VM - has nothing to do with uploading/resizing etc
Title: Re: Full image dimensions in VM config not working
Post by: sagaranvekar on March 18, 2022, 15:42:01 PM
Quote from: Jörgen on March 18, 2022, 09:01:04 AM
Yes there is an extension that help scaling images before upload in VM:
https://shop.st42.fr/en/products/multi-upload-images.htm (https://shop.st42.fr/en/products/multi-upload-images.htm)

I use it myself and you can set a lot of options for the uploaded images, full size, thumbnails etc.

Jörgen

Thank you very much for your response. I will test with this plugin.
Title: Re: Full image dimensions in VM config not working
Post by: sagaranvekar on March 18, 2022, 15:54:40 PM
Quote from: GJC Web Design on March 18, 2022, 12:29:35 PM
QuoteIn Joomla Content -> Media -> Options -> Media tab -> Maximum Size (in MB) is set to 2MB. However I was able to upload image file of 8MB & 3744x3744px in dimensions.
VM doesn't use any part of the Joomla media system
QuoteThen I tried uploading an image which is bigger than 1500px. But it is uploading image with no effect. No dimension & size change after upload.
This is only the display size of the image in VM - has nothing to do with uploading/resizing etc

Thank you very much for your reply.

Ow! I thought VM uses joomla media settings. Thanks for letting me know.

Regarding dimension settings, when you mouse hover 'Fullimage width', it says :

(https://i.postimg.cc/pTtRDCSF/optimize.png)

That makes you think that VM will optimize the image. So, if it is not uploading/resizing, then can you please help me understand how it helps to reduce the load size?
Title: Re: Full image dimensions in VM config not working
Post by: GJC Web Design on March 18, 2022, 22:18:00 PM
It will resize ( or should resize) a copy of the uploaded image ... look in the resize folder for image_1500x0.jpg etc

this will be displayed in the details