Announcement

#1 2013-08-06 17:47:03

DikkieDick
Member
2013-08-06
7

[resolved] Synchronize doesn't read date-taken from exif

Hi,
I am googling around but can't find a proper way to get the creation date extracted from the exif-information when I want to sync. If I check the database it says NULL. Now I had to manually enter the creation-date to put it nicely in the calendar. After looking in the database I have another workaround:

UPDATE `deb7960_piwi1`.`piwi_images` SET `date_creation` = '2013-07-12 00:00:00' WHERE `piwi_images`.`file` like '20130712%';

Fortunately I put the date in the filename as well.

Have to do this for 'every' picture then. :-(
Must be easier to solve. Anyone? Running 2.5.2. Thanx in advance.

Greetings, Dick

Last edited by DikkieDick (2013-08-06 17:50:16)

Offline

 

#2 2013-08-07 12:16:11

flop25
Piwigo Team
2006-07-06
7037

Re: [resolved] Synchronize doesn't read date-taken from exif

hi
what's the raw string inside the exif data?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2013-08-07 13:25:27

DikkieDick
Member
2013-08-06
7

Re: [resolved] Synchronize doesn't read date-taken from exif

What do you exactly mean? I ran exiftool on it:

M:\Webfoto\2013\07-08>d:\tools\exiftool.exe 20130710-001-Japan-Korea.jpg
ExifTool Version Number         : 9.20
File Name                       : 20130710-001-Japan-Korea.jpg
Directory                       : .
File Size                       : 216 kB
File Modification Date/Time     : 2013:07:10 15:33:03+02:00
File Access Date/Time           : 2013:08:07 13:23:39+02:00
File Creation Date/Time         : 2013:07:10 15:33:03+02:00
File Permissions                : rw-rw-rw-
File Type                       : JPEG
MIME Type                       : image/jpeg
JFIF Version                    : 1.01
Exif Byte Order                 : Little-endian (Intel, II)
Make                            : NIKON CORPORATION
Camera Model Name               : NIKON D600
X Resolution                    : 240
Y Resolution                    : 240
Resolution Unit                 : inches
Software                        : Adobe Photoshop Lightroom 4.3 (Windows)
Modify Date                     : 2013:08:06 15:16:14
Exposure Time                   : 1/200
F Number                        : 5.6
Exposure Program                : Aperture-priority AE
ISO                             : 200
Sensitivity Type                : Recommended Exposure Index
Exif Version                    : 0230
Date/Time Original              : 2013:07:10 08:48:59
Create Date                     : 2013:07:10 08:48:59
Shutter Speed Value             : 1/200
Aperture Value                  : 5.6
Exposure Compensation           : 0
Max Aperture Value              : 3.2
Metering Mode                   : Multi-segment
Light Source                    : Unknown
Flash                           : Off, Did not fire
Focal Length                    : 35.0 mm
Sub Sec Time Original           : 30
Sub Sec Time Digitized          : 30
Focal Plane X Resolution        : 167.5014954
Focal Plane Y Resolution        : 167.5014954
Focal Plane Resolution Unit     : mm
Sensing Method                  : One-chip color area
File Source                     : Digital Camera
Scene Type                      : Directly photographed
CFA Pattern                     : [Red,Green][Green,Blue]
Custom Rendered                 : Normal
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 1
Focal Length In 35mm Format     : 35 mm
Scene Capture Type              : Standard
Gain Control                    : None
Contrast                        : Normal
Saturation                      : Normal
Sharpness                       : Normal
Subject Distance Range          : Unknown
Lens Model                      : 24.0-85.0 mm f/2.8-4.0
Compression                     : JPEG (old-style)
Thumbnail Offset                : 1006
Thumbnail Length                : 13685
XMP Toolkit                     : Adobe XMP Core 5.5-c002 1.148022, 2012/07/15-1
8:06:45
Creator Tool                    : Adobe Photoshop Lightroom 4.3 (Windows)
Metadata Date                   : 2013:08:06 15:16:14+02:00
Serial Number                   : 6075654
Lens Info                       : 24-85mm f/2.8-4
Lens                            : 24.0-85.0 mm f/2.8-4.0
Image Number                    : 1594
Approximate Focus Distance      : 4.73
Document ID                     : xmp.did:854a18cd-a1e7-b34e-ad92-cb6ff5180503
Original Document ID            : C621D9AA5273A835121165586575A048
Instance ID                     : xmp.iid:854a18cd-a1e7-b34e-ad92-cb6ff5180503
Format                          : image/jpeg
Version                         : 7.3
Process Version                 : 6.7
Color Temperature               : 6500
Tint                            : +10
Luminance Smoothing             : 0
Color Noise Reduction           : 25
Vignette Amount                 : 0
Shadow Tint                     : 0
Red Hue                         : 0
Red Saturation                  : 0
Green Hue                       : 0
Green Saturation                : 0
Blue Hue                        : 0
Blue Saturation                 : 0
Vibrance                        : +22
Hue Adjustment Red              : 0
Hue Adjustment Orange           : 0
Hue Adjustment Yellow           : 0
Hue Adjustment Green            : 0
Hue Adjustment Aqua             : 0
Hue Adjustment Blue             : 0
Hue Adjustment Purple           : 0
Hue Adjustment Magenta          : 0
Saturation Adjustment Red       : 0
Saturation Adjustment Orange    : 0
Saturation Adjustment Yellow    : 0
Saturation Adjustment Green     : 0
Saturation Adjustment Aqua      : 0
Saturation Adjustment Blue      : 0
Saturation Adjustment Purple    : 0
Saturation Adjustment Magenta   : 0
Luminance Adjustment Red        : 0
Luminance Adjustment Orange     : 0
Luminance Adjustment Yellow     : 0
Luminance Adjustment Green      : 0
Luminance Adjustment Aqua       : 0
Luminance Adjustment Blue       : 0
Luminance Adjustment Purple     : 0
Luminance Adjustment Magenta    : 0
Split Toning Shadow Hue         : 0
Split Toning Shadow Saturation  : 0
Split Toning Highlight Hue      : 0
Split Toning Highlight Saturation: 0
Split Toning Balance            : 0
Parametric Shadows              : 0
Parametric Darks                : 0
Parametric Lights               : 0
Parametric Highlights           : 0
Parametric Shadow Split         : 25
Parametric Midtone Split        : 50
Parametric Highlight Split      : 75
Sharpen Radius                  : +1.0
Sharpen Detail                  : 25
Sharpen Edge Masking            : 0
Post Crop Vignette Amount       : 0
Grain Amount                    : 0
Color Noise Reduction Detail    : 50
Lens Profile Enable             : 0
Lens Manual Distortion Amount   : 0
Perspective Vertical            : 0
Perspective Horizontal          : 0
Perspective Rotate              : 0.0
Perspective Scale               : 100
Auto Lateral CA                 : 0
Exposure 2012                   : -1.05
Contrast 2012                   : -3
Highlights 2012                 : -44
Shadows 2012                    : +12
Whites 2012                     : +11
Blacks 2012                     : -3
Clarity 2012                    : 0
Defringe Purple Amount          : 0
Defringe Purple Hue Lo          : 30
Defringe Purple Hue Hi          : 70
Defringe Green Amount           : 0
Defringe Green Hue Lo           : 40
Defringe Green Hue Hi           : 60
Convert To Grayscale            : False
Tone Curve Name 2012            : Linear
Camera Profile                  : Adobe Standard
Lens Profile Setup              : LensDefaults
Has Settings                    : True
Has Crop                        : False
Already Applied                 : True
History Action                  : derived, saved
History Parameters              : converted from image/x-nikon-nef to image/jpeg
, saved to new location
History Instance ID             : xmp.iid:854a18cd-a1e7-b34e-ad92-cb6ff5180503
History When                    : 2013:08:06 15:16:14+02:00
History Software Agent          : Adobe Photoshop Lightroom 4.3 (Windows)
History Changed                 : /
Derived From Document ID        : C621D9AA5273A835121165586575A048
Derived From Original Document ID: C621D9AA5273A835121165586575A048
Tone Curve PV2012               : 0, 0, 255, 255
Tone Curve PV2012 Red           : 0, 0, 255, 255
Tone Curve PV2012 Green         : 0, 0, 255, 255
Tone Curve PV2012 Blue          : 0, 0, 255, 255
Displayed Units X               : inches
Displayed Units Y               : inches
Current IPTC Digest             : 2daa4685096cb7e6aa754c98d5a6e544
Coded Character Set             : UTF8
Application Record Version      : 4
Date Created                    : 2013:07:10
Time Created                    : 08:48:59
Digital Creation Date           : 2013:07:10
Digital Creation Time           : 08:48:59
Photoshop Thumbnail             : (Binary data 13685 bytes, use -b option to ext
ract)
IPTC Digest                     : 2daa4685096cb7e6aa754c98d5a6e544
Image Width                     : 1200
Image Height                    : 801
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Aperture                        : 5.6
Date/Time Created               : 2013:07:10 08:48:59
Digital Creation Date/Time      : 2013:07:10 08:48:59
Image Size                      : 1200x801
Scale Factor To 35 mm Equivalent: 1.0
Shutter Speed                   : 1/200
Create Date                     : 2013:07:10 08:48:59.30
Date/Time Original              : 2013:07:10 08:48:59.30
Thumbnail Image                 : (Binary data 13685 bytes, use -b option to ext
ract)
Circle Of Confusion             : 0.030 mm
Field Of View                   : 54.4 deg
Focal Length                    : 35.0 mm (35 mm equivalent: 35.0 mm)
Hyperfocal Distance             : 7.28 m
Lens ID                         : AF Zoom-Nikkor 24-85mm f/2.8-4D IF
Light Value                     : 11.6

I actually converted it with Irfanview to get a smaller size for web.

Offline

 

#4 2013-08-07 13:27:43

flop25
Piwigo Team
2006-07-06
7037

Re: [resolved] Synchronize doesn't read date-taken from exif

because of

DikkieDick wrote:

like '20130712%';

it means that the date is read but registered wrongly formated right?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2013-08-07 15:10:07

DikkieDick
Member
2013-08-06
7

Re: [resolved] Synchronize doesn't read date-taken from exif

flop25 wrote:

because of

DikkieDick wrote:

like '20130712%';

it means that the date is read but registered wrongly formated right?

that's my SQL-query to update the information and it's just part of the filename. Not the exif.

Offline

 

#6 2013-08-07 15:12:30

flop25
Piwigo Team
2006-07-06
7037

Re: [resolved] Synchronize doesn't read date-taken from exif

oops Yep right

could you send me one of those pictures ? flop25 at gmail dot com


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#7 2013-08-07 16:53:21

DikkieDick
Member
2013-08-06
7

Re: [resolved] Synchronize doesn't read date-taken from exif

You got one Flop25. ;-)

