
Produce a “presentation” of it in a specific format:

The input image can be of any dimensions, vertical or horizontal. The result is:
- A canvas of 800x600.
- The background is the image resized proportionally, blurred, centred, and filling the whole available area as tightly as possible. So if the original is 5000x4000, the background would be 800x600; if the original is 1500x2400, the background would be 1125x600.
- The top image is resized proportionally to a maximum of 640x480 and centred. It has a 10px white border and a drop shadow.
Code: Select all
convert input.png \
\( -clone 0 -blur 0x20 -gravity center -resize 800x -crop 800x600+0+0 \) \
\( -clone 0 -resize 640x480 \) \
\( -clone 1 -fill white -colorize 100 \) \
\( -clone 2 -fill black -colorize 100 \) \
\( -clone 3,4 -gravity center -compose over -composite \) \
-delete 0,3,4 \
\( -clone 0,2 -gravity center -compose multiply -composite \) \
-delete 0,2 +swap \
-gravity center -compose over -composite \
result.png

Thank you for any help.