make labels on sequence of images [WIN][CMD]

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?".
Post Reply
karlw
Posts: 5
Joined: 2016-10-12T01:35:48-07:00
Authentication code: 1151

make labels on sequence of images [WIN][CMD]

Post by karlw »

Hello. I try to make top label on couple images sequences.
I wtote script to do this.

Code: Select all

magick "TempSeq/*.png" -background Green ^
	-font Ariel -fill Black -pointsize 24 ^
	label:"My Label" ^
	+swap  -gravity center -append ^
	"./temp/%%04d.png"
this part simple and go easy. but i stuck with brasket part.
so far i have in output only one useless image.
please halp me with braskets.
ps: i have ImageMagick-7.0.3-Q16
peace.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: make labels on sequence of images [WIN][CMD]

Post by snibgo »

That command will read all the png image files, create one label image, swap the position of the label with the final png image, and append all the images vertically in a single image.

Is that what you want it to do?

What is a "brasket"?
snibgo's IM pages: im.snibgo.com
karlw
Posts: 5
Joined: 2016-10-12T01:35:48-07:00
Authentication code: 1151

Re: make labels on sequence of images [WIN][CMD]

Post by karlw »

hello. i need take image one by one and append label.
later i will create from sequence of images GIF's.
i no need part
append all the images vertically in a single image.
i want script take one image append my text and put it to another folder.
not append all together. keep them as sequence.
thank you.

ps: Image
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: make labels on sequence of images [WIN][CMD]

Post by GeeMack »

karlw wrote:hello. i need take image one by one and append label.
later i will create from sequence of images GIF's. [...] i want script take one image append my text and put it to another folder.
not append all together. keep them as sequence.
It's a little difficult to understand what you're trying to do there, but if all you want is a green strip at the top of the images with the same black text on every image, something like this might be a better approach...

Code: Select all

magick "TempSeq/*.png" -background Green ^
   -gravity north -splice 0x36 ^
   -font Ariel -fill Black -pointsize 24 ^
   -annotate +0+4 "My Label" ^
   "./temp/%%04d.png"
That uses "-splice" to add a green strip to the top of all your images. Then it uses "-annotate" to write your text on all those green strips. Then it saves them all as individual PNG files.

There are ways to use "-append" to add text to images, but the way you're trying to do it won't really work.
karlw
Posts: 5
Joined: 2016-10-12T01:35:48-07:00
Authentication code: 1151

Re: make labels on sequence of images [WIN][CMD]

Post by karlw »

I'm sorry i not explane myself well. my english pretty bed.
anyway i find soluion. so thank you very much on you replays.
Post Reply