Search…

X3 Photo Gallery Support Forums

Search…
 
saucier
Topic Author
Posts: 7
Joined: 19 Dec 2008, 01:29

Change color of EXIF box

19 Dec 2008, 12:10

Is it possible to change the color of the EXIF box?

Thanks.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Change color of EXIF box

19 Dec 2008, 12:23

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.
 
saucier
Topic Author
Posts: 7
Joined: 19 Dec 2008, 01:29

19 Dec 2008, 13:43

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.
 
DmMc
Posts: 5
Joined: 14 May 2009, 06:45

14 May 2009, 06:49

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?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

14 May 2009, 22:45

Have a link?
 
DmMc
Posts: 5
Joined: 14 May 2009, 06:45

15 May 2009, 01:37

http://makurin.info/imagevue/themes/def ... agevue.css

- direct link to mentioned CSS,
gallery is on the first page (but it's in Russian).
 
DmMc
Posts: 5
Joined: 14 May 2009, 06:45

20 May 2009, 03:32

no idea what's wrong?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

20 May 2009, 05:36

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.
 
DmMc
Posts: 5
Joined: 14 May 2009, 06:45

21 May 2009, 02:57

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?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

21 May 2009, 05:10

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
 
DmMc
Posts: 5
Joined: 14 May 2009, 06:45

21 May 2009, 05:43

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']));
		}
	}