Page 1 of 1

Change color of EXIF box

Posted: 19 Dec 2008, 12:10
by saucier
Is it possible to change the color of the EXIF box?

Thanks.

Re: Change color of EXIF box

Posted: 19 Dec 2008, 12:23
by mjau-mjau
saucier wrote:Is it possible to change the color of the EXIF box?
Yes. Basically, it's not an EXIF box, its the general background for the "text2" module which is by default set to display EXIF. To change the color, goto admin -> themes -> edit your theme -> text.text2.backgroundcolor - Set it to another color than the default FFFFF.

Posted: 19 Dec 2008, 13:43
by saucier
Thanks for the quick reply. I hope to have my new gallery up by Christmas. I am sure I will have other questions. Your software makes my images look much better.

Posted: 14 May 2009, 06:49
by DmMc
I've tried to show date and time (original) from EXIF in big and blue like camera name and edited CSS (default theme) as shown:
Code
.exif_name {
	color: #555555;
}
.exif_value {
}
.exif_model {
	font-size: 15px;
	font-weight: bold;
	leading: 2;
}
.exif_name_model {
	display: none;
}
.exif_value_model {
	color: #0066CC;
}
.exif_datetimeoriginal {
	font-size: 15px;
	font-weight: bold;
	leading: 3;
}
.exif_name_datetimeoriginal {
	display: none;
}
.exif_value_datetimeoriginal {
	color: #0066CC;
}
... but nothing happens! where is a mistake?

Posted: 14 May 2009, 22:45
by mjau-mjau
Have a link?

Posted: 15 May 2009, 01:37
by DmMc
http://makurin.info/imagevue/themes/def ... agevue.css

- direct link to mentioned CSS,
gallery is on the first page (but it's in Russian).

Posted: 20 May 2009, 03:32
by DmMc
no idea what's wrong?

Posted: 20 May 2009, 05:36
by mjau-mjau
This is what your EXIF info looks like for an image:
Code
<Date_and_Time_Original>2009:02:01 15:18:49</Date_and_Time_Original>
<Model>NIKON D90</Model>
<Exposure>1/90 (0.011 sec)</Exposure>
<Aperture>f/8.0</Aperture>
<Focal_Length>105.0 mm</Focal_Length>
<ISO_Speed>200</ISO_Speed>
The fileinfo I am looking at, is here:
http://makurin.info/?a=fileinfo&path=co ... c_0026.jpg

In your CSS, you have:
Code
.exif_datetimeoriginal {
	font-size: 15px;
	font-weight: bold;
	leading: 3;
}
This should be:
Code
.exif_Date_and_Time_Original
If you want to set a CSS for a specific EXIF value, it has to be identical text and case as the original name we fish out.

Posted: 21 May 2009, 02:57
by DmMc
mjau-mjau wrote: This should be:
Code
.exif_Date_and_Time_Original
If you want to set a CSS for a specific EXIF value, it has to be identical text and case as the original name we fish out.
Thank you very much! Works perfect now!

But where can I find these exact names of EXIF fields?
"datetimeoriginal" - it's from PHP code...

And one more question:
How can I change format of extracted EXIF data from "2009:02:01 15:18:49" to simple "01.02.2009", for example?

Posted: 21 May 2009, 05:10
by mjau-mjau
We don't generally control names of EXIF names. I think perhaps we parse multiple words, so they are readable. Best is to simply check the EXIF output as in the link example I provided below:
http://makurin.info/?a=fileinfo&path=co ... c_0026.jpg

Not sure about editing actual values, as that requires advanced parsing functions. You could have a look in the following file, but you are operating at your own risk:
imagevue/include/ivExifParsers.class.php

Posted: 21 May 2009, 05:43
by DmMc
mjau-mjau wrote:Not sure about editing actual values, as that requires advanced parsing functions. You could have a look in the following file, but you are operating at your own risk:
imagevue/include/ivExifParsers.class.php
Thank you, Karl - now I have a solution.
Maybe, someone will find it usefull:
Code
/**
	 * Format Date and Time (Original) field
	 *
	 * @param array $filtered
	 * @param array $exifData
	 */
	function DateAndTimeOriginal(&$filtered, $exifData)
	{
		if (isset($exifData['DateTimeOriginal'])) {
			 $filtered['Date and Time (Original)'] = date("d.m.Y",strtotime($exifData['DateTimeOriginal']));
		}
	}