Author Topic: Extension for automatic product image resize/crop/add white space?  (Read 1864 times)

stawebnice

  • Jr. Member
  • **
  • Posts: 265
  • What does not kill you, makes you stronger...
    • StaWEBnice - www stránky, seo optimalizace a copywriting
  • Skype Name: peta_ze_sklepa
  • VirtueMart Version: 3.2.14
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?

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10443
  • VirtueMart Version: 3+
Re: Extension for automatic product image resize/crop/add white space?
« Reply #1 on: March 12, 2021, 19:23:53 PM »
Irfanview thumbnails desktop can do whole folders of images in batches.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1707
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Extension for automatic product image resize/crop/add white space?
« Reply #2 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.

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4728
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Extension for automatic product image resize/crop/add white space?
« Reply #3 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.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1707
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Extension for automatic product image resize/crop/add white space?
« Reply #4 on: March 15, 2021, 11:48:02 AM »
Quote
It'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 :) ?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4728
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Extension for automatic product image resize/crop/add white space?
« Reply #5 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

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1707
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Extension for automatic product image resize/crop/add white space?
« Reply #6 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.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products