Original:
https://s3.amazonaws.com/common-content ... ev/src.png
Expected:
https://s3.amazonaws.com/common-content ... target.png
Thanks.
How to apply effect like "Bevel & Emboss" in photoshop?
Re: How to apply effect like "Bevel & Emboss" in photoshop?
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);
});
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);
});
Re: How to apply effect like "Bevel & Emboss" in photoshop?
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
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
- 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?
Always best to include input an output images. You can post to some free hosting service and put the URLs here.