Convert list.txt to Individual image!!

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
Cauptain
Posts: 5
Joined: 2017-08-05T02:45:55-07:00
Authentication code: 1151

Convert list.txt to Individual image!!

Post by Cauptain »

Hi all,

I have a txt list with names and wanted to convert to individual images with 2 lines max trim in PNG format.

My txt list have 1000 lines like us:

After Burner
BC Racers
Blackthorne
Brutal Unleashed: Above the Claw
Cosmic Carnage
DarXide
Doom
FIFA Soccer 96
Golf Magazine: 36 Great Holes

I need process all list make size 400 x Anything like images below (font, color, shadow, arch, any effect...):

Image

Image

Image


How to do this?

Thanks

PS: I use ImageMagick-7.0.6-5 on Windows 10.

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

Re: Convert list.txt to Individual image!!

Post by GeeMack »

Cauptain wrote: 2017-08-05T03:28:24-07:00I need process all list make size 400 x Anything like images below (font, color, shadow, arch, any effect...):
First, it's a simple matter for ImageMagick to read a list of labels from a text file, but to do something different with each line might require looping through the list using the "for" feature in your particular command shell or script.

Maybe more importantly, although ImageMagick can be used to create the kinds of text effects in your samples, each one could be a somewhat complicated command on its own. To be practical about doing something like this you'd probably need to create a number of separate scripts, each producing a particular text effect. Then you'd take the individual labels from your text file using a "for" loop, and apply the individual effects maybe by using a nested "for" loop.

ImageMagick doesn't really have pre-packaged text effects, but it can be used to do everything you've shown in your example images. For anyone who isn't an advanced user, it might be pretty daunting to build some of the commands and scripts to do that. There are a few very experienced users who frequent these forums, and some of them have written a large body of scripts to do a wide variety of tasks. Maybe they'll weigh in here and point you to some tools to make it easier.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert list.txt to Individual image!!

Post by snibgo »

The question is very wide-ranging. See http://www.imagemagick.org/Usage/text/ for the basics of turning images into text.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert list.txt to Individual image!!

Post by fmw42 »

Also see http://www.imagemagick.org/Usage/fonts/ for various text effects.
Cauptain
Posts: 5
Joined: 2017-08-05T02:45:55-07:00
Authentication code: 1151

Re: Convert list.txt to Individual image!!

Post by Cauptain »

Thank you GeeMack, snibgo and fmw42 for all infos and tips.

I will read all links



Claudio
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert list.txt to Individual image!!

Post by fmw42 »

If you use Windows 10 unix, you can try my scripts, texteffect, texteffect2 and 3Dtext, at my link below.
ozbigben
Posts: 27
Joined: 2012-03-25T02:15:27-07:00
Authentication code: 8675308

Re: Convert list.txt to Individual image!!

Post by ozbigben »

You could also create a spreadsheet to generate the batch file for you. Put your filenames in one column and IM options in another and the use a concatenate calculation to create the full command. If you wanted to cycle through a number of styles for example you could auto-fill a column with alternating sets of options. Then just select the column with the full command and copy it to a text file (... or split it up into 4-6 batch files and run them all at once)
Post Reply