[wellylug] Automation with Image Magick
JP
jumbophut at yahoo.co.in
Tue Feb 3 23:58:58 NZDT 2004
--- Leslie Boardman <elbe at araitanga.com> wrote: >
Hello all,
>
> I am trying to get Image Magick to 'stamp' images
> with a line of text.
> Essentially shadowing the lettering through the
> image. I want to be
> able to 'stamp' the file name of the image on the
> image.
>
> The effect I am after is exactly the same as if you
> use gimp to apply
> one image on another as a bump map and to adjust for
> the
> brightness/contrast change.
>
> I have looked at the man pages, the Image Magick
> website and a few other
> places but haven't managed to work out what I am
> supposed to be doing.
> From what I can see from my searching it *should* be
> possible... its
> just the actual *how* thats the problem.
>
> At the moment it is quite time consuming as I am
> resizing each image and
> then applying a bump map in gimp.
>
> Is anyone here able to help me?
>
Hi Leslie
You might find this page useful:
<http://www.cit.gu.edu.au/~anthony/graphics/imagick/annotating/>
After quite a bit of experimenting, I started to
wonder if what ImageMagick calls a bumpmap is what
other applications call a bumpmap.
What I was imagining was that the application would
take some text on a background, effectively turn the
dark bits into raised areas, and lay the image (photo)
down on top of the raised surface, pressing it down to
get the raised image of the text coming through into
the photo (metaphorically speaking).
What actually seems to happen is that any dark areas
(i.e. the text) just get dumped on the image in
grey-scale, and light areas are transparent. The page
above explains it rather better than I can. Anyway,
with a bumpmap image which is black text on a white
background, you just get black text on your photo.
If you only want this effect, then you can achieve it
quite easily by just printing text on the photo and
not bothering with the bumpmap operation at all. e.g.
convert -draw "text 100.100 some_text" img.jpg
newimg.jpg. (Chuck a resize operation in there too if
required)
Any chance of some "before and after" screenshots from
GIMP to see exactly what you want?
Cheers
TB
________________________________________________________________________
Yahoo! India Mobile: Download the latest polyphonic ringtones.
Go to http://in.mobile.yahoo.com
More information about the wellylug
mailing list