CHDK Forum

CHDK Development => General Discussion and Assistance => Topic started by: Barney Fife on 11 / December / 2007, 12:50:06

Title: Converting CHDK EXIF info to Standard EXIF
Post by: Barney Fife on 11 / December / 2007, 12:50:06
Deleted
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: Kalli on 13 / December / 2007, 05:38:22
WHOO HOO!!!!

Success! I got it all worked out.

I didn't need all those extra lines. I just had to put them all on just one line.

Code: [Select]
If GUICtrlRead($checkISO)== $GUI_CHECKED Then
$optionread = $optionread & "-composite:iso -EXIF:ISO -cameraISO -MakerNotes:ExposureTime -MakerNotes:FNumber "
$optionwrite = $optionwrite & "-composite:iso>EXIF:ISO -MakerNotes:ExposureTime>EXIF:ExposureTime -MakerNotes:FNumber>EXIF:FNumber"
EndIf

I'll see if I can attach my Auto CHDK Patcher to this post....

Please read the info at Auto-ISO Tool/Patcher (http://aeropic.free.fr/H&B/AUTO_ISO_patcher/) for installation info.

I changed some of the items on the display to also be more user friendly and CHDK specific.

/me is doing a major happy-dance for having been able to figure this out  :lol :P :D :xmas ::) :lol

Okay you people, start handing out the applause hits, I deserve 'em this time.  :D



Hi Barney Fife!
Trying to install the Auto CHDK Patcher I got a virus warning (WORM/Autoit.K) using Avira AntiVir PersonalEdition Classic.

I hope this is just a misinformation of my antivir software!

Cheers, Kalli
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: ke7doy on 13 / December / 2007, 14:27:56
I have used AutoIT for a while.  On there forum this issue is discussed and there is a sticky about it.  It seems that because of the nature of the script that it is identified as a virus by various programs because of the potential that is available to malicious programers.  One solution is to publish the source files and a link to the compiler and let people make it exacutable on their own.  That way they can explore the script if they are worried about security.
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: ke7doy on 13 / December / 2007, 15:17:01
Good Work!  I hadn't followed the links previously, but I can see now where you gave the source code.  I think that a lot of things could be done with AutoIT to make life eaiser,
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: Kalli on 14 / December / 2007, 05:20:34
Thank you Barney Fife and ke7doy!

I already thought that my scanner fooled me!
Thanks again for help!

Kalli
Title: CompositeISO & other EXIF fields?
Post by: Barney Fife on 16 / December / 2007, 17:18:44
Deleted
Title: Auto CHDK to EXIF v1.2
Post by: Barney Fife on 19 / December / 2007, 08:27:46
Deleted
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: mrknowitall on 22 / January / 2008, 02:16:53
Barney, thanks so much for Auto CHDK to EXIF v1.2

I have a question about how it works, though.  It seems I can use it even if I didn't use CHDK to take a picture, right?   In place of ExifTool to get the ISO info into the proper field where most apps expect it. 

When I use it on a CHDK picture, it uses the real values rather than the marketing values, yeah?  So I might see ISO 120 instead of ISO 100.  That's great.

But here is where I get a little confused.  If I set the shutter speed to 1/100,000 it will tell me something like 1/99,384.  But based on what I've read, the shutter can't go that fast.  Similarly, it will report ISO 16 when we know the ISO in fact doesn't go that low.  I unserstand why it is reporting those numbers (because that is what I set in CHDK) but is there an easy way to know when to trust the reported numbers and when the reported numbers are just what I was hoping to get?

Thanks!
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: Barney Fife on 22 / January / 2008, 02:38:41
Deleted
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: mrknowitall on 22 / January / 2008, 03:24:17
Thanks for the explanations!
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: wuevogel on 28 / January / 2008, 11:15:06
helloh,
i'm new here in this forum, have this fantastic CHDK-upgrade for my canon A630 for 2 weeks now and read this article with great interest.
but, one question please:
where will i find this "Auto CHDK to EXIF v1.2", it sounds very interesting.
sorry, i'm not a programmer, i hope i can find this little software somewhere here ready to use for winxp.
thanks a lot for those great developement and information.
wuevogel
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: wontolla on 28 / January / 2008, 11:34:36

