I am new to imagemagick, I am using imagemagick ver 7.0.9 -q16 on Windows 7 64 bit.
I want to make batch images from line/s of text in a text file.
I have searched the forum, but not found any that I can use.
on https://www.imagemagick.org/discourse-s ... hp?t=27366, there has been batch script posted :
Code: Select all
set NUM=0 for /F "tokens=*" %%A in (names.csv) do ( %IM%convert ^ -size 300x200 ^ -gravity Center ^ -background Black -fill White ^ caption:"%%A" ^ names_!NUM!.png set /A NUM+=1 )
It does not read data from csv file I guess.
I could not figure out how to make it work,
Here is what I want to do:
lets say I have a text file contains 100 lines of text,
now I want to make one image file from one line of text (or two lines) from this text file,
the text file could contain text this way:
line one of text
line two of text
line three of text
line four of text
after converting, I want to have 4 images, in this example, called, image1.jpg, image2.jpg, image3.jpg, image4.jpg
on image1.jpg should contains: "line one of the text" and on image2.jpg : should be "line two of text" and so on.
can this be done ?
if so please help me,