<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: Shutter speed in EXIF</title>
		<link>http://www.kriesi.at/support/topic/shutter-speed-in-exif</link>
		<description>Support Forum - Topic: Shutter speed in EXIF</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 07:07:19 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/shutter-speed-in-exif" rel="self" type="application/rss+xml" />

		<item>
			<title>Mya on "Shutter speed in EXIF"</title>
			<link>http://www.kriesi.at/support/topic/shutter-speed-in-exif#post-68343</link>
			<pubDate>Mon, 30 Jul 2012 12:02:03 +0000</pubDate>
			<dc:creator>Mya</dc:creator>
			<guid isPermaLink="false">68343@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi xGSTQ,&#60;/p&#62;
&#60;p&#62;It's possible the MOD you tried conflicts now since Flashlight has been updated. If you will start a new thread with your problem and we'll try to help you solve.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Mya
&#60;/p&#62;</description>
		</item>
		<item>
			<title>xGSTQ on "Shutter speed in EXIF"</title>
			<link>http://www.kriesi.at/support/topic/shutter-speed-in-exif#post-68080</link>
			<pubDate>Sat, 28 Jul 2012 14:04:54 +0000</pubDate>
			<dc:creator>xGSTQ</dc:creator>
			<guid isPermaLink="false">68080@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I tried this MOD and I get an error in the function decimal2fraction &#60;/p&#62;
&#60;p&#62;this is the error&#60;/p&#62;
&#60;p&#62;&#60;code&#62;Warning: Division by zero in /home/themes/flashlight/includes/helper-slideshow.php on line 742&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;this is line 742&#60;/p&#62;
&#60;p&#62;&#60;code&#62;return sprintf ('1/%d', round($denominator/$numerator));&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JoeLamari on "Shutter speed in EXIF"</title>
			<link>http://www.kriesi.at/support/topic/shutter-speed-in-exif#post-38556</link>
			<pubDate>Tue, 24 Jan 2012 11:05:26 +0000</pubDate>
			<dc:creator>JoeLamari</dc:creator>
			<guid isPermaLink="false">38556@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Berrald,&#60;/p&#62;
&#60;p&#62;Thank you so mush for your help. I will give it a try and will let you know how it goes.&#60;/p&#62;
&#60;p&#62;I visited your site and like the look especially the front pages first picture!&#60;/p&#62;
&#60;p&#62;Best&#60;br /&#62;
Joe
&#60;/p&#62;</description>
		</item>
		<item>
			<title>berrald on "Shutter speed in EXIF"</title>
			<link>http://www.kriesi.at/support/topic/shutter-speed-in-exif#post-38548</link>
			<pubDate>Tue, 24 Jan 2012 09:17:32 +0000</pubDate>
			<dc:creator>berrald</dc:creator>
			<guid isPermaLink="false">38548@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Here is an example of what you should get :&#60;br /&#62;
&#60;a href=&#34;http://www.compostyl.fr/photo/&#34;&#62;http://www.compostyl.fr/photo/&#60;/a&#62; (Work in progress…)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>berrald on "Shutter speed in EXIF"</title>
			<link>http://www.kriesi.at/support/topic/shutter-speed-in-exif#post-38547</link>
			<pubDate>Tue, 24 Jan 2012 09:03:01 +0000</pubDate>
			<dc:creator>berrald</dc:creator>
			<guid isPermaLink="false">38547@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;If you want, you could then add the units for the exif values : 's' for seconds, 'mm' for millimeters and 'f/' for the aperture.&#60;br /&#62;
Replace the code (two occurences) :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if($exif[&#38;#39;shutter_speed&#38;#39;]) $meta .= &#38;quot;&#38;lt;li class=&#38;#39;exif-shutter_speed&#38;#39;&#38;gt;&#38;lt;span&#38;gt;&#38;quot;.$exif[&#38;#39;shutter_speed&#38;#39;][0].&#38;quot;:&#38;lt;/span&#38;gt; &#38;quot;.$exif[&#38;#39;shutter_speed&#38;#39;][1].&#38;quot;&#38;lt;/li&#38;gt;&#38;quot;;
				if($exif[&#38;#39;iso&#38;#39;]) $meta .= &#38;quot;&#38;lt;li class=&#38;#39;exif-iso&#38;#39;&#38;gt;&#38;lt;span&#38;gt;&#38;quot;.$exif[&#38;#39;iso&#38;#39;][0].&#38;quot;:&#38;lt;/span&#38;gt; &#38;quot;.$exif[&#38;#39;iso&#38;#39;][1].&#38;quot;&#38;lt;/li&#38;gt;&#38;quot;;
				if($exif[&#38;#39;aperture&#38;#39;]) $meta .= &#38;quot;&#38;lt;li class=&#38;#39;exif-aperture&#38;#39;&#38;gt;&#38;lt;span&#38;gt;&#38;quot;.$exif[&#38;#39;aperture&#38;#39;][0].&#38;quot;:&#38;lt;/span&#38;gt; &#38;quot;.$exif[&#38;#39;aperture&#38;#39;][1].&#38;quot;&#38;lt;/li&#38;gt;&#38;quot;;
				if($exif[&#38;#39;focal_length&#38;#39;]) $meta .= &#38;quot;&#38;lt;li class=&#38;#39;exif-focal_length&#38;#39;&#38;gt;&#38;lt;span&#38;gt;&#38;quot;.$exif[&#38;#39;focal_length&#38;#39;][0].&#38;quot;:&#38;lt;/span&#38;gt; &#38;quot;.$exif[&#38;#39;focal_length&#38;#39;][1].&#38;quot;&#38;lt;/li&#38;gt;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;by :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if($exif[&#38;#39;shutter_speed&#38;#39;]) $meta .= &#38;quot;&#38;lt;li class=&#38;#39;exif-shutter_speed&#38;#39;&#38;gt;&#38;lt;span&#38;gt;&#38;quot;.$exif[&#38;#39;shutter_speed&#38;#39;][0].&#38;quot;:&#38;lt;/span&#38;gt; &#38;quot;.$exif[&#38;#39;shutter_speed&#38;#39;][1].&#38;quot; s&#38;lt;/li&#38;gt;&#38;quot;;
				if($exif[&#38;#39;iso&#38;#39;]) $meta .= &#38;quot;&#38;lt;li class=&#38;#39;exif-iso&#38;#39;&#38;gt;&#38;lt;span&#38;gt;&#38;quot;.$exif[&#38;#39;iso&#38;#39;][0].&#38;quot;:&#38;lt;/span&#38;gt; &#38;quot;.$exif[&#38;#39;iso&#38;#39;][1].&#38;quot;&#38;lt;/li&#38;gt;&#38;quot;;
				if($exif[&#38;#39;aperture&#38;#39;]) $meta .= &#38;quot;&#38;lt;li class=&#38;#39;exif-aperture&#38;#39;&#38;gt;&#38;lt;span&#38;gt;&#38;quot;.$exif[&#38;#39;aperture&#38;#39;][0].&#38;quot;:&#38;lt;/span&#38;gt; f/&#38;quot;.$exif[&#38;#39;aperture&#38;#39;][1].&#38;quot;&#38;lt;/li&#38;gt;&#38;quot;;
				if($exif[&#38;#39;focal_length&#38;#39;]) $meta .= &#38;quot;&#38;lt;li class=&#38;#39;exif-focal_length&#38;#39;&#38;gt;&#38;lt;span&#38;gt;&#38;quot;.$exif[&#38;#39;focal_length&#38;#39;][0].&#38;quot;:&#38;lt;/span&#38;gt; &#38;quot;.$exif[&#38;#39;focal_length&#38;#39;][1].&#38;quot; mm&#38;lt;/li&#38;gt;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>berrald on "Shutter speed in EXIF"</title>
			<link>http://www.kriesi.at/support/topic/shutter-speed-in-exif#post-38546</link>
			<pubDate>Tue, 24 Jan 2012 08:57:05 +0000</pubDate>
			<dc:creator>berrald</dc:creator>
			<guid isPermaLink="false">38546@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Ooops, sorry, the word 'Shutter' was translated in french in the above post…&#60;br /&#62;
Here is the correct version :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if(!empty($meta[&#38;#39;shutter_speed&#38;#39;]))		{
	if($meta[&#38;#39;shutter_speed&#38;#39;] &#38;lt; 0.6)		{	$exif[&#38;#39;shutter_speed&#38;#39;] 		 = array(__(&#38;#39;Shutter&#38;#39;,&#38;#39;avia_framework&#38;#39;), decimal2fraction ($meta[&#38;#39;shutter_speed&#38;#39;]));	}
	else 									{	$exif[&#38;#39;shutter_speed&#38;#39;] 		 = array(__(&#38;#39;Shutter&#38;#39;,&#38;#39;avia_framework&#38;#39;), $meta[&#38;#39;shutter_speed&#38;#39;]);	}	}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>berrald on "Shutter speed in EXIF"</title>
			<link>http://www.kriesi.at/support/topic/shutter-speed-in-exif#post-38545</link>
			<pubDate>Tue, 24 Jan 2012 08:46:04 +0000</pubDate>
			<dc:creator>berrald</dc:creator>
			<guid isPermaLink="false">38545@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Then, replace the line :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if(!empty($meta[&#38;#39;shutter_speed&#38;#39;])) 		{	$exif[&#38;#39;shutter_speed&#38;#39;] 		 = array(__(&#38;#39;Shutter&#38;#39;,&#38;#39;avia_framework&#38;#39;), $meta[&#38;#39;shutter_speed&#38;#39;]);		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;by :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if(!empty($meta[&#38;#39;shutter_speed&#38;#39;]))		{
	if($meta[&#38;#39;shutter_speed&#38;#39;] &#38;lt; 0.6)		{	$exif[&#38;#39;shutter_speed&#38;#39;] 		 = array(__(&#38;#39;Vitesse &#38;#39;,&#38;#39;avia_framework&#38;#39;), decimal2fraction ($meta[&#38;#39;shutter_speed&#38;#39;]));	}
	else 									{	$exif[&#38;#39;shutter_speed&#38;#39;] 		 = array(__(&#38;#39;Vitesse &#38;#39;,&#38;#39;avia_framework&#38;#39;), $meta[&#38;#39;shutter_speed&#38;#39;]);	}	}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It will call the function 'decimal2fraction' only if the shutter speed is below 0.6 seconds.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>berrald on "Shutter speed in EXIF"</title>
			<link>http://www.kriesi.at/support/topic/shutter-speed-in-exif#post-38544</link>
			<pubDate>Tue, 24 Jan 2012 08:36:16 +0000</pubDate>
			<dc:creator>berrald</dc:creator>
			<guid isPermaLink="false">38544@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;First, add this function in the file 'helper-slideshow.php' :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function decimal2fraction ($number)
{
    list ($whole, $numerator) = explode (&#38;#39;.&#38;#39;, $number);
    $denominator = 1 . str_repeat (0, strlen ($numerator));
    $GCD = GCD ($numerator, $denominator);
    $numerator /= $GCD;

    $denominator /= $GCD;
    if($whole == 0)
        return sprintf (&#38;#39;1/%d&#38;#39;, round($denominator/$numerator));
    return sprintf (&#38;#39;%d 1/%d&#38;#39;,
        $whole, round($denominator/$numerator));
}

function GCD ($a, $b)
{
    while ( $b != 0)
      {
        $remainder = $a % $b;
        $a = $b;
        $b = $remainder;

      }
    return abs ($a);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>JoeLamari on "Shutter speed in EXIF"</title>
			<link>http://www.kriesi.at/support/topic/shutter-speed-in-exif#post-38470</link>
			<pubDate>Mon, 23 Jan 2012 12:26:39 +0000</pubDate>
			<dc:creator>JoeLamari</dc:creator>
			<guid isPermaLink="false">38470@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I could use some help on where to include the php code for the shutter speed conversion. &#60;/p&#62;
&#60;p&#62;Thanks in advance.&#60;/p&#62;
&#60;p&#62;Joe
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Beard on "Shutter speed in EXIF"</title>
			<link>http://www.kriesi.at/support/topic/shutter-speed-in-exif#post-36387</link>
			<pubDate>Tue, 03 Jan 2012 00:44:03 +0000</pubDate>
			<dc:creator>Chris Beard</dc:creator>
			<guid isPermaLink="false">36387@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that Dude could help :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>berrald on "Shutter speed in EXIF"</title>
			<link>http://www.kriesi.at/support/topic/shutter-speed-in-exif#post-36350</link>
			<pubDate>Mon, 02 Jan 2012 12:14:19 +0000</pubDate>
			<dc:creator>berrald</dc:creator>
			<guid isPermaLink="false">36350@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Problem solved, thank you !
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Shutter speed in EXIF"</title>
			<link>http://www.kriesi.at/support/topic/shutter-speed-in-exif#post-36329</link>
			<pubDate>Mon, 02 Jan 2012 07:52:27 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">36329@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
basically you'd need to convert it back (i.e. see &#60;a href=&#34;http://www.enliteart.com/blog/2008/08/30/quick-shutter-speed-fix-for-wordpress-exif/&#34; rel=&#34;nofollow&#34;&#62;http://www.enliteart.com/blog/2008/08/30/quick-shutter-speed-fix-for-wordpress-exif/&#60;/a&#62; ) because wp automatically changes the speed to decimal values. You can find the code in flashlight\includes\helper-slideshow.php - search for following function:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function avia_exif_data($attachment_id = &#38;quot;&#38;quot;)&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It requires some fiddling with the php code.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>berrald on "Shutter speed in EXIF"</title>
			<link>http://www.kriesi.at/support/topic/shutter-speed-in-exif#post-36296</link>
			<pubDate>Sun, 01 Jan 2012 23:34:55 +0000</pubDate>
			<dc:creator>berrald</dc:creator>
			<guid isPermaLink="false">36296@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;Excellent theme, as usual…&#60;/p&#62;
&#60;p&#62;Is there a way to display the shutter speed as a fraction (1/125 s and not 0,008 s) when the speed is below 1 second?&#60;/p&#62;
&#60;p&#62;Hope you will understand my poor english…&#60;/p&#62;
&#60;p&#62;Happy new year from France!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