The link is at the bottom of Barney's post. Look again.
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: wuevogel on 28 / January / 2008, 14:34:50
sorry,
but it's unbelievable!
i'm surfing always with opera or sometimes with firefox. both browsers are not able to show this single line:
"Auto CHDK to EXIF v1.2.zip (202.03 KB - runtergeladen 53 Mal.)" theres really nothing - blanks ...
i had to use IE6.0  >:(  for finding this. why is it only possible by this ugly browser and not by the other ones?
thank you, wontolla, for helping me a bit to find it.
wuevogel
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: jeff666 on 28 / January / 2008, 14:40:57
Quote from: wuevogel
i'm surfing always with opera or sometimes with firefox. both browsers are not able to show this single line:

At least firefox is (I suppose every browser is, there's nothing special about the link).
Are you sure you have been logged in? Attachments don't show up until you are.
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: wuevogel on 28 / January / 2008, 16:08:53

top browsers - easy going, my mistake

 :) that's it, thanks a lot !  :lol

wuevogel
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: keyman on 02 / April / 2008, 01:46:46
The purpose of this post has been superseded.  It was intended as search engine fodder for this thread as the string "CHDK2EXIF", which people were being directed to find, did not exist in this thread.

Barney Fife has created an excelent summary (http://chdk.setepontos.com/index.php/topic,921.0.html) of the information for which you may be searching.

Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: Barney Fife on 02 / April / 2008, 03:10:47
Deleted
Title: Re: Auto CHDK to EXIF v1.2
Post by: fudgey on 03 / April / 2008, 15:50:21
Barney, your new topic reminded me I once started to write a shell script (exiftool runs fine on Linux) to do the same things your utility does. From your posts about your version 1.1 I figured it would have to do at least this:

Code: [Select]
  exiftool -overwrite_original_in_place '-EXIF:ExposureTime<MakerNotes:ExposureTime' $1
  exiftool -overwrite_original_in_place '-EXIF:FNumber<MakerNotes:FNumber' $1
  exiftool -overwrite_original_in_place '-EXIF:ISO<composite:iso' $1
  exiftool -overwrite_original_in_place '-MakerNotes:CameraISO<composite:iso' $1

(Replace $1 with a file name and I believe the above should work in Windows command prompt as well). I think these four commands will do this:

Override ISO to useful EXIF:ISO
Override Shutter Speed to useful EXIF:ExposureTime
Override FNumber to useful EXIF:FNumber

Would you mind verifying this and giving a hint what your program feeds to exiftool in order to do the other things?:

A hidden subject distance to a useful EXIF:SubjectDistance and EXIF:UserComment (keep in mind the value is in meters)
Canon OwnerName to EXIF:Artist

Title: Re: Auto CHDK to EXIF v1.2
Post by: Barney Fife on 03 / April / 2008, 17:36:48
Deleted
Title: Re: Auto CHDK to EXIF v1.2
Post by: fudgey on 04 / April / 2008, 10:46:51
That shows the exact EXIF fields that are being copied from > to:
-composite:iso>EXIF:ISO
-composite:iso>MakerNotes:CameraISO
-MakerNotes:ExposureTime>EXIF:ExposureTime
-MakerNotes:FNumber>EXIF:FNumber
-MakerNotes:OwnerName>EXIF:Artist
-MakerNotes:FocusDistanceUpper>EXIF:SubjectDistance
-MakerNotes:FocusDistanceUpper>EXIF:UserComment


Thank you, this helped a lot :)


Originally I was hoping I could make a utility that would not only correct all ISO fields, but also allow other features. Like a quick FAT16/32 format SD card choice, Make SD Bootable, Format with CHDK Backup (it would read all CHDK folders, save them, format the SD card, and put your CHDK back like it should be).

Like a little CHDK Swiss-Army knife utlity. Doing all those little maintenance things that are CHDK related. If you work on this, could you consider adding those features? Ideally, an all-in-one DNG4PS utility would be best of all. Having everything in one CHDK tool. Maybe even convert DataGhost's Text2Grid utility to add into it too. Heck, throw in a syntax highlighting and syntax checking uBASIC editor too. :)

Now you're getting carried away again :D  I think I'll do the CHDK-preserving-format one one day, though, it's a good idea. But this is all for Linux (and compatible) command line use, I prefer that (and I'm really not a coder either, anything with a GUI means a lot of work for me).
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: whim on 04 / April / 2008, 12:20:37
@Barney
@Fudgey

Quote
Originally I was hoping I could make a utility that would not only correct all ISO fields, but also allow other features. Like a quick FAT16/32 format SD card choice, Make SD Bootable, Format with CHDK Backup (it would read all CHDK folders, save them, format the SD card, and put your CHDK back like it should be).

Like a little CHDK Swiss-Army knife utlity

As I'm almost done adding Card functions (formatting, making bootable, udumper, etc) to my
Windows compiler shell, and it is programmed in AutoIt, I'm willing to add Exif-moving functionality,
which might move it a bit towards that. I'm open to suggestions...

wim
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: PhyrePhoX on 04 / April / 2008, 12:34:21
Quote
I'm open to suggestions...
...uhm, maybe release a linux build? :D
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: whim on 04 / April / 2008, 12:41:14
@PhyrePhox

I'm not sure if it goes for all AutoIt progs, but I do remember reading on their forum
that it's possible to run them under Wine ...
Don't know if you're using that, but if so maybe you could give it a try ?

wim
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: Barney Fife on 04 / April / 2008, 14:19:48
Deleted
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: fudgey on 05 / April / 2008, 12:03:27
I think I'm slowly starting to get the hang of all these tags, but please correct me if I'm wrong in anything :)

Barney's program overwrites some standard EXIF tag contents by values from Canon's MakerNotes data using the exiftool utility. There several good reasons to do this:

1) The standard EXIF tag values will be incorrect if CHDK has overrided ISO/Tv/Av. They show whatever would have happened if CHDK hadn't changed things instead of the real values.

2) The standard EXIF tag values are nicely rounded, "market values" everyone has gotten used to seeing in their camera's menus and photography in general (such as ISO 80 or Tv 1/60 s), while the real values may be for example ISO 75 and Tv 1/72. This means the values written to standard EXIF locations by Canon are often slightly inaccurate even when CHDK isn't running.

3) For many Canon camera models, the EXIF:ISO value may be useless if you shoot in Auto ISO mode, because it contains "Auto" instead of the ISO value chosen by the camera. This doesn't seem to be true for my A570IS, but I'm guessing it is  for other models because otherwise there wouldn't be utilities to fix EXIF:ISO...?

There's one thing I think should be looked at in Barney's program: It's mildly destructive. I mean, (if I'm not mistaken), the EXIF tags originally show the market values and whether an automatic ISO mode was enabled. That information is lost forever. I think it would be nice to know that I should set the camera to Tv 1/60 to repeat the shot later and that I used Auto ISO mode.

I was thinking the MakerNotes:CameraISO/FNumber/ExposureTime fields could be used to store what was deleted from the standard EXIF tags (effectively swapping stuff from EXIF to MakerNotes and vice versa), but then figured that running the program twice on the same file would screw things up majorly.

One solution would be to just write these to the UserComment field, so that it would read something like "SubjectDistance 0.432 m, CanonISO Auto, CanonTv 1/60 s, CanonAv 1/2.6"

Also, I think composite:iso shouldn't be written to MakerNotes:CameraISO unless it's really necessary.

If I'm not mistaken, for my A570IS

- EXIF:ISO contains Canon's "market" ISO value (chosen from menus or selected by Auto ISO mode) and is incorrect if CHDK overrides have been used and for some ISO settings it's also slightly inaccurate as it's a rounded "standard" value,
- MakerNotes:CameraISO contains the name of the camera ISO setting (such as Auto or 200), and
- composite:iso is a value calculated by exiftool from the Canon MakerNotes values CameraISO, BaseISO and AutoISO.
It is an accurate ISO value which we can trust unless the camera isn't capable of the overrided value set using CHDK.

Similarly, MakerNotes:FNumber is the real aperture value and EXIF:FNumber is a market value and the same goes for MakerNotes:ExposureTime and EXIF:ExposureTime.

I think the above is the same whether CHDK was running or not at the time of shooting (for example an old pic shot at Auto ISO without CHDK gets me composite iso of 75).

Is this not true for the S3IS or other models? I mean, I got the impression that Canon didn't use EXIF:ISO at all, but I think my camera does? Not that this matters much, since CHDK overrides make tag manipulation necessary.

If other models have different usage of the tags, maybe they need to be treated differently (the model can be tested from exif:model)?

Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: Barney Fife on 05 / April / 2008, 17:00:25
Deleted
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: fudgey on 06 / April / 2008, 17:07:15
Thanks Barney. Apparently there can't be a single correct way to manipulate EXIF from our cameras, whether we run CHDK or not. People just have to check how things work with the applications they need their tags to be correct and manipulate EXIF accordingly.

Here's the sh script I came up with. It's probably not much use for Windows users unless you use a cygwin sort of an environment and get perl and exiftool to run properly under it.

It first backs up EXIF:ISO, EXIF:ExposureTime, EXIF:FNumber to the EXIF:UserComment tag along with MakerNotes:FocusDistanceUpper. If even one of these four tags does not exist, OR if the UserComment tag is not empty, OR if EXIF:Make tag is not "Canon", the script will skip the file totally because it thinks the file has either already been processed or that it is incompatible.

It doesn't overwrite any MakerNotes tags. So if there is some application that is being smart and digs the ISO for your Canon camera from MakerNotes instead of EXIF:ISO, it may possibly find an incorrect ISO if you overrided it with CHDK. I'm not quite sure about this, though.

See the script for details.

A standard disclaimer obviously applies, don't blame me if using it turns your dog purple. I would like to be informed if that happens, though :haha


Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: Barney Fife on 07 / April / 2008, 01:33:52
Deleted
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: swexegete on 17 / May / 2008, 14:37:48
Rats!  I discovered this thread by following a link from the FAQ - CHDK Wiki (http://chdk.wikia.com/wiki/FAQ), where it indicated that I could find the "Auto CHDK to EXIF v1.2.zip" file.  This discussion ran from December 2007 to April 2008, at which point apparently "Barney Fife" (the apparent creator of the program) took umbrage at some editing and removed all his posts. 

This means that all we see is talk ABOUT the program, but we have no way to reach the program itself, let alone "Barney"s extensive remarks about its use.

Where can it be found, and are there any extant usage instructions for it?  Could the CHDK wiki be updated to point to a more persistent location?

Thanks!
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: fbalb on 18 / May / 2008, 08:15:23
I'm also looking for "Auto CHDK to EXIF v1.2.zip"

I've found another program ExifAuto  but not test completly yet
ExifAuto (http://home.wi.rr.com/dick/ExifAuto.htm)
Thanks a lot all devellopers
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: whim on 18 / May / 2008, 08:56:16
Uploaded it here for you guys: auto chdk to exif v1.2.zip - 0.20MB (http://www.zshare.net/download/12204140c3210949/)
I'll change the Wikia link too (done - hehe, finally getting the hang of -basic- Wikia editing  :D)

enjoy,

wim
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: fe50 on 18 / May / 2008, 09:07:29
Thx !

*EDIT: Additional download link (zShare links are no longer valid): http://drop.io/chdksoft (http://drop.io/chdksoft) (15-Nov-2008)
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: fbalb on 18 / May / 2008, 12:33:35
Thanks whim
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: mangray on 20 / October / 2008, 01:21:09

Hit
I have troubles  with Auto CHDK to EXIF v1.2.zip

When I patch with the tool I cannot see the "correct"
Exposer Time zB in Adobe Lightroom. I see the Canon Time
not the chdk Time. Can you Help me?

Sorry for my English

nice day
mangray
Title: Re: Converting CHDK EXIF info to Standard EXIF
Post by: hotvedt on 15 / November / 2008, 07:12:58
Here is another mirror for "auto_chdk_to_exif_v1.2.zip", since i could not get zshare to work.

http://www.hot.ee/hotvedt/auto_chdk_to_exif_v1.2.zip (http://www.hot.ee/hotvedt/auto_chdk_to_exif_v1.2.zip)

In this zip-file, the "exiftool.exe" is included.