Offline

 

#8 2013-08-07 17:44:29

flop25
Piwigo Team
2006-07-06
7037

Re: [resolved] Synchronize doesn't read date-taken from exif

I don't have any problem

Could you check your local config (cf our Doc), and also your server logs?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#9 2013-08-07 17:45:47

flop25
Piwigo Team
2006-07-06
7037

Re: [resolved] Synchronize doesn't read date-taken from exif

Good photo and do you know there is Lightroom plugin (not free but worth it!) made by alloyphoto?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#10 2013-08-07 23:41:34

DikkieDick
Member
2013-08-06
7

Re: [resolved] Synchronize doesn't read date-taken from exif

I wasn't aware of the Lightroomplugin but I'll check later. I've installed Piwigo on my server through Installatron (our provider provides us with this). Dunno if the logs show anything. I'll try to find the configfiles tomorrow.

Offline

 

#11 2013-08-08 12:17:11

DikkieDick
Member
2013-08-06
7

Re: [resolved] Synchronize doesn't read date-taken from exif

Seems I have solved it: in config.inc.php stood :

<?php $conf["show_exif"] = $conf["use_exif"] = false;?>

changed it to:

<?php $conf["show_exif"] = $conf["use_exif"] = true;?>

Ran a synchronize and 20 images were added with correct date-creation-date and time. But the next run it entered NULLs again.

And a bit later: seems that I forgot to tick synchroniseer metadata (filesize, width, height, date_creation) and now it also shows date_creation here whereas before it didn't.

And finally the piwi_images-table looks OK.

Offline

 

#12 2013-08-08 12:20:49

flop25
Piwigo Team
2006-07-06
7037

Re: [resolved] Synchronize doesn't read date-taken from exif

ha! That's what I thought!

could you please click on "Set this topic as resolved" on your first post? Thx


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#13 2013-08-08 13:55:12

DikkieDick
Member
2013-08-06
7

Re: [resolved] Synchronize doesn't read date-taken from exif

Done. Thanx for your cooperation.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact