This is my first attemt to use ImageMagick to create a "passe-partout" effect to my photos. I've made a mock-up in PS so you can understand what I'm aiming at: http://foto.lindberg.pp.se/Darwin-Kakadu_033-PS-ram.jpg
The idea is to duplicate the original image, blur it and scale it to fit the new dimension, Place it under the original image and combine them together. I want the borders to be a percentage of the original image height. Left, right and top border should be 8% of the image height and the bottom border should be 12%.
I'm trying to do this in a Win10 batch-file. My IM version is 6.9.7.
This is what I've been doing so far:
Code: Select all
SET SRC=Darwin-Kakadu_033-web.jpg
convert %SRC% ^
( +clone ^
-bordercolor white ^
-compose Dst_In ^
-border "x8%%" ) ^
( -clone 0 -blur 0x20 ) ^
-background none -compose DstOver -layers merge ^
test.jpg
1. how do I resize image the blured image (Image stack 2) to match the previous image in the stack (stack 1, the one with the border)?
2. How do I get the the border in step one to be 12% of the image hight in the bottom of the image?
Any help would be helpful.