#1 2009-08-30 17:41

simor
Member
Registered: 2009-08-30
Posts: 5

Custom EXIF Date

First thing thank you for such a great application! I've been using it to rename my photos using the EXIF date for almost a year. Lately I got some pictures from a LG moile phone which have the date in EXIF stored in a different format eg.: 24 Aug 2009 15:30:18. When I use the EXIF_Date tag name in Pascal script I'm getting an empty string but I know from Irfanview that the tag is there. Is there any way to retrieve the date?

Offline

#2 2009-08-30 17:56

krtek
Senior Member
From: Łódź (Poland)
Registered: 2008-02-21
Posts: 262

Re: Custom EXIF Date

I know very little about pictures tags, but it seems strange to me that someone would like to go against the standard.
Try to check if you haven't cleared the Data Format in Renamer Settings.
But if you would do that, then you wouldn't be able to retrieve date from all pictures, not only the LG mobile ones.

Last edited by krtek (2009-08-30 17:57)


Regular Expressions are not as hard to understand as you may think. Check ReNamer's manual or nice Regular Expressions tutorial for more info and start to use full power of applications that use them (like ReNamer, Mp3Tag and so on).

Offline

#3 2009-08-30 17:58

narayan
Senior Member
Registered: 2009-02-08
Posts: 470

Re: Custom EXIF Date

Hi simor!

Welcome to the board.

Have you tried the new Rearrange rule (in the latest beta)? It may serve your need by letting you use the EXIF date meta tag in any pattern you want.

The rule is explained in help, here:  http://www.den4b.com/wiki/ReNamer:Rules:Rearrange

This would be useful in case the script is not working with the EXIF tab format and you are not sure where the problem is...

Offline

#4 2009-08-30 18:30

simor
Member
Registered: 2009-08-30
Posts: 5

Re: Custom EXIF Date

Thanks for such fast answers smile

krtek, it's very weird for me too and very frustrating as I've been trying to get it working for a few hours and also tried another software which reads the date but cannot use it in any way as there are parsing errors. If it reads it then it must be stored as some string - ? Then maybe Renamer can read it as string too?
Somehow I have missed the settings you mentioned, but I checked them and they are with the correct (by spec) format. I changed it to fit mine: dd mmm yyyy hh:nn:ss but there is no difference in result. Weird I thought this was the reason why Renamer couldn't read the date. Am I doing something wrong?

narayan, no I haven't... I just got the beta and read the wiki page but I don't know how I can use it sad The problem is that Renamer won't read the date field *at all*. Also when I switch the EXIF Date column then it shows empty. I wrote a little pascal script to format the date from a standard exif tag exactly as I want it so this is not a problem if I could only get my hands on the string data (which Renamer returns as empty string).

Offline

#5 2009-08-30 20:31

krtek
Senior Member
From: Łódź (Poland)
Registered: 2008-02-21
Posts: 262

Re: Custom EXIF Date

I know very little about pictures tags, but it seems strange to me that someone would like to go against the standard.

Well, I was wrong...
Maybe this thread might be a little help for you...


Regular Expressions are not as hard to understand as you may think. Check ReNamer's manual or nice Regular Expressions tutorial for more info and start to use full power of applications that use them (like ReNamer, Mp3Tag and so on).

Offline

#6 2009-08-31 07:43

simor
Member
Registered: 2009-08-30
Posts: 5

Re: Custom EXIF Date

Well, I'd be happy to recreate the dates to fit the spec-format if I only knew the way to read them first from the tag.  sad

Offline

#7 2009-08-31 07:48

krtek
Senior Member
From: Łódź (Poland)
Registered: 2008-02-21
Posts: 262

Re: Custom EXIF Date

I guess you will have wait for Denis to help you.
But for now, would you be able to provide sample of your LG photos tags done eg. with Exiftool.exe like in the thread I pointed to earlier?


Regular Expressions are not as hard to understand as you may think. Check ReNamer's manual or nice Regular Expressions tutorial for more info and start to use full power of applications that use them (like ReNamer, Mp3Tag and so on).

Offline

#8 2009-08-31 07:56

simor
Member
Registered: 2009-08-30
Posts: 5

Re: Custom EXIF Date

Here you go: (and thanks for your help!)

ExifTool Version Number         : 7.92
File Name                       : LGIM0043.jpg
Directory                       : G:/2009 08 27-28
File Size                       : 940 kB
File Modification Date/Time     : 2009:08:29 10:01:09+03:00
File Type                       : JPEG
MIME Type                       : image/jpeg
Exif Byte Order                 : Little-endian (Intel, II)
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Y Cb Cr Positioning             : Centered
Image Description               : M1
Make                            : LG Electronics
Camera Model Name               : KF750
Modify Date                     : 27 Aug 2009 17:59:55
Interoperability Index          : R98 - DCF basic file (sRGB)
Interoperability Version        : 0100
Related Image File Format       : 0220
Related Image Width             : 160
Related Image Height            : 120
Exif Version                    : 0220
Components Configuration        : Y, Cb, Cr, -
Flashpix Version                : 0100
Color Space                     : sRGB
Scene Type                      : Directly photographed
Exif Image Width                : 2592
Exif Image Height               : 1944
Exposure Time                   : 1/33
White Balance                   : Auto
F Number                        : 2.8
ISO                             : 59
Shutter Speed Value             : 1/33
Aperture Value                  : 2.8
Digital Zoom Ratio              : 1
Exposure Program                : Program AE
Exposure Compensation           : 0
Date/Time Original              : 27 Aug 2009 17:59:55
Create Date                     : 27 Aug 2009 17:59:55
Compression                     : JPEG (old-style)
Thumbnail Offset                : 676
Thumbnail Length                : 7976
Image Width                     : 2592
Image Height                    : 1944
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Comment                         : App5c Zoran
Aperture                        : 2.8
Image Size                      : 2592x1944
Shutter Speed                   : 1/33
Thumbnail Image                 : (Binary data 7976 bytes, use -b option to extr
act)
Light Value                     : 8.8

Offline

#9 2009-08-31 08:21

krtek
Senior Member
From: Łódź (Poland)
Registered: 2008-02-21
Posts: 262

Re: Custom EXIF Date

Ok, If you had your hands on the script already this might help you. If it won't, there is one more.

Just use
'Create Date\s*\:\s*(.*?)[\r\n]'
or
'Date/Time Original\s*\:\s*(.*?)[\r\n]'
in the line

TAG = 'Image timestamp\s*\:\s*(.*?)[\r\n]';

Last edited by krtek (2009-08-31 08:22)


Regular Expressions are not as hard to understand as you may think. Check ReNamer's manual or nice Regular Expressions tutorial for more info and start to use full power of applications that use them (like ReNamer, Mp3Tag and so on).

Offline

#10 2009-08-31 08:39

simor
Member
Registered: 2009-08-30
Posts: 5

Re: Custom EXIF Date

krtek wrote:

Ok, If you had your hands on the script already this might help you.

PERFECT! Thank you so much, this is exactly what I was looking for  big_smile

p.s. I had to use 'Image timestamp' as this is what exiv2 uses.

Dzięki i pozdrawiam!

Offline

Board footer

Powered by FluxBB