Linux.com

Re:cropping

Posted by: Anonymous Coward on August 08, 2006 04:30 PM
Three small corrections.



The right way to crop the image to just fit the text is to use <tt>-trim +repage</tt> in ImageMagick.



Also, the <tt>-bordercolor</tt> directive must come before the <tt>-border</tt> directive, and not as shown in the article.



Lastly, ImageMagick has not had a <tt>man page</tt> since about version 6.2.2, at least in my installation.

The old content is now installed as html under<nobr> <wbr></nobr><tt>/usr/share/doc/imagemagick...</tt>,
and is easier to use.



Since these methods require knowledge of ImageMagick, one may as well do the whole job in ImageMagick.

There are many examples in <a href="http://www.cit.gu.edu.au/~anthony/graphics/imagick6/text/" title="gu.edu.au">http://www.cit.gu.edu.au/~anthony/graphics/imagic<nobr>k<wbr></nobr> 6/text/</a gu.edu.au>.



Still, it was good to learn about <tt>enscript</tt>.


JG

#

Return to CLI Magic: Make instant Web banners from the command line