This question is a bit tough

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
fllipper_me
Posts: 2
Joined: 2015-09-12T14:15:06-07:00
Authentication code: 1151

This question is a bit tough

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: This question is a bit tough

Post 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.
snibgo's IM pages: im.snibgo.com
fllipper_me
Posts: 2
Joined: 2015-09-12T14:15:06-07:00
Authentication code: 1151

Re: This question is a bit tough

Post 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 !
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: This question is a bit tough

Post 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.
snibgo's IM pages: im.snibgo.com
Post Reply