Magic Lantern Forum

Developing Magic Lantern => Modules Development => Topic started by: a1ex on November 27, 2017, 07:08:37 PM

Title: Image name preferences for still pictures (img_name.mo, was filepref.mo)
Post by: a1ex on November 27, 2017, 07:08:37 PM
Following this request (https://bitbucket.org/hudson/magic-lantern/issues/2585/custom-timestamp-filenames-for-images), I've decided to revive the old filepref module (https://bitbucket.org/hudson/magic-lantern/pull-requests/183/filepref-module/). Renamed it to img_name.mo.

Features:
- custom image file prefix (IMG_1234.JPG -> ABCD1234.JPG; from the old filepref module)
- change image file number to any value (IMG_1234.JPG -> IMG_5678.JPG; experimental, restart required)

TODO:
- timestamped file names (original request). Please don't expect it anytime soon - I don't know how to change the file number (last 4 characters) without restart. Maybe you can figure it out?
- date-stamped file names? (MMDD1234). This one might be easier; still need to find out how to reset the counter.
- continuous numbering? (12349999 -> 12350000, ABCD9999 -> ABCE0000). This one should be easy.
- customize folder number? (didn't try, but noticed the property in QEMU).

Known/possible issues:
- on 5D3, Canon file naming options must be set to default.
- might conflict with Dual ISO custom file naming (not tested).
- only tested on 5D3 and 60D.

Related:
- Image file prefix is also available to Lua (https://builds.magiclantern.fm/lua_api/modules/dryos.html#image_prefix) (lua_fix builds)

Source: https://bitbucket.org/hudson/magic-lantern/src/img_name/modules/img_name
Binary: https://builds.magiclantern.fm/modules.html#img_name (only the first feature works; the second one requires a custom ML build)
Title: Re: Image name preferences for still pictures (img_name.mo, was filepref.mo)
Post by: kichetof on November 27, 2017, 10:20:21 PM
Yeah thanks for that! Glad to see some great stuff for photographers!  8)  i'm excited to test (most probably during the coming days)
Title: Image name preferences for still pictures (img_name.mo, was filepref.mo)
Post by: DeafEyeJedi on November 29, 2017, 08:27:53 AM
Wow this is actually really useful and will be nice to have. Can't wait to get my hands on this one!