control size output using convert from txt to png

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
questorfla
Posts: 3
Joined: 2016-02-12T19:25:16-07:00
Authentication code: 1151

control size output using convert from txt to png

Post by questorfla »

I was able to use convert to change the test file to a png file so it could be used in a sequence that builds a singe image from several pngs. But the output of convert changing from txt to png is too large and -resize doesn't seem to follow the same rules as it does when used on the combined png's
What i have so far: convert "notes.txt" "notes.png" works perfect but i can't get -resize xxx-xxx to perform at the pixels sixes as expected

On the other hand:
convert -append "top.png" "goldbar.png" "school.png" "goldbar.png" "pos.png" -resize 260x298 "inviteb.png" works perfectly
I just need that single line of text (as a .png I guess) to be appended to the bottom like a "Label" for the image.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: control size output using convert from txt to png

Post by fmw42 »

What is your IM version and platform?

What was your exact command line that fails.?

Can you post your notes.txt file and your other images to dropbox.com and put the URL's here.

By the way, in proper IM 6 syntax, the operator -append should come after reading each of your input images, then resize and then save to output.

The question is what is wrong with your command

convert notes.txt to notes.png?

If notes.txt is one line of text, then perhaps you should read the text into a string and then render the string as text using label:.

See http://www.imagemagick.org/Usage/text/#label

Please do not post the same material to two different topics in the future. I have deleted your other post.

Please read viewtopic.php?f=1&t=9620
Post Reply