Search found 6 matches

by Nat
2020-02-11T23:05:58-07:00
Forum: Users
Topic: Caption images from multiple txt files
Replies: 11
Views: 1955

Re: Caption images from multiple txt files

Awesome! Thanks Fred! Examples 1 and 2 were exactly what I was struggling to accomplish.
I'll look into the 'while read' Unix command. Thanks for the tip!

I appreciate your help with this problem and hope I can give back to the community at some point!

Thanks again!

Nat
by Nat
2020-02-11T18:53:49-07:00
Forum: Users
Topic: Caption images from multiple txt files
Replies: 11
Views: 1955

Re: Caption images from multiple txt files

Hi Fred, Thanks! The script works well in bash shell, the two things I still have a question about are: What should I change the ‘caption’ command to in order to read text from all three files? Currently I believe it’s only set to only read a single file: caption:"@mark_twain1.txt" \ I’ve tried capt...
by Nat
2020-02-11T01:44:15-07:00
Forum: Users
Topic: Caption images from multiple txt files
Replies: 11
Views: 1955

Re: Caption images from multiple txt files

I was running it in a Jupyter Notebook, so that might be the problem, but I've run For loops inside them before without an issue. But I did notice the error code just now, and perhaps it's looking for Python, which would cause it to be invalid syntax. Usually if you start a line in Jupyter Notebook ...
by Nat
2020-02-11T01:20:45-07:00
Forum: Users
Topic: Caption images from multiple txt files
Replies: 11
Views: 1955

Re: Caption images from multiple txt files

Hi Fred, Thanks for taking the time to help me with this, it’s much appreciated! While trying to run the loop, I’ve been getting a syntax error with the $list in line 4. File "<ipython-input-50-23f9ae78a950>", line 4 for file in $list; do ^ SyntaxError: invalid syntax That could be from some beginne...
by Nat
2020-02-10T19:31:51-07:00
Forum: Users
Topic: Caption images from multiple txt files
Replies: 11
Views: 1955

Re: Caption images from multiple txt files

Hi Fred,

Thanks for your quick reply. I'm interested in creating 50 images in total, one image for each author. So there will be a Mark Twain image, a J.D. Salinger image etc. Each image will be 800x800. Sorry for the confusion!
by Nat
2020-02-10T15:54:39-07:00
Forum: Users
Topic: Caption images from multiple txt files
Replies: 11
Views: 1955

Caption images from multiple txt files

- ImageMagick Version: 7.0.9-8 Q16 x86_64 2019-12-21 - Mac OS / Unix Hi! I’m new to ImageMagick and scripting / coding. I’m interested in making a series of 800x800px images that read captions from txt files to form new .png images. Each txt file is similar to the following and is stored in the dire...