<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Using QMeta to extract Exif data in your Qt applications</title>
	<atom:link href="http://olliwang.com/2010/02/05/using-qmeta-to-extract-exif-data-in-your-qt-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://olliwang.com/2010/02/05/using-qmeta-to-extract-exif-data-in-your-qt-applications/</link>
	<description>A blog about my life and my work</description>
	<lastBuildDate>Fri, 09 Mar 2012 18:08:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Mark Johnson</title>
		<link>http://olliwang.com/2010/02/05/using-qmeta-to-extract-exif-data-in-your-qt-applications/#comment-4383</link>
		<dc:creator><![CDATA[Mark Johnson]]></dc:creator>
		<pubDate>Fri, 09 Mar 2012 18:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://olliwang.com/?p=402#comment-4383</guid>
		<description><![CDATA[In case anybody is interested, I have extended the ExifData class to support GPSLatitude/Longitude/TimeStamp/DateStamp with correct return values from the Rational, where by the DateStamp is is only replace by the ISO formatting (YYY-MM-TT)

add to exif_data.h;

  double ToDegrees();
  QString ToTimeStamp();
  QString ToDateStampISO();

add to exif_data.cc;

double ExifData::ToDegrees() 
{
 QList  ar_result;
 qint32  i; 
 for (i=0;i&lt;size();i=i+8)
 {
  double numerator = static_cast(mid(i,4).toHex().toUInt(NULL, 16));
  double denominator = static_cast(mid(i+4,4).toHex().toUInt(NULL, 16));
  ar_result.append(numerator/denominator);
 }
 return ar_result[0]+(ar_result[1]/60)+(ar_result[2]/3600);
}
QString ExifData::ToTimeStamp() 
{
 qint32  i; 
 QString s_result=&quot;&quot;;
 double d_result=0;
 for (i=0;i&lt;size();i=i+8)
 {
  double numerator = static_cast(mid(i,4).toHex().toUInt(NULL, 16));
  double denominator = static_cast(mid(i+4,4).toHex().toUInt(NULL, 16));
  d_result=numerator/denominator;
  if (s_result != &quot;&quot;)
   s_result+=&quot;:&quot;;
  s_result+=QString::number(d_result);
 }
 return s_result;
}
QString ExifData::ToDateStampISO() 
{
 return QString(data()).replace(&quot;:&quot;, &quot;-&quot;);
}]]></description>
		<content:encoded><![CDATA[<p>In case anybody is interested, I have extended the ExifData class to support GPSLatitude/Longitude/TimeStamp/DateStamp with correct return values from the Rational, where by the DateStamp is is only replace by the ISO formatting (YYY-MM-TT)</p>
<p>add to exif_data.h;</p>
<p>  double ToDegrees();<br />
  QString ToTimeStamp();<br />
  QString ToDateStampISO();</p>
<p>add to exif_data.cc;</p>
<p>double ExifData::ToDegrees()<br />
{<br />
 QList  ar_result;<br />
 qint32  i;<br />
 for (i=0;i&lt;size();i=i+8)<br />
 {<br />
  double numerator = static_cast(mid(i,4).toHex().toUInt(NULL, 16));<br />
  double denominator = static_cast(mid(i+4,4).toHex().toUInt(NULL, 16));<br />
  ar_result.append(numerator/denominator);<br />
 }<br />
 return ar_result[0]+(ar_result[1]/60)+(ar_result[2]/3600);<br />
}<br />
QString ExifData::ToTimeStamp()<br />
{<br />
 qint32  i;<br />
 QString s_result=&#8221;";<br />
 double d_result=0;<br />
 for (i=0;i&lt;size();i=i+8)<br />
 {<br />
  double numerator = static_cast(mid(i,4).toHex().toUInt(NULL, 16));<br />
  double denominator = static_cast(mid(i+4,4).toHex().toUInt(NULL, 16));<br />
  d_result=numerator/denominator;<br />
  if (s_result != &#8220;&#8221;)<br />
   s_result+=&#8221;:&#8221;;<br />
  s_result+=QString::number(d_result);<br />
 }<br />
 return s_result;<br />
}<br />
QString ExifData::ToDateStampISO()<br />
{<br />
 return QString(data()).replace(&#8220;:&#8221;, &#8220;-&#8221;);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fabrice</title>
		<link>http://olliwang.com/2010/02/05/using-qmeta-to-extract-exif-data-in-your-qt-applications/#comment-3693</link>
		<dc:creator><![CDATA[fabrice]]></dc:creator>
		<pubDate>Tue, 01 Nov 2011 14:02:35 +0000</pubDate>
		<guid isPermaLink="false">http://olliwang.com/?p=402#comment-3693</guid>
		<description><![CDATA[I find an error in exif.cpp :
---------------------------------

   if(data-&gt;mid(6,2) == &quot;II&quot;){ // Exif section in Intel order
        //qDebug() &lt;mid(6,2);
        MotorolaOrder = 0;
    }else{
        if(data-&gt;mid(6,2) == &quot;II&quot;){ // Exif section in Motorola order
            //qDebug() &lt;mid(6,2);
--------------------------------------
is better with &#039;MM&#039; for Motorola :
---------------------------------------
   if(data-&gt;mid(6,2) == &quot;II&quot;){ // Exif section in Intel order
        //qDebug() &lt;mid(6,2);
        MotorolaOrder = 0;
    }else{
        if(data-&gt;mid(6,2) == &quot;MM&quot;){ // Exif section in Motorola order
            //qDebug() &lt;mid(6,2);

---------------------------------------

Fabrice 

contact@opendent.fr]]></description>
		<content:encoded><![CDATA[<p>I find an error in exif.cpp :<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>   if(data-&gt;mid(6,2) == &#8220;II&#8221;){ // Exif section in Intel order<br />
        //qDebug() &lt;mid(6,2);<br />
        MotorolaOrder = 0;<br />
    }else{<br />
        if(data-&gt;mid(6,2) == &#8220;II&#8221;){ // Exif section in Motorola order<br />
            //qDebug() &lt;mid(6,2);<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
is better with &#8216;MM&#8217; for Motorola :<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
   if(data-&gt;mid(6,2) == &#8220;II&#8221;){ // Exif section in Intel order<br />
        //qDebug() &lt;mid(6,2);<br />
        MotorolaOrder = 0;<br />
    }else{<br />
        if(data-&gt;mid(6,2) == &#8220;MM&#8221;){ // Exif section in Motorola order<br />
            //qDebug() &lt;mid(6,2);</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Fabrice </p>
<p><a href="mailto:contact@opendent.fr">contact@opendent.fr</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: julien</title>
		<link>http://olliwang.com/2010/02/05/using-qmeta-to-extract-exif-data-in-your-qt-applications/#comment-3645</link>
		<dc:creator><![CDATA[julien]]></dc:creator>
		<pubDate>Mon, 17 Oct 2011 13:55:04 +0000</pubDate>
		<guid isPermaLink="false">http://olliwang.com/?p=402#comment-3645</guid>
		<description><![CDATA[I find alone. Thanks for your work.]]></description>
		<content:encoded><![CDATA[<p>I find alone. Thanks for your work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: julien</title>
		<link>http://olliwang.com/2010/02/05/using-qmeta-to-extract-exif-data-in-your-qt-applications/#comment-3644</link>
		<dc:creator><![CDATA[julien]]></dc:creator>
		<pubDate>Mon, 17 Oct 2011 12:44:07 +0000</pubDate>
		<guid isPermaLink="false">http://olliwang.com/?p=402#comment-3644</guid>
		<description><![CDATA[hello.
I want toi use your library, under QT4 on Debian Squeeze with QT Creator. I&#039;ve download it, mais I don&#039;t now how to add it in project ? Can you help me ?]]></description>
		<content:encoded><![CDATA[<p>hello.<br />
I want toi use your library, under QT4 on Debian Squeeze with QT Creator. I&#8217;ve download it, mais I don&#8217;t now how to add it in project ? Can you help me ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hien</title>
		<link>http://olliwang.com/2010/02/05/using-qmeta-to-extract-exif-data-in-your-qt-applications/#comment-1939</link>
		<dc:creator><![CDATA[Hien]]></dc:creator>
		<pubDate>Sun, 13 Feb 2011 05:51:45 +0000</pubDate>
		<guid isPermaLink="false">http://olliwang.com/?p=402#comment-1939</guid>
		<description><![CDATA[I followed the instructions on the README and it seems to have installed it there by default. I am really new at this, but is qmeta.so the compiled library? It is in my /usr/local/lib directory.]]></description>
		<content:encoded><![CDATA[<p>I followed the instructions on the README and it seems to have installed it there by default. I am really new at this, but is qmeta.so the compiled library? It is in my /usr/local/lib directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olli Wang</title>
		<link>http://olliwang.com/2010/02/05/using-qmeta-to-extract-exif-data-in-your-qt-applications/#comment-1938</link>
		<dc:creator><![CDATA[Olli Wang]]></dc:creator>
		<pubDate>Sun, 13 Feb 2011 05:43:11 +0000</pubDate>
		<guid isPermaLink="false">http://olliwang.com/?p=402#comment-1938</guid>
		<description><![CDATA[You need to tell QT the location of your compiled qmeta library. It seems that you installed it to the `/usr/local/lib` directory instead of the normal `/usr/lib` directory.]]></description>
		<content:encoded><![CDATA[<p>You need to tell QT the location of your compiled qmeta library. It seems that you installed it to the `/usr/local/lib` directory instead of the normal `/usr/lib` directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hien</title>
		<link>http://olliwang.com/2010/02/05/using-qmeta-to-extract-exif-data-in-your-qt-applications/#comment-1937</link>
		<dc:creator><![CDATA[Hien]]></dc:creator>
		<pubDate>Sun, 13 Feb 2011 05:15:27 +0000</pubDate>
		<guid isPermaLink="false">http://olliwang.com/?p=402#comment-1937</guid>
		<description><![CDATA[Hi Olli,

This is the error message that I am getting from qt while running the program
error while loading shared libraries: libqmeta.so: cannot open shared object file: No such file or directory.

These are the important bits in my .pro file
LIBS  += -lhighgui \
         -lm \
         -lcv \
         -lhighgui \
         -lcvaux \
         -lqitty \
         -lqmeta

INCLUDEPATH += /usr/local/include/opencv -L /usr/local/lib \
               /usr/local/include/qitty -L /usr/local/lib \
               /usr/local/include/qmeta -L /usr/local/lib 

Do you know why I am getting this error message? I compiled and installed both qitty and qmeta without error.]]></description>
		<content:encoded><![CDATA[<p>Hi Olli,</p>
<p>This is the error message that I am getting from qt while running the program<br />
error while loading shared libraries: libqmeta.so: cannot open shared object file: No such file or directory.</p>
<p>These are the important bits in my .pro file<br />
LIBS  += -lhighgui \<br />
         -lm \<br />
         -lcv \<br />
         -lhighgui \<br />
         -lcvaux \<br />
         -lqitty \<br />
         -lqmeta</p>
<p>INCLUDEPATH += /usr/local/include/opencv -L /usr/local/lib \<br />
               /usr/local/include/qitty -L /usr/local/lib \<br />
               /usr/local/include/qmeta -L /usr/local/lib </p>
<p>Do you know why I am getting this error message? I compiled and installed both qitty and qmeta without error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olli Wang</title>
		<link>http://olliwang.com/2010/02/05/using-qmeta-to-extract-exif-data-in-your-qt-applications/#comment-1936</link>
		<dc:creator><![CDATA[Olli Wang]]></dc:creator>
		<pubDate>Sun, 13 Feb 2011 05:03:55 +0000</pubDate>
		<guid isPermaLink="false">http://olliwang.com/?p=402#comment-1936</guid>
		<description><![CDATA[Hi, I think you need to add something like the following code to your QT&#039;s `pro` file. However, the following code is used under Unix environment.

&lt;code&gt;unix {
    INCLUDEPATH *= /usr/include
    LIBS += -lqmeta
}&lt;/code&gt;

You are required to compile and install the qmeta library at first.]]></description>
		<content:encoded><![CDATA[<p>Hi, I think you need to add something like the following code to your QT&#8217;s `pro` file. However, the following code is used under Unix environment.</p>
<p><code>unix {<br />
    INCLUDEPATH *= /usr/include<br />
    LIBS += -lqmeta<br />
}</code></p>
<p>You are required to compile and install the qmeta library at first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FalseCAM</title>
		<link>http://olliwang.com/2010/02/05/using-qmeta-to-extract-exif-data-in-your-qt-applications/#comment-1933</link>
		<dc:creator><![CDATA[FalseCAM]]></dc:creator>
		<pubDate>Sat, 12 Feb 2011 10:40:13 +0000</pubDate>
		<guid isPermaLink="false">http://olliwang.com/?p=402#comment-1933</guid>
		<description><![CDATA[Hello,
can you write a qmeta.pro file (QT-Project file) please.
I have some problems to include this library into my project.]]></description>
		<content:encoded><![CDATA[<p>Hello,<br />
can you write a qmeta.pro file (QT-Project file) please.<br />
I have some problems to include this library into my project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sdecorme</title>
		<link>http://olliwang.com/2010/02/05/using-qmeta-to-extract-exif-data-in-your-qt-applications/#comment-862</link>
		<dc:creator><![CDATA[sdecorme]]></dc:creator>
		<pubDate>Wed, 14 Jul 2010 08:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://olliwang.com/?p=402#comment-862</guid>
		<description><![CDATA[Actually my basic photo have no metadata so I&#039;ve to add them. It seem to be more difficult then modify it.
Thanks.]]></description>
		<content:encoded><![CDATA[<p>Actually my basic photo have no metadata so I&#8217;ve to add them. It seem to be more difficult then modify it.<br />
Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

