Bevel and Emboss

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?".
Post Reply
garfield

Bevel and Emboss

Post by garfield »

Hi...

I made this with Photoshop CS 3... I used Bevel and Emboss...
Image

Now I want to reproduce it with IM, but I'm stuck at this point...
Image

Here my so far code:
convert -size 1300x400 xc:none -gravity north
-font Arial-Rounded-MT-Bold -strokewidth 3 -pointsize 100
-draw "text 0,0 'www.cogito.li'"
-alpha Extract -emboss 10 -shade 120x30 +dither -blur 0x3 -alpha On
-normalize +level 20% -fill "#e5267d" -tint 110%
-channel RGBA -trim -quality 0 cogitomagick.png
So, where is my mistake... what is missing in my code?

Thanks for all help!
Last edited by garfield on 2009-08-05T06:10:08-07:00, edited 1 time in total.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Bevel and Emboss

Post by Bonzo »

I can not see any difference apart from the first image is saved as a jpg so the trasparency turns black.
garfield

Re: Bevel and Emboss

Post by garfield »

The difference is in the sharpen... the first one looks "round", the second one has a clearer shadow, hard egdes...
garfield

Re: Bevel and Emboss

Post by garfield »

so, nobody was able to help me, i try an other way...

how do i get rid of sharp edges?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Bevel and Emboss

Post by fmw42 »

try changing -normalize to -contrast-stretch 0.

Normalize will clip at the low and high ends of the histogram. Perhaps that is causing your problem.

Also is it possible that you are not using the exact same font files in both cases?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Bevel and Emboss

Post by anthony »

Also Blur BEFORE the shade, whcih gives the shade more 'slope' to work with.

See IM Examples Shade with rounded edges.
http://www.imagemagick.org/Usage/transform/#shade_blur

Finally without the blur, shade will bevel only by a fixed amount!

If you want a less rounded 'bevel' use a more linear blur before the shade operator

That is use -blur 5x65535 instead of -blur 0x5

Actually if you want to be technical, it is a square 'mean' averaging of neighbouring pixels using a (5-1*2)+1 or a 9x9 square convolution array. This technique was discovered by Fred Wienhaus, and while I have not written it up, it is a very useful variation of blur.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply