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?".
I downloaded a few thousand movie posters that are either 480x720 or 720x1080 and would like to overlay a DVD case then upload them all as 512x512 ICO files.
I have been struggling and cant figure out the right command.
Original Poster
Overlay PNG
Desired result make with other app = Image 3
I would also like to slightly round the edges of the poster.
Please help.
Last edited by (''')d[-_-]b(''') on 2015-12-30T01:19:30-07:00, edited 1 time in total.
@echo off
setlocal enabledelayedexpansion
SET "@SOURCE=X:\Movie Posters\"
SET "@LOCATION_OF_CASE=X:\moviecase.png"
SET "@FILENAME=Poster.jpg"
SET "@ICON_OUTPUT=Case.png"
SET "@PERCENTAGE=60%"
for /r "%@SOURCE%\" %%a in (.) do (
pushd %%a
if exist %@FILENAME% (
echo f | convert -resize 370x480 -page +9+5 -alpha set -virtual-pixel transparent -channel A -blur 0x8 -threshold %@PERCENTAGE%%% "%@FILENAME%" -background none -page -96-8 "%@LOCATION_OF_CASE%" -layers merge "%@PNG_OUTPUT%"
)
popd
)
There are some images that are wider that needed...
How do I reduce the height of %@PNG_OUTPUT% and let ImageMagick automatically reduce the width in order to keep the same dimensions / shape as %@FILENAME%?