Why is this chop command not working
Posted: 2008-04-07T13:48:32-07:00
I have done:
convert start.png -size 1000 -font arial -pointsize 24 caption:"this is a long bunch of information that want to be longer than the box" -gravity east -chop 700x0 -gravity northwest -geometry +300+100 -composite end.png
What I am trying to do is create an invisible box 300 pixels long, put text in it and truncate the text. In this example, I am left justifying it. My idea was to create a long box and then chop it.
The problem with this is that it is chopping the box as well as the original graphic.
If I do:
convert -size 1000 -font arial -pointsize 24 caption:"this is a long bunch of information that want to be longer than the box" -gravity east -chop 700x0 start.png +swap -gravity northwest -geometry +300+100 -composite end.png
it works fine, but I have this command in a series of commands.
If someone has a better way to do this or can tell me what I am doing wrong, it would be greatly appreciated.
Thanks
convert start.png -size 1000 -font arial -pointsize 24 caption:"this is a long bunch of information that want to be longer than the box" -gravity east -chop 700x0 -gravity northwest -geometry +300+100 -composite end.png
What I am trying to do is create an invisible box 300 pixels long, put text in it and truncate the text. In this example, I am left justifying it. My idea was to create a long box and then chop it.
The problem with this is that it is chopping the box as well as the original graphic.
If I do:
convert -size 1000 -font arial -pointsize 24 caption:"this is a long bunch of information that want to be longer than the box" -gravity east -chop 700x0 start.png +swap -gravity northwest -geometry +300+100 -composite end.png
it works fine, but I have this command in a series of commands.
If someone has a better way to do this or can tell me what I am doing wrong, it would be greatly appreciated.
Thanks