News:

Support the VirtueMart project and become a member

Main Menu

Full image dimensions in VM config not working

Started by sagaranvekar, March 17, 2022, 22:18:14 PM

Previous topic - Next topic

sagaranvekar

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:

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.

Jörgen

Yes there is an extension that help scaling images before upload in VM:
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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

sagaranvekar

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

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.

sagaranvekar

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 :



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?

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation