Change color of EXIF box
Posted: 19 Dec 2008, 12:10
Is it possible to change the color of the EXIF box?
Thanks.
Thanks.
X3 Photo Gallery Support Forums
https://forum.photo.gallery/
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.saucier wrote:Is it possible to change the color of the EXIF box?
.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;
}
<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>.exif_datetimeoriginal {
font-size: 15px;
font-weight: bold;
leading: 3;
}.exif_Date_and_Time_OriginalThank you very much! Works perfect now!mjau-mjau wrote: This should be: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.Code.exif_Date_and_Time_Original
Thank you, Karl - now I have a solution.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
/**
* 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']));
}
}