Page 1 of 1

Anomaly on EXIF data

Posted: 29 Aug 2012, 18:55
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

Re: Anomaly on EXIF data

Posted: 24 Sep 2012, 22:52
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:

Re: Anomaly on EXIF data

Posted: 10 Nov 2012, 21:03
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:

Re: Anomaly on EXIF data

Posted: 23 Nov 2012, 15:38
by Jan
Ok, thank you for the info.

Re: Anomaly on EXIF data

Posted: 30 Dec 2012, 19:12
by Jan
Hi, fixed in 3.2.3

Jan