Date in Exif import Date in Exif import
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Date in Exif import

Started by hjens, August 19, 2010, 07:20:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hjens

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!)
   

papukaija


hjens

Quote from: papukaija on August 20, 2010, 06:50:10 PM
Did you read about creating custom themes?

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?

 

Αndré

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.

hjens

Thanks for clarify this Αndré!