[ExternalTool] Additional processing for underwater pictures

3rd party extensions (phpDivingLog, dive computer downloader,...)
Post Reply
rene
Posts: 65
Joined: Sun Sep 12, 2010 19:07
Location: France

[ExternalTool] Additional processing for underwater pictures

Post by rene » Sun Nov 27, 2011 20:15

Hello,

Here is another extension for Diving Log. This allows you to do some additional processing with your underwater pictures.


Story
A few time ago, I wrote a tool for my own needs to add the depth and the place name into underwater pictures. I finally found time to make it a little more user friendly. I have merged it with another program that automates the association of a given dive with images based on the shooting time.

As this may be of interest to others, I decided to make it public.


Description

Image

This program loads the dives of the current logbook with their profiles. You can select only some dives to limit the analysis.

Then you select a Picasa album (if you have one) or a path on your hard disk where the images are stored.

The analyze button will find all pictures that belong to the displayed dives. The algorithm uses the camera time, not the file time.

So, it is recommended, if possible, to calculate the shift between the clock of your camera and the dive computer.

Here is an example (I just shot my dive computer displaying its time with my underwater camera) :
Image

When analysis is done, you can associate the pictures with dives in the Diving Log database. Optionally you can preprend the depth in the description (hope a depth column will be added soon !). A confirmation window is displayed before the updates are made.

The program will only modify the Pictures table with updating or adding records. All other tables are unchanged.


Advanced usage
Alternatively, and for advanced/geek users, you can generate a batch (e.g. a script) to process the pictures with depth and site information.

Two dialogs are dedicated to this feature: the pattern creation (syntax in the ? button)
Image

and the resulting batch (which can be saved or copied to the clipboard)
Image

As example, here is the result for my last liveabroad in Red Sea. I used ImageMagick to overlay the depth, the site and a little picture (my diver timestamp...) in the images.

Be careful not to delete or modify original image files with bad commands. I strongly recommend to carefully read the manual of ImageMagick or exiftool or any other command line tool used and do some tries before applying the batch to a whole directory.


Installation
The setup program is here (thanks to AndyDragon). All dependencies will be automatically downloaded : Microsoft Framework .NET 4 and Visual C++ 2010 runtime. Yes, the complete Framework .NET 4, not only the client profile version (due to the Scintilla control).

The initial public version is 1.1.0.9.

The first time you launch the program it will register itself with Diving Log as an External Tool. Updates will be downloaded automatically when available.

Please backup your logbook before using this tool.

It works fine on Windows 7. On XP, IPTC titles are not extracted from images, I don't know why.

Sorry, only metric system for now. But if they loudly insist, I will take care of my anglo-saxon friends :P In exchange, they can correct my mistakes in English !


Disclaimer

THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The program is not related to Diving Log neither its author.


Best regards,
rené

Post Reply