Hello,
I simply want to make a simple script for lighting effects such as follows:
* Original image:
* Expected image:
(reference: https://docs.gimp.org/en/plug-in-lighting.html)
Could you help me?
Thanks a lot in advance!
Lighting Effects
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Lighting Effects
Here is one way. Darken the image, draw a white ellipse at the top left corner on a black background that is rotated 45 degrees. Blur it. Then add it onto the darkened image with some transparency to control its brightness.
Unix syntax
Unix syntax
Code: Select all
convert taj_orig.jpg +level 0x70% \
\( -clone 0 -fill black -colorize 100 \
-fill white -draw "rotate 45 ellipse 0,0 200,25 0,360 " \
-blur 0x25 -alpha set -channel a -evaluate set 65% +channel \) \
-compose plus -composite \
taj_orig_light.jpg
Re: Lighting Effects
It works! Thanks a lot.