Anomaly on EXIF data

Phoca Gallery - image gallery extension
Zébulon-21
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 29 Aug 2012, 18:46

Anomaly on EXIF data

Post by Zébulon-21 »

Hello, begging you to apologize for translation errors because I do not know English.

I use the component PhocaGallery that offers many interesting features.

I believe there is a small bug in the code "EXIF.ShutterSpeedValue" which incorrectly displays a "Date" (example: 2012:03:28 11:49:44) instead of "Shutter Speed​​" (example: 6321928/1000000).



The data provided by the camera are of this type: <exif:ShutterSpeedValue> 6321928/1000000 </ exif: shutterspeedvalue>

Thank you in advance for your help
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Anomaly on EXIF data

Post by Jan »

Hi, not sure what you mean, I see not code to translate it to date:

Code: Select all

case 'ShutterSpeedValue':
									if (isset($exif[$section][$name]) && $exif[$section][$name] != '') {
										$shutterSpeedValue = explode ('/', $exif[$section][$name]);
										if (isset($shutterSpeedValue[0]) && (int)$shutterSpeedValue[0] > 0
										&& isset($shutterSpeedValue[1]) && (int)$shutterSpeedValue[1] > 1 ) {
										
											if ((int)$shutterSpeedValue[1] > (int)$shutterSpeedValue[0]) {
												$exifValue = (int)$shutterSpeedValue[1] / (int)$shutterSpeedValue[0];
												$exifValue = '1/'. $exifValue . ' sec';
											} 
										}
									
									}
								break;
:idea:
If you find Phoca extensions useful, please support the project
Zébulon-21
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 29 Aug 2012, 18:46

Re: Anomaly on EXIF data

Post by Zébulon-21 »

English (translated by Google), the previous message means:

Hello,

Confirm that the label appears in error SHUTTERSPEEDVALUE a date (2012:10:24 11:18:02) instead of a "shutter speed" (10287712/1000000).

To get the right display, delete the code mentioned in your message (lines No. 634-647) in this file:
components/com_phocagallery/views/info/view.html.php

See the result on this web page. :twisted:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Anomaly on EXIF data

Post by Jan »

Ok, thank you for the info.
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Anomaly on EXIF data

Post by Jan »

Hi, fixed in 3.2.3

Jan
If you find Phoca extensions useful, please support the project
Post Reply