spine for book with text left j / space / right j

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
wfzimmerman
Posts: 8
Joined: 2013-04-17T11:31:14-07:00
Authentication code: 6789

spine for book with text left j / space / right j

Post by wfzimmerman »

How can I create the spine for a book with the title left justified, some space, followed by the publisher name right justified? I understand how to rotate, the problem I am having is that I don't know how to make the title gravity west and the publisher name gravity right at the same time.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: spine for book with text left j / space / right j

Post by snibgo »

Many solutions are possible, such as this Windows script:

Code: Select all

convert -size 2000x100 xc:Pink ^
  -pointsize 80 ^
  -draw "gravity West text 0,0 'A Christmas Carol'" ^
  -draw "gravity East text 0,0 'Publisher, Inc'" ^
  tp.png
snibgo's IM pages: im.snibgo.com
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: spine for book with text left j / space / right j

Post by anthony »

Also see...
IM Examples, Text to Image Handling, Form Filling
http://www.imagemagick.org/Usage/text/#form_filling
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply