Exif user comment - the second generation - LUA Scripting - CHDK Forum

Exif user comment - the second generation

  • 3 Replies
  • 3374 Views
*

Offline msl

  • *****
  • 1274
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Exif user comment - the second generation
« on: 06 / May / 2012, 11:46:15 »
Advertisements
stift has made a great piece of Lua script - TagMe. Thanks for that.

A part of TagMe is the Lua module - EXIFModule.lua. We can use this module with other scripts. Here is a new try.

The new script runs only with the CHDK module version, because it uses the textbox. Copy both files of the attached zip file in the same CHDK/SCRIPTS directory.

When you run the script the first time, the script creates a text file with a list of keywords (tags.txt). This list can be extended via textbox.

script functions:

(up, down) Tag - Select a keyword for Exif user comment
(left) Add - Add a new keyword via textbox
(right) Pic - Select a JPG file via CHDK file browser
(SET) Exif - Write the Keyword into the Exif Data of the selected JPG file
(MENU) End - Finish script

« Last Edit: 06 / May / 2012, 13:50:12 by msl »
CHDK-DE:  CHDK-DE links

Re: Exif user comment - the second generation
« Reply #1 on: 06 / May / 2012, 12:37:02 »
I just tried and it's nice and easy to use. The EXIFModule.lua don't have to be in the same dir where user_tag.lua - if it's not in /CHDK/SCRIPTS or /CHDK/LUALIB it will not work (I tried path /CHDK/SCRIPTS/TAGS).

I'll add polish language today or soon.

I think that there could be an optional way to save EXIF to the currently displayed image. A little progress on simmilar idea - remove RAW of displayed image is here:

http://chdk.setepontos.com/index.php?topic=6897.new#new

It would be much more simple to use than browsing in file browser, however it has some limitations (path in RAM sometimes doesn't match the displayed/selected image - while in thumbnails mode or before image loading is done).
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline msl

  • *****
  • 1274
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: Exif user comment - the second generation
« Reply #2 on: 06 / May / 2012, 13:56:53 »
- if it's not in /CHDK/SCRIPTS or /CHDK/LUALIB it will not work

Yes, you're right. 'require' expects the script in /CHDK/SCRIPTS or /CHDK/LUALIB. Thanks for this note.

msl
CHDK-DE:  CHDK-DE links

Re: Exif user comment - the second generation
« Reply #3 on: 07 / May / 2012, 02:51:14 »
Polish lang added. I have changed default to english, since it's the main language of the CHDK, I hope you don't mind that :)
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick


 

Related Topics