VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: stawebnice on March 11, 2021, 15:03:07 PM

Title: Extension for automatic product image resize/crop/add white space?
Post by: stawebnice on March 11, 2021, 15:03:07 PM
Hi guys,

please is there some VM extension that would automatically create acceptable product image even if imported images are of different sizes/resolutions and DIMENSIONS?

It is also impossible to get some standard of image for XML feed product import - customer sells fishing gear and he gets images like 1700x150 px for fishing rods, and then another products have portrait images like 1200x600px which results in awful
design on eshop...

Is there something that could create preset squares/rectangles based on VM settings and add white or transparent / space to those?
Title: Re: Extension for automatic product image resize/crop/add white space?
Post by: PRO on March 12, 2021, 19:23:53 PM
Irfanview thumbnails desktop can do whole folders of images in batches.
Title: Re: Extension for automatic product image resize/crop/add white space?
Post by: pinochico on March 12, 2021, 21:54:18 PM
not for mac
not for instalation on linux server

So if you are already thinking about a desktop application (even though it was probably not the original query), then photoshop with a programmed action connected to the source files folder in a so-called batch would probably be advantageous.

But he would definitely be able to program a shell script using the GD library of the apache server linked to an import application that retrieves images from an external XML file.
For example, program this extension for the Product Import for Virtuemart application.

We once programmed a similar plugin to import images into EasyVirtueMart 1.19 for J15 from a consumer electronics retailer's data warehouse.

Title: Re: Extension for automatic product image resize/crop/add white space?
Post by: Studio 42 on March 15, 2021, 09:59:10 AM
You can import images from a URL  using a csv in my component Vm Be Pro.
It's possible to extend the resize on import using a PHP library, of course i need to code this part.
Title: Re: Extension for automatic product image resize/crop/add white space?
Post by: pinochico on March 15, 2021, 11:48:02 AM
QuoteIt's possible to extend the resize on import using a PHP library, of course i need to code this part

of course patrick, is no mather which component is used for import (our or your), definitelly need add part for resize/add white by php or GD library from server - as I wrote, isn't it :) ?
Title: Re: Extension for automatic product image resize/crop/add white space?
Post by: Studio 42 on March 16, 2021, 10:55:59 AM
Yes, it need to be coded, but i can certainly do it directly on after upload, depending a field in the CSV for eg.
If the images are public urls, it do not need to run after a shell script
Title: Re: Extension for automatic product image resize/crop/add white space?
Post by: pinochico on March 16, 2021, 11:43:28 AM
ok, resume for Petra :)

Plugin not exist, must be create it and must be cooperating with app for import.