forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: hjens on August 19, 2010, 07:20:07 pm

Title: Date in Exif import
Post by: hjens on August 19, 2010, 07:20:07 pm
I want to have the date of saving the image file displayed in file infomation. In standard setup the Exif data for DateTimeOriginal and DateTimedigitized are the same for my Nikon cameras, so I change the "DateTimeOriginal" to only "DateTime" in the $exif_info string in the /include/exif_php.inc.php file.

$exifParsed = array();
    //String containing all the available exif tags.
 $exif_info = "AFFocusPosition|Adapter|ColorMode|ColorSpace|ComponentsConfiguration|CompressedBitsPerPixel|Contrast|CustomerRender|DateTime|DateTimedigitized|DigitalZoom|DigitalZoomRatio|ExifImageHeight|ExifImageWidth|ExifInteroperabilityOffset|ExifOffset|ExifVersion|ExposureBiasValue|ExposureMode|ExposureProgram|ExposureTime|FNumber|FileSource|Flash|FlashPixVersion|FlashSetting|FocalLength|FocusMode|GainControl|IFD1Offset|ISOSelection|ISOSetting|ISOSpeedRatings|ImageAdjustment|ImageDescription|ImageSharpening|LightSource|Make|ManualFocusDistance|MaxApertureValue|MeteringMode|Model|NoiseReduction|Orientation|Quality|ResolutionUnit|Saturation|SceneCaptureMode|SceneType|Sharpness|Software|WhiteBalance|YCbCrPositioning|xResolution|yResolution";

It work for me - take a look at:
http://hmj-foto.dk/displayimage.php?album=18&pid=408#top_display_media

I know it is not advisable to change in the system files, and I should copy the content over to my theme files, so a update does not overwrite the changes made. But please advise me how?
I have tried copying some of the content with no good result  :-\ (Maybe due to my lake of php-knowledges!)
   
Title: Re: Date in Exif import
Post by: papukaija on August 20, 2010, 06:50:10 pm
Did you read about creating custom themes (http://documentation.coppermine-gallery.net/en/theme_create.htm#theme_create)?
Title: Re: Date in Exif import
Post by: hjens on August 20, 2010, 08:38:58 pm
Did you read about creating custom themes (http://documentation.coppermine-gallery.net/en/theme_create.htm#theme_create)?

Thanks for your reply.
Yes, as you may have seen have I made some changes to the curve theme at my web. but I don't want to build a "new" custom theme. I just want to add the above changes of read Exif-info.

My quieten is what to copy to my theme, I understood in to the theme.php in my hmj-curve folder, right?

I have tried to follow some treads in the 1.4 forum on the exif issue, but didn't work, maybe due to changes in the 1.5 version and curve-theme too. Please advise which sections to copy into my own curve-theme files?

 
Title: Re: Date in Exif import
Post by: Αndré on September 02, 2010, 03:38:03 pm
You cannot copy content of include/exif_php.inc.php to your theme.php file. So you have modify that file directly, as you already did.
Title: Re: Date in Exif import
Post by: hjens on September 03, 2010, 07:45:43 am
Thanks for clarify this Αndré!