[Solved] Brightness...

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
phleagol
Posts: 9
Joined: 2017-12-16T02:20:37-07:00
Authentication code: 1152

[Solved] Brightness...

Post by phleagol » 2017-12-16T02:32:48-07:00

I'm looking to change the brightness of a set of icons. When I previously used imagemagick from the cmdline, the -brightness-contrast option worked fine. But as I look at the perlmagick webpage, I don't see that option there.

So I ask, what is the best way to brighten some icons with perlmagick please ? Thanks in advance...
Last edited by phleagol on 2017-12-16T17:38:03-07:00, edited 1 time in total.

snibgo
Posts: 10565
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Brightness...

Post by snibgo » 2017-12-16T08:40:57-07:00

I don't use Perl, but from the documentation http://www.imagemagick.org/script/perl-magick.php you have evaluate and level, so you can do the equivalent of:

Code: Select all

convert in.png -evaluate Multiply 1.1 out.png
convert in.png -level 0,90% out.png
snibgo's IM pages: im.snibgo.com

phleagol
Posts: 9
Joined: 2017-12-16T02:20:37-07:00
Authentication code: 1152

Re: [Solved] Brightness...

Post by phleagol » 2017-12-16T17:38:40-07:00

Thank you, that works fine :)

Post Reply