[thelist] Image Magick, width set by text string

martin.p.burns at uk.pwcglobal.com martin.p.burns at uk.pwcglobal.com
Wed Feb 6 04:23:01 CST 2002

Memo from Martin P Burns of PricewaterhouseCoopers

-------------------- Start of message text --------------------

Hi Roger

If you can generate the image with the text in, ImageMagick can tell you
wide the resulting image is.

I've used it on my dropbox:

I can just ftp a bunch of images in and I've a Perl script which reads the
file list,
sorts it by date, throws each one at ImageMagick, gets the dimensions back
builds an appropriate image tag.


To:   "'thelist at lists.evolt.org'" <thelist at lists.evolt.org>
Subject:  [thelist] Image Magick, width set by text string

does anyone know if it is possible to set the width of an image in Image
Magick by inputting a text string?

scenario is that i am working on a backend admin system using Mediasurface
for a site where the client wants to add new sections, I am using Image
Magick to tweak images that are uploaded for articles and that works
brilliantly. The titles of the pages are also images which use a predefined
non standard font and colour. I want the admin type person to be able to
type in the title of the page/section and for Image Magick to generate the
title image automatically, nicely cropped and sized, based on the inputted
text. Should i start off with a very wide image and then crop later
depending on the width of the text?

--------------------- End of message text --------------------

This e-mail is sent by the above named in their
individual, non-business capacity and is not on
behalf of PricewaterhouseCoopers.

PricewaterhouseCoopers may monitor outgoing and incoming
e-mails and other telecommunications on its e-mail and
telecommunications systems.
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any

More information about the thelist mailing list