Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-updates > by-pkgid > 12cd2b60e7ffa1b93f26cacdd7197eb9 > files > 232

exiv2-doc-0.24-5.1.mga5.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>Exiv2: Exiv2::ExifThumb Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Exiv2
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceExiv2.html">Exiv2</a></li><li class="navelem"><a class="el" href="classExiv2_1_1ExifThumb.html">ExifThumb</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classExiv2_1_1ExifThumb-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Exiv2::ExifThumb Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Access and modify an Exif thumbnail image. This class implements manipulators to set and erase the thumbnail image that is optionally embedded in IFD1 of the Exif data. Accessors are provided by the base class, <a class="el" href="classExiv2_1_1ExifThumbC.html" title="Access to a Exif thumbnail image. This class provides higher level accessors to the thumbnail image t...">ExifThumbC</a>.  
 <a href="classExiv2_1_1ExifThumb.html#details">More...</a></p>

<p><code>#include &lt;exif.hpp&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for Exiv2::ExifThumb:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classExiv2_1_1ExifThumb__inherit__graph.png" border="0" usemap="#Exiv2_1_1ExifThumb_inherit__map" alt="Inheritance graph"/></div>
<map name="Exiv2_1_1ExifThumb_inherit__map" id="Exiv2_1_1ExifThumb_inherit__map">
<area shape="rect" id="node2" href="classExiv2_1_1ExifThumbC.html" title="Access to a Exif thumbnail image. This class provides higher level accessors to the thumbnail image t..." alt="" coords="5,5,197,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for Exiv2::ExifThumb:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classExiv2_1_1ExifThumb__coll__graph.png" border="0" usemap="#Exiv2_1_1ExifThumb_coll__map" alt="Collaboration graph"/></div>
<map name="Exiv2_1_1ExifThumb_coll__map" id="Exiv2_1_1ExifThumb_coll__map">
<area shape="rect" id="node2" href="classExiv2_1_1ExifThumbC.html" title="Access to a Exif thumbnail image. This class provides higher level accessors to the thumbnail image t..." alt="" coords="5,5,197,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Creators</div></td></tr>
<tr class="memitem:a2c81742f577443a41c1b184406093c68"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2c81742f577443a41c1b184406093c68"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifThumb.html#a2c81742f577443a41c1b184406093c68">ExifThumb</a> (<a class="el" href="classExiv2_1_1ExifData.html">ExifData</a> &amp;exifData)</td></tr>
<tr class="memdesc:a2c81742f577443a41c1b184406093c68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a2c81742f577443a41c1b184406093c68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Manipulators</div></td></tr>
<tr class="memitem:a90e5155ba60dae3af4066f80464c788d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifThumb.html#a90e5155ba60dae3af4066f80464c788d">setJpegThumbnail</a> (const std::string &amp;path, <a class="el" href="namespaceExiv2.html#aedcaa9af0563cbd00a19b040d5aa7a70">URational</a> xres, <a class="el" href="namespaceExiv2.html#aedcaa9af0563cbd00a19b040d5aa7a70">URational</a> yres, uint16_t unit)</td></tr>
<tr class="memdesc:a90e5155ba60dae3af4066f80464c788d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Exif thumbnail to the JPEG image <em>path</em>. Set XResolution, YResolution and ResolutionUnit to <em>xres</em>, <em>yres</em> and <em>unit</em>, respectively.  <a href="#a90e5155ba60dae3af4066f80464c788d">More...</a><br /></td></tr>
<tr class="separator:a90e5155ba60dae3af4066f80464c788d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa29789f0a658d53066e0b55bb2b1acb2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifThumb.html#aa29789f0a658d53066e0b55bb2b1acb2">setJpegThumbnail</a> (const <a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long size, <a class="el" href="namespaceExiv2.html#aedcaa9af0563cbd00a19b040d5aa7a70">URational</a> xres, <a class="el" href="namespaceExiv2.html#aedcaa9af0563cbd00a19b040d5aa7a70">URational</a> yres, uint16_t unit)</td></tr>
<tr class="memdesc:aa29789f0a658d53066e0b55bb2b1acb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Exif thumbnail to the JPEG image pointed to by <em>buf</em>, and size <em>size</em>. Set XResolution, YResolution and ResolutionUnit to <em>xres</em>, <em>yres</em> and <em>unit</em>, respectively.  <a href="#aa29789f0a658d53066e0b55bb2b1acb2">More...</a><br /></td></tr>
<tr class="separator:aa29789f0a658d53066e0b55bb2b1acb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5578e157a1e60b295d703aecec242b8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifThumb.html#af5578e157a1e60b295d703aecec242b8">setJpegThumbnail</a> (const std::string &amp;path)</td></tr>
<tr class="memdesc:af5578e157a1e60b295d703aecec242b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Exif thumbnail to the JPEG image <em>path</em>.  <a href="#af5578e157a1e60b295d703aecec242b8">More...</a><br /></td></tr>
<tr class="separator:af5578e157a1e60b295d703aecec242b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8cf3725b3d9d6fa08055ea4809bf77f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifThumb.html#af8cf3725b3d9d6fa08055ea4809bf77f">setJpegThumbnail</a> (const <a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long size)</td></tr>
<tr class="memdesc:af8cf3725b3d9d6fa08055ea4809bf77f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Exif thumbnail to the JPEG image pointed to by <em>buf</em>, and size <em>size</em>.  <a href="#af8cf3725b3d9d6fa08055ea4809bf77f">More...</a><br /></td></tr>
<tr class="separator:af8cf3725b3d9d6fa08055ea4809bf77f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5239338ade638043bf66337fd9d4e3f8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5239338ade638043bf66337fd9d4e3f8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifThumb.html#a5239338ade638043bf66337fd9d4e3f8">erase</a> ()</td></tr>
<tr class="memdesc:a5239338ade638043bf66337fd9d4e3f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete the thumbnail from the Exif data. Removes all Exif.Thumbnail.*, i.e., Exif IFD1 tags. <br /></td></tr>
<tr class="separator:a5239338ade638043bf66337fd9d4e3f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classExiv2_1_1ExifThumbC"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classExiv2_1_1ExifThumbC')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classExiv2_1_1ExifThumbC.html">Exiv2::ExifThumbC</a></td></tr>
<tr class="memitem:a47c5170242743d1dfd32a6d03527f7b7 inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a47c5170242743d1dfd32a6d03527f7b7"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifThumbC.html#a47c5170242743d1dfd32a6d03527f7b7">ExifThumbC</a> (const <a class="el" href="classExiv2_1_1ExifData.html">ExifData</a> &amp;exifData)</td></tr>
<tr class="memdesc:a47c5170242743d1dfd32a6d03527f7b7 inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a47c5170242743d1dfd32a6d03527f7b7 inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a525866c326d9a6ef37e70a2bb644b207 inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a525866c326d9a6ef37e70a2bb644b207"></a>
<a class="el" href="classExiv2_1_1DataBuf.html">DataBuf</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifThumbC.html#a525866c326d9a6ef37e70a2bb644b207">copy</a> () const </td></tr>
<tr class="memdesc:a525866c326d9a6ef37e70a2bb644b207 inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the thumbnail image in a DataBuf. The caller owns the data buffer and DataBuf ensures that it will be deleted. <br /></td></tr>
<tr class="separator:a525866c326d9a6ef37e70a2bb644b207 inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28a632e5ca0be46d1348aec33d77d1ae inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifThumbC.html#a28a632e5ca0be46d1348aec33d77d1ae">writeFile</a> (const std::string &amp;path) const </td></tr>
<tr class="memdesc:a28a632e5ca0be46d1348aec33d77d1ae inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the thumbnail image to a file.  <a href="#a28a632e5ca0be46d1348aec33d77d1ae">More...</a><br /></td></tr>
<tr class="separator:a28a632e5ca0be46d1348aec33d77d1ae inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f28b40a8187381efdae3134e32b0c69 inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1f28b40a8187381efdae3134e32b0c69"></a>
const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifThumbC.html#a1f28b40a8187381efdae3134e32b0c69">mimeType</a> () const </td></tr>
<tr class="memdesc:a1f28b40a8187381efdae3134e32b0c69 inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the MIME type of the thumbnail, either <code>"image/tiff"</code> or <code>"image/jpeg"</code>. <br /></td></tr>
<tr class="separator:a1f28b40a8187381efdae3134e32b0c69 inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3f2980afb5524095ec39e6506119140 inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab3f2980afb5524095ec39e6506119140"></a>
const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifThumbC.html#ab3f2980afb5524095ec39e6506119140">extension</a> () const </td></tr>
<tr class="memdesc:ab3f2980afb5524095ec39e6506119140 inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the file extension for the format of the thumbnail (".tif" or ".jpg"). <br /></td></tr>
<tr class="separator:ab3f2980afb5524095ec39e6506119140 inherit pub_methods_classExiv2_1_1ExifThumbC"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Access and modify an Exif thumbnail image. This class implements manipulators to set and erase the thumbnail image that is optionally embedded in IFD1 of the Exif data. Accessors are provided by the base class, <a class="el" href="classExiv2_1_1ExifThumbC.html" title="Access to a Exif thumbnail image. This class provides higher level accessors to the thumbnail image t...">ExifThumbC</a>. </p>
<dl class="section note"><dt>Note</dt><dd>Various other preview and thumbnail images may be contained in an image, depending on its format and the camera make and model. This class only provides access to the Exif thumbnail as specified in the Exif standard. </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a90e5155ba60dae3af4066f80464c788d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Exiv2::ExifThumb::setJpegThumbnail </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#aedcaa9af0563cbd00a19b040d5aa7a70">URational</a>&#160;</td>
          <td class="paramname"><em>xres</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#aedcaa9af0563cbd00a19b040d5aa7a70">URational</a>&#160;</td>
          <td class="paramname"><em>yres</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>unit</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the Exif thumbnail to the JPEG image <em>path</em>. Set XResolution, YResolution and ResolutionUnit to <em>xres</em>, <em>yres</em> and <em>unit</em>, respectively. </p>
