<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to display thumbnails in it's original size with PHP in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-display-thumbnails-in-it-s-original-size-with-PHP/m-p/333329#M19467</link>
    <description>&lt;P&gt;Problem solved!!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I read a little further the documentation I figured out that I was missing the paramenter size on my code.&lt;/P&gt;&lt;P&gt;So I changed this line:&lt;/P&gt;&lt;PRE&gt;curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . $token[0]-&amp;gt;itoken, 'Dropbox-API-Arg: {"path": "/test-1/Capture-desktop.PNG", "format": "png", "mode": "strict"}'));&lt;/PRE&gt;&lt;P&gt;For this one:&lt;/P&gt;&lt;PRE&gt;    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . $token[0]-&amp;gt;itoken, 'Dropbox-API-Arg: {"path": "/test-1/Capture-desktop.PNG", "format": "png", "size": "w1024h768", "mode": "strict"}'));&lt;/PRE&gt;&lt;P&gt;The size options I found in this link: &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail" target="_self"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 502px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/9010iA135DDCE8BFAA089/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And now it's working perfectly!&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 00:05:32 GMT</pubDate>
    <dc:creator>lrduques</dc:creator>
    <dc:date>2019-03-12T00:05:32Z</dc:date>
    <item>
      <title>How to display thumbnails in it's original size with PHP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-display-thumbnails-in-it-s-original-size-with-PHP/m-p/333324#M19464</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to display my Dropbox images on the browser using&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail" target="_self"&gt;/get_thumbnail&lt;/A&gt;&amp;nbsp;which works just fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, the image on the browser it's too small. It's not the original size.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the png image on my Dropbox account:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.PNG" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/9008i97CE687F5B74B50A/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.PNG" alt="test.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And this is the same image I got from the API:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test-2.png" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/9009i79FB22D326506AE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="test-2.png" alt="test-2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As you can see, it's impossible to see the image.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So anyone knows how do I get the image in it's original size? I am using a PHP code as follow to browser the images:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?php 

require_once 'Functions/functions.php';

header("Content-Type: image/jpeg");

$token = getToken($_SESSION['uid']);

if (isset($token[0])) {

    //$data  = file_get_contents('json/getThumbnail.json');

    $ch = curl_init();
    
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . $token[0]-&amp;gt;itoken, 'Dropbox-API-Arg: {"path": "/test-1/Capture-desktop.PNG", "format": "png", "mode": "strict"}'));
    curl_setopt($ch, CURLOPT_URL, "https://content.dropboxapi.com/2/files/get_thumbnail");
    
    $response = curl_exec($ch);

    echo $response;

}else{
    header('Location: http://localhost/optiSurface-dropbox/curl-auth1.php');
    exit();
}

 ?&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I appreciate if anyone can help me out with this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:07:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-display-thumbnails-in-it-s-original-size-with-PHP/m-p/333324#M19464</guid>
      <dc:creator>lrduques</dc:creator>
      <dc:date>2019-05-29T09:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to display thumbnails in it's original size with PHP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-display-thumbnails-in-it-s-original-size-with-PHP/m-p/333327#M19466</link>
      <description>&lt;P&gt;By default, the&amp;nbsp;/2/files/get_thumbnail endpoint will return a 64x64 thumbnail of the requested image. If you want a different size, you can request it using the "size" parameter. You can specify that the same way you specify the "mode" and "format" parameters. You can find more information, such as the sizes that are available, in&amp;nbsp;the&amp;nbsp;/2/files/get_thumbnail:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Note that if you want the original file data though, you can instead use&amp;nbsp;/2/files/download:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-download&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 00:03:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-display-thumbnails-in-it-s-original-size-with-PHP/m-p/333327#M19466</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-03-12T00:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to display thumbnails in it's original size with PHP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-display-thumbnails-in-it-s-original-size-with-PHP/m-p/333329#M19467</link>
      <description>&lt;P&gt;Problem solved!!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I read a little further the documentation I figured out that I was missing the paramenter size on my code.&lt;/P&gt;&lt;P&gt;So I changed this line:&lt;/P&gt;&lt;PRE&gt;curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . $token[0]-&amp;gt;itoken, 'Dropbox-API-Arg: {"path": "/test-1/Capture-desktop.PNG", "format": "png", "mode": "strict"}'));&lt;/PRE&gt;&lt;P&gt;For this one:&lt;/P&gt;&lt;PRE&gt;    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . $token[0]-&amp;gt;itoken, 'Dropbox-API-Arg: {"path": "/test-1/Capture-desktop.PNG", "format": "png", "size": "w1024h768", "mode": "strict"}'));&lt;/PRE&gt;&lt;P&gt;The size options I found in this link: &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail" target="_self"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 502px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/9010iA135DDCE8BFAA089/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And now it's working perfectly!&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 00:05:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-display-thumbnails-in-it-s-original-size-with-PHP/m-p/333329#M19467</guid>
      <dc:creator>lrduques</dc:creator>
      <dc:date>2019-03-12T00:05:32Z</dc:date>
    </item>
  </channel>
</rss>

