Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Date in Exif import  (Read 3000 times)

0 Members and 1 Guest are viewing this topic.

hjens

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Date in Exif import
« 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!)
   
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Date in Exif import
« Reply #1 on: August 20, 2010, 06:50:10 pm »

Did you read about creating custom themes?
Logged

hjens

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Date in Exif import
« Reply #2 on: August 20, 2010, 08:38:58 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?

 
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Date in Exif import
« Reply #3 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.
Logged

hjens

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Date in Exif import
« Reply #4 on: September 03, 2010, 07:45:43 am »

Thanks for clarify this Αndré!
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.