<p>This results in the minimal thumbnail tags being set for a JPEG thumbnail, as mandated by the Exif standard.</p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">Error</td><td>if reading the file fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>No checks on the file format or size are performed. </dd>
<dd>
Additional existing Exif thumbnail tags are not modified. </dd>
<dd>
The JPEG image inserted as thumbnail image should not itself contain Exif data (or other metadata), as existing applications may have problems with that. (The preview application that comes with OS X for one.) - David Harvey. </dd></dl>

<p>References <a class="el" href="classExiv2_1_1DataBuf.html#a9a00173081c913d3add58854d9ad2c39">Exiv2::DataBuf::pData_</a>, <a class="el" href="namespaceExiv2.html#a5c87ddedd63e9ab9aa6f295cda32aebd">Exiv2::readFile()</a>, and <a class="el" href="classExiv2_1_1DataBuf.html#a5e6028d5cdae2e149749667cf66c3e91">Exiv2::DataBuf::size_</a>.</p>

<p>Referenced by <a class="el" href="classAction_1_1Insert.html#af7540acf510da9bddf1fda7481efadb7">Action::Insert::insertThumbnail()</a>, and <a class="el" href="classExiv2_1_1ExifThumb.html#aa29789f0a658d53066e0b55bb2b1acb2">setJpegThumbnail()</a>.</p>

