Flow to combine 2 images with ImageMagick
Posted: Fri Apr 21, 2023 4:42 pm
Hi,
I don't know howto to made a flow to combine all sequence of 2 identical named mages into 1 image with Imagemagick :
- 2 images have a same name but have a different+ suffix to identify the background for combining images :
image01_background
image01_portrait
image02_background
image02_portrait
etc....
imagemagick command to use should be :
magick convert image01_background.jpeg image01_portrait.jpeg -gravity center -composite image01_result.jpeg
but with EnfocusSwitch I didn't know how to insert correctly variables to find for each couple of images the right image
I already use ImageMagick with single image in a Flow, with arguments like this :
"%1" -resize 1010x1020 -background white -gravity Center -extent 1010x1020 "%2"
it works perfectly.
But here, with 2 images, I didn't know how to specify the files to combine
Thanks in advance, let me know if you need further informations for understand my issue
Regards,
Christian
I don't know howto to made a flow to combine all sequence of 2 identical named mages into 1 image with Imagemagick :
- 2 images have a same name but have a different+ suffix to identify the background for combining images :
image01_background
image01_portrait
image02_background
image02_portrait
etc....
imagemagick command to use should be :
magick convert image01_background.jpeg image01_portrait.jpeg -gravity center -composite image01_result.jpeg
but with EnfocusSwitch I didn't know how to insert correctly variables to find for each couple of images the right image
I already use ImageMagick with single image in a Flow, with arguments like this :
"%1" -resize 1010x1020 -background white -gravity Center -extent 1010x1020 "%2"
it works perfectly.
But here, with 2 images, I didn't know how to specify the files to combine
Thanks in advance, let me know if you need further informations for understand my issue

Regards,
Christian