Page 1 of 1

"Powerpoint" effect

Posted: 2011-12-23T11:53:12-07:00
by xpt
Hi,

For lack of better names, let me just call it "Powerpoint" effect, because what I want is exactly what Powerpoint is doing -- text shadowing.

I want to feed a script with a text file, and the script will generate a transparent-background image with the text converted to images, with the given font, size and color. The trick, ie, what I mean by "Powerpoint" effect, is that the text are added with typical drop shadow that's offset to the bottom right.

The idea is the same as

Hard Shadow
http://www.imagemagick.org/Usage/fonts/#hard_shadow

But instead of draw the specific text twice manually, I want the script to do it. And also, instead of that the prominent hard shadow, I hope the script can figure out what is "just enough" shadow for the given font size, just like what Powerpoint is doing.

Thanks

Re: "Powerpoint" effect

Posted: 2011-12-23T13:12:32-07:00
by fmw42
see -shadow at http://www.imagemagick.org/Usage/blur/#shadow and the subsequent sections. Just use text on a transparent background and then use -shadow. Also see http://www.imagemagick.org/script/comma ... d42#shadow. You will have to set the amount of shadow or program some values depending upon the font size in your script.

Re: "Powerpoint" effect

Posted: 2011-12-23T13:34:03-07:00
by xpt
Oh, didn't occur to me that -shadow can work for text as well.
Thanks for the swift reply Fred.

Merry Christmas and
Happy New Year


Re: "Powerpoint" effect

Posted: 2011-12-25T00:26:12-07:00
by anthony
Also see the more direct example of Shadowed Text
IM Examples Compound Text
http://www.imagemagick.org/Usage/fonts/

Ther are quite a few different methods of shadowing, from hard, 3d, soft or fuzzy, distance blurred, etc.