Composite of 2 images using wildcard
Posted: 2007-11-05T10:20:58-07:00
Hello, I'm new to ImageMagick, but i think it's very usefull.
Here is the problem, i have multiple images video_*.png and keyboard_*.png
where * is a 6 digits number (starting from 000000)
Basically i want to put each keyboard_*.png (small image) inside video_*.png at position +107+429
The result would for example be called result_*.png
Here is what i found :
convert C:\...\video_000000.png -page +107+429 C:\...\keybo_000000.png -flatten C:\...\result_000000.png
composite -geometry +107+429 C:\...\keybo_000000.png C:\...\video_000000.png C:\...\result_000000.png
Those two methods works but only for one composition at a time :'(
I tried that :
convert C:\...\video_*.png -page +107+429 C:\...\keybo_*.png -flatten C:\...\result_%06d.png
composite -geometry +107+429 C:\...\keybo_*.png C:\...\video_*.png C:\...\result_%06d.png
The first only do the result for the last image, for some reason.
The second only copy the keyboard image, once.
Any help will be greatly appreciated, thanks !
Here is the problem, i have multiple images video_*.png and keyboard_*.png
where * is a 6 digits number (starting from 000000)
Basically i want to put each keyboard_*.png (small image) inside video_*.png at position +107+429
The result would for example be called result_*.png
Here is what i found :
convert C:\...\video_000000.png -page +107+429 C:\...\keybo_000000.png -flatten C:\...\result_000000.png
composite -geometry +107+429 C:\...\keybo_000000.png C:\...\video_000000.png C:\...\result_000000.png
Those two methods works but only for one composition at a time :'(
I tried that :
convert C:\...\video_*.png -page +107+429 C:\...\keybo_*.png -flatten C:\...\result_%06d.png
composite -geometry +107+429 C:\...\keybo_*.png C:\...\video_*.png C:\...\result_%06d.png
The first only do the result for the last image, for some reason.
The second only copy the keyboard image, once.
Any help will be greatly appreciated, thanks !