Page 1 of 1

Resize & Rename multiple images in multiple sizes(complicated)

Posted: 2019-09-28T11:53:13-07:00
by binjone
Hi all,
I work in an eshop and i have daily to batch resize,rename and create multiple sizes of images.
I found imagemagick yesterday and i need your help guys (I truly truly want your help) !:shock:


-What i am doing now:

When i have to create a product, first of all i create a folder with the sku of the product for example 1045674.
Then i download images from internet and i put them in folder in order to upload them on site.
In our example i have 3 different images with different sizes. (1.jpg, 2jpg, 3jpg)
I pick the most attractive one which appears first in gallery and we call this image(1.jpg): "Hero image", the second image(2.jpg) "Left", the third image(3.jpg) "Middle".
    The HERO image (1.jpg) must have 3 sizes for different devices:
    1000 x 722 with name xxx-xxx-1000-1045674.jpg
    400 x 289 with name xxx-xxx-400-1045674.jpg
    200 x 145 with name xxx-xxx-200-1045674.jpg
      The LEFT image(2.jpg) must be in 2 sizes:
      • 1000 x 722 with name xxx-xxx-LEFT-1000-1045674.jpg
      • 90 x 65 with name xxx-xxx-LEFT-90-1045674.jpg
        The MIDDLE image(3.jpg)
        • 1000 x 722 with name xxx-xxx-RIGHT-1000-1045674.jpg
        • 90 x 65 with name xxx-xxx-RIGHT-90-1045674.jpg

        and etc.

        -What i am searching for

        [*]I i am searching for one command that resizes-renames the 3 images in the sizes inside the folder, and in 2nd phase to do that for multiple folders.

        [*]Ι i am searching for all images to be cropped/fit into content ( remove the borders from an image) before getting the final size. And add the rest width or height with white canvas to get the right dimensions


        Any solutions ? If you have the solution in one from the questions above you are welcome!

        Thanks in advance and sry for my English! :lol:

        Re: Resize & Rename multiple images in multiple sizes(complicated)

        Posted: 2019-09-28T13:38:10-07:00
        by fmw42
        This requires scripting, which is OS dependent. And you have not identified either your ImageMagick version of platform/OS!

        If you are willing to pay for help, post in the Consulting forum.