Page 1 of 1

This question is a bit tough

Posted: 2015-09-12T14:36:24-07:00
by fllipper_me
Hello, guys, first of all I am kinda of noob and still trying to wrap my head around this.
This might seem like I am asking everything to be handed to me on plate but a general guide line would really help.
I just need to know if what I need is even possible, after that I will work my brains out to figure it out.
This is my problem:
I have a lot of images lets name them A.jpg, B.jpg, ..... , Z.jpg which I can size however I please, and then use them. What I need is to input which 2 images I want for example "A & C" followed by 3 character text "5-2" and get the output :first picture A separated from the second picture C by the text :"5-2" . ( the output image should be 200X100 , but this I can convert later on)
Image
I need to generate like a hundred of these on a daily basis and I would like to input a list like this:

A C 5-2
T W 3-4
B M 2-1
......
Z-F 3-2

and have all the images generated in one folder.
Is this even possible? Or am I just fooling myself?
Sorry for the long post and thank you for any advice or guideline.

Re: This question is a bit tough

Posted: 2015-09-12T17:06:48-07:00
by snibgo
The ImageMagick part of this is trivial. You are appending three images side-by-side. The middle one come from some text. For example:

Code: Select all

convert A.png label:5-3 B.png +append out_001.png
You might want to specify font face and size, etc.

A script would read your text list and run the appropriate convert command.

Re: This question is a bit tough

Posted: 2015-09-12T17:22:48-07:00
by fllipper_me
Thank you so much, it's my first time and I've been struggling with it for 4 hours, trying to use montage and you just used convert and it worked like a charm, I will make a c++ for the list to convert it into what I need. Thanks a lot !

Re: This question is a bit tough

Posted: 2015-09-12T17:48:51-07:00
by snibgo
A C++ program could be highly sophisticated and make calls to IM's internal functions, or simply build and "exec" each command. For debugging and maintenance, that's the easy route, and doesn't need linking to IM libraries. Even simpler: send each command to a text file and run that as a script. When you are still learning IM and discovering what it can do, that's the simplest method.