On Thursday 06 January 2011 13:03:06 Fred Weinhaus wrote:
> One suggestion, crop out the part of the image that you want to
> fill with the text to the same size as the image. Use your
> percentage to figure out what to crop.  Then use label: rather than
> draw with no pointsize. That will draw the text to fill the width
> or height to the best size font. Then composite the cropped text
> back into the same place it was cropped in your image.
>
> Or compute the size you want (width or height) use a transparent
> background with label: to create a new image and then overlay it
> where you want onto your image.
>
> see http://www.imagemagick.org/Usage/text/#label  and
> http://www.imagemagick.org/Usage/layers/#convert
>
> >I'm trying to add some text to my images that are being
> >hot-linked from other websites.
> >
> >Adding the text works OK, however the images vary wildly in size,
> > and once they're scaled in the browser, the text becomes
> > illegible, so, I'd like to size the text to be a percentage of
> > the image height, not a fixed point size.
> >
> >For example, if the image is 400px high, I'd like 40px text. If
> > the image is 4000px high, I'd like 400px text.
> >
> >Can anybody toss me a clue on how I can accomplish this?
>
> _______________________________________________
> Magick-users mailing list
> [email protected]
> http://studio.imagemagick.org/mailman/listinfo/magick-users

Or:
Make the picture larger.
Label it.
Make it smaller again. 
-- 
John Culleton
Create Book Covers with Scribus:
http://www.booklocker.com/p/books/4055.html
Typesetting and indexing http://wexfordpress.com
book sales http://wexfordpress.net
Free  barcode: http://www.tux.org/~milgram/bookland/

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to