How to apply effect like "Bevel & Emboss" in photoshop?

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
qcchen
Posts: 3
Joined: 2019-09-03T14:19:37-07:00
Authentication code: 1152

How to apply effect like "Bevel & Emboss" in photoshop?

Post by qcchen »

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

Re: How to apply effect like "Bevel & Emboss" in photoshop?

Post by fmw42 »

qcchen
Posts: 3
Joined: 2019-09-03T14:19:37-07:00
Authentication code: 1152

Re: How to apply effect like "Bevel & Emboss" in photoshop?

Post by qcchen »

After trying many times, this is my result:

Command(windows):

convert src.png ^
( -clone 0 -alpha extract -shade 135x45 -auto-gamma -auto-level ) ^
-compose Overlay -composite ^
-fill none -draw "color 3,3 replace" ^
src_final.png

Nodejs:
gm().command('convert')
.in(src_file)
.in('-alpha', 'extract', '-shade', '135x45', '-auto-gamma', '-auto-level')
.in(src_file)
.in('-compose', 'Overlay', '-composite')
.in('-fill', 'none', '-draw', "color 3,3 replace")
.write(dest_file, function(er){
if (er) console.log(er);
});
qcchen
Posts: 3
Joined: 2019-09-03T14:19:37-07:00
Authentication code: 1152

Re: How to apply effect like "Bevel & Emboss" in photoshop?

Post by qcchen »

This looks better:

convert src.png ^
( -clone 0 -alpha extract -shade 135x45 -auto-gamma -auto-level ) ^
( -clone 0-1 -compose Overlay -composite ) ^
( -clone 0 -alpha extract -transparent white ) ^
-delete 0-1 -compose over ^
-alpha off -compose copy_opacity -composite ^
src_t.png
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to apply effect like "Bevel & Emboss" in photoshop?

Post by fmw42 »

Always best to include input an output images. You can post to some free hosting service and put the URLs here.
Post Reply