</div>
</div>
<a class="anchor" id="aa29789f0a658d53066e0b55bb2b1acb2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Exiv2::ExifThumb::setJpegThumbnail </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#aedcaa9af0563cbd00a19b040d5aa7a70">URational</a>&#160;</td>
          <td class="paramname"><em>xres</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#aedcaa9af0563cbd00a19b040d5aa7a70">URational</a>&#160;</td>
          <td class="paramname"><em>yres</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>unit</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the Exif thumbnail to the JPEG image pointed to by <em>buf</em>, and size <em>size</em>. Set XResolution, YResolution and ResolutionUnit to <em>xres</em>, <em>yres</em> and <em>unit</em>, respectively. </p>
<p>This results in the minimal thumbnail tags being set for a JPEG thumbnail, as mandated by the Exif standard.</p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">Error</td><td>if reading the file fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>No checks on the image format or size are performed. </dd>
<dd>
Additional existing Exif thumbnail tags are not modified. </dd>
<dd>
The JPEG image inserted as thumbnail image should not itself contain Exif data (or other metadata), as existing applications may have problems with that. (The preview application that comes with OS X for one.) - David Harvey. </dd></dl>

<p>References <a class="el" href="classExiv2_1_1ExifThumb.html#a90e5155ba60dae3af4066f80464c788d">setJpegThumbnail()</a>.</p>

</div>
</div>
<a class="anchor" id="af5578e157a1e60b295d703aecec242b8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Exiv2::ExifThumb::setJpegThumbnail </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the Exif thumbnail to the JPEG image <em>path</em>. </p>
<p>This sets only the Compression, JPEGInterchangeFormat and JPEGInterchangeFormatLength tags, which is not all the thumbnail Exif information mandatory according to the Exif standard. (But it's enough to work with the thumbnail.)</p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">Error</td><td>if reading the file fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>No checks on the file format or size are performed. </dd>
<dd>
Additional existing Exif thumbnail tags are not modified. </dd></dl>

<p>References <a class="el" href="classExiv2_1_1DataBuf.html#a9a00173081c913d3add58854d9ad2c39">Exiv2::DataBuf::pData_</a>, <a class="el" href="namespaceExiv2.html#a5c87ddedd63e9ab9aa6f295cda32aebd">Exiv2::readFile()</a>, <a class="el" href="classExiv2_1_1ExifThumb.html#a90e5155ba60dae3af4066f80464c788d">setJpegThumbnail()</a>, and <a class="el" href="classExiv2_1_1DataBuf.html#a5e6028d5cdae2e149749667cf66c3e91">Exiv2::DataBuf::size_</a>.</p>

</div>
</div>
<a class="anchor" id="af8cf3725b3d9d6fa08055ea4809bf77f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Exiv2::ExifThumb::setJpegThumbnail </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the Exif thumbnail to the JPEG image pointed to by <em>buf</em>, and size <em>size</em>. </p>
<p>This sets only the Compression, JPEGInterchangeFormat and JPEGInterchangeFormatLength tags, which is not all the thumbnail Exif information mandatory according to the Exif standard. (But it's enough to work with the thumbnail.)</p>
<dl class="section note"><dt>Note</dt><dd>No checks on the image format or size are performed. </dd>
<dd>
Additional existing Exif thumbnail tags are not modified. </dd></dl>

<p>References <a class="el" href="classExiv2_1_1Exifdatum.html#aa229bf86f961689cf9051bc603a64c9e">Exiv2::Exifdatum::setDataArea()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="exif_8hpp.html">exif.hpp</a></li>
<li>exif.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 4 2016 17:51:50 for Exiv2 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>