"Powerpoint" effect

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?".
Locked
xpt
Posts: 59
Joined: 2010-10-06T20:18:24-07:00
Authentication code: 8675308

"Powerpoint" effect

Post 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

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: "Powerpoint" effect

Post 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.

xpt
Posts: 59
Joined: 2010-10-06T20:18:24-07:00
Authentication code: 8675308

Re: "Powerpoint" effect

Post 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


User avatar
anthony
Posts: 8884
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: "Powerpoint" effect

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/

Locked