white balance flash

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
JagVoylla
Posts: 17
Joined: 2014-08-01T11:34:57-07:00
Authentication code: 6789

white balance flash

Post by JagVoylla »

Hi All,

Please let me know if there is a way to apply white balance flash to an image in IM.

Thanks,
Jagrati
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: white balance flash

Post by Bonzo »

You could try and see if this code gives any EXIF data for the flash:

Code: Select all

identify -verbose image.jpg
If it does you will probably have to write a script to check that and if it is set do some operation.
JagVoylla
Posts: 17
Joined: 2014-08-01T11:34:57-07:00
Authentication code: 6789

Re: white balance flash

Post by JagVoylla »

Thanks Bonzo

WhiteBalance: 0 is what I get .Can i change this using IM
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: white balance flash

Post by snibgo »

I don't know what you mean by "white balance flash".

I have written a page about colour balancing, which is related to white balancing.

If you simply want to change the metadata, exiftool is the right tool for the job.
snibgo's IM pages: im.snibgo.com
JagVoylla
Posts: 17
Joined: 2014-08-01T11:34:57-07:00
Authentication code: 6789

Re: white balance flash

Post by JagVoylla »

Hi Snibgo ,

Thanks for your reply, In photoshop I change the white-balance to flash to process the image, I as looking for IM equivalent. I;ll look into exiftool more.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: white balance flash

Post by fmw42 »

Do you mean Photoshop is offloading its processing to the Adobe FLASH software tool? Imagemagick has no Flash delegate library to use.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: white balance flash

Post by snibgo »

Electronic (photography) flash gives a colour temperature about the same as daylight, which is bluer than electric lighting. An image that is balanced for electric lighting will show the flashed areas as rather blue. Is this the problem you are trying to solve? See im.snibgo.com/coltemp.htm

If you are processing a raw camera image, the raw processor (eg dcraw) will have tools to adjust the white balance.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: white balance flash

Post by fmw42 »

What platform and version of IM are you using? If on Linux/Mac OSX or Windows with cygwin, you can try my script, autowhite at my link below. I find the top 1% of white pixels and get their average color. Then I find the ratios of the average colors with pure white. Then use -color-matrix to shift the colors to white for the whole image.
Post Reply