Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
The problems are:
-The image may have *any* aspect ratio. So I want the rounded rectangle's height to be equal to the image's height.
-I specified -fill #111111. But the background color remains black?!
-The corners do not seem to be antialiased. I tried adding the -antialias option right after convert, but it didn't change anything.
for /f %%a IN ('dir /b *.jpg') do convert %%a -resize 800 ( +clone -threshold -1 -draw "fill black polygon 0,0 0,15 15,0 fill white circle 15,15 15,0" ( +clone -flop ) -compose Multiply -composite ) +matte -compose CopyOpacity -composite %%a
This does not work, because the output file must have the png-extension.. It would also be OK if I could specify a background color instead of using transparency..
::Turn of displaying the code on the screen
@echo off
:: Read all the jpg images from the directory, resize them, add some text and save as a png in a different directory
for %%f in (%1\*.jpg) do ( convert %%f -resize 200x200 -pointsize 18 -fill black ^
-gravity northwest -annotate +0+0 "Some text" "%2\%%~nf.png" )