<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1031336" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1031336</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Gd</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gd-thumbnails#comment-1183460</link>
    <description> &lt;p&gt;THANKS EVERYONE FOR ALL YOUR HELP!&lt;br /&gt;
Best Regards&lt;br /&gt;
lengoundry&lt;/p&gt;
 </description>
     <pubDate>Tue, 25 Oct 2005 10:21:48 +0000</pubDate>
 <dc:creator>lengoundry</dc:creator>
 <guid isPermaLink="false">comment 1183460 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gd-thumbnails#comment-1183458</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Busy wrote:&lt;/strong&gt; JeevesBond, GD is like image::mavick, does a lot more than graphs, can make images on the fly, like the security ones seen on forums but can change formats, crop, resize, add text, blur, sharpen, resize, rotate .... Is like a mini ifranview online&lt;/p&gt;
&lt;p&gt;lengoundry, this part of the code wouldn&#039;t need to be touched, you&#039;d just have to make sure $base, $dir and $ext had the right values, ie: ext was the file extension that is actually an image ... I don&#039;t believe you can do it as the code need ths image to resize, using just a link would cause all sorts of issues, security related as well. Did you email/pm Britton ?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Hi&lt;br /&gt;
Many thanks for your reply!&lt;br /&gt;
I know image magick can do this&lt;br /&gt;
but my host server only has GD&lt;/p&gt;
&lt;p&gt;Did you email/pm Britton ?&lt;/p&gt;
&lt;p&gt;I will do that now.&lt;br /&gt;
thanks again for your help!&lt;/p&gt;
&lt;p&gt;Best Regards&lt;br /&gt;
Len&lt;/p&gt;
 </description>
     <pubDate>Tue, 25 Oct 2005 10:06:49 +0000</pubDate>
 <dc:creator>lengoundry</dc:creator>
 <guid isPermaLink="false">comment 1183458 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gd-thumbnails#comment-1183399</link>
    <description> &lt;p&gt;JeevesBond, GD is like image::mavick, does a lot more than graphs, can make images on the fly, like the security ones seen on forums but can change formats, crop, resize, add text, blur, sharpen, resize, rotate .... Is like a mini ifranview online&lt;/p&gt;
&lt;p&gt;lengoundry, this part of the code wouldn&#039;t need to be touched, you&#039;d just have to make sure $base, $dir and $ext had the right values, ie: ext was the file extension that is actually an image ... I don&#039;t believe you can do it as the code need ths image to resize, using just a link would cause all sorts of issues, security related as well. Did you email/pm Britton ?&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 Oct 2005 20:36:24 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1183399 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Gd</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gd-thumbnails#comment-1183328</link>
    <description> &lt;p&gt;Hi to all&lt;br /&gt;
many thanks for all the reply&#039;s&lt;br /&gt;
here is how I get thumbnails via GD&lt;br /&gt;
All I would like to know is what code would I use&lt;br /&gt;
to make thumbnails of images hosted elsewhere&lt;br /&gt;
using GD.&lt;br /&gt;
THANKS AGAIN EVERYONE FOR YOUR HELP!&lt;br /&gt;
Best Regards&lt;br /&gt;
Len&lt;/p&gt;
&lt;p&gt;############################&lt;br /&gt;
### make thumbnail using GD&lt;/p&gt;
&lt;p&gt;my $base; my $dir; my $ext;&lt;br /&gt;
($base, $dir, $ext) = fileparse($form{&#039;UPIMAGE1&#039;});&lt;br /&gt;
my $srcimage;&lt;br /&gt;
my $maxheight = 75;&lt;br /&gt;
my $maxwidth = 75;&lt;br /&gt;
if ($base =~ /.+(\.jpg|\.jpeg)$/i) {&lt;br /&gt;
$srcimage = GD::Image-&amp;gt;newFromJpeg(&quot;$config{&#039;imagebase&#039;}/$form{&#039;UPIMAGE1&#039;}&quot;);&lt;br /&gt;
}&lt;br /&gt;
if ($base =~ /.+\.gif$/i) {&lt;br /&gt;
$srcimage = GD::Image-&amp;gt;newFromGif(&quot;$config{&#039;imagebase&#039;}/$form{&#039;UPIMAGE1&#039;}&quot;);&lt;br /&gt;
}&lt;br /&gt;
my ($srcW,$srcH) = $srcimage-&amp;gt;getBounds();&lt;br /&gt;
my $wdiff = $srcW - $maxwidth;&lt;br /&gt;
my $hdiff = $srcH - $maxheight;&lt;br /&gt;
my $newH; my $newW; my$aspect; &lt;/p&gt;
&lt;p&gt;##this maintains the aspect of the image&lt;br /&gt;
if ($wdiff &amp;gt; $hdiff) {&lt;br /&gt;
$newW = $maxwidth;&lt;br /&gt;
$aspect = ($newW/$srcW);&lt;br /&gt;
$newH = int($srcH * $aspect);&lt;br /&gt;
} else {&lt;br /&gt;
$newH = $maxheight;&lt;br /&gt;
$aspect = ($newH/$srcH);&lt;br /&gt;
$newW = int($srcW * $aspect);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;my $newimage = new GD::Image($newW,$newH);&lt;br /&gt;
$newimage-&amp;gt;copyResized($srcimage,0,0,0,0,$newW,$newH,$srcW,$srcH);&lt;br /&gt;
open(OUT, &quot;&amp;gt;$config{&#039;thumbbase&#039;}/$base&quot;) || die &quot;Cannot create thumbnail: $!\n&quot;;&lt;br /&gt;
binmode OUT;&lt;br /&gt;
print OUT $newimage-&amp;gt;jpeg;&lt;br /&gt;
close OUT;&lt;/p&gt;
&lt;p&gt;### End of Thumbnail creation&lt;br /&gt;
##############################&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 Oct 2005 14:12:18 +0000</pubDate>
 <dc:creator>lengoundry</dc:creator>
 <guid isPermaLink="false">comment 1183328 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gd-thumbnails#comment-1183309</link>
    <description> &lt;p&gt;Megan: &lt;a href=&quot;http://www.boutell.com/gd/&quot; class=&quot;bb-url&quot;&gt;http://www.boutell.com/gd/&lt;/a&gt;&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;boutell.com/gd/ wrote:&lt;/strong&gt; &lt;strong&gt;What is the GD library?&lt;/strong&gt; GD is an open source code library for the dynamic creation of images by programmers. GD is written in C, and &quot;wrappers&quot; are available for Perl, PHP and other languages. GD creates PNG, JPEG and GIF images, among other formats. GD is commonly used to generate charts, graphics, thumbnails, and most anything else, on the fly. While not restricted to use on the web, the most common applications of GD involve web site development.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;So you give it an image, tell it to do stuff (like resize to 50 x 50) and it does it. Nice thing is that you can use it in a script, so uploaded files can be manipulated on the fly, which is what lengoundry&#039;s trying to do here.&lt;/p&gt;
&lt;p&gt;Reading the blurb it&#039;s mainly used for drawing graphs and such, so my guess is it&#039;s used in a lot of stats packages.&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 Oct 2005 12:07:08 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1183309 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gd-thumbnails#comment-1183245</link>
    <description> &lt;p&gt;The image would have to be loaded through GD to make a thumbnail, giving it a URL may work but thats basically hotlinking (sucking up someone elses bandwidth)&lt;/p&gt;
 </description>
     <pubDate>Sun, 23 Oct 2005 20:59:28 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1183245 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gd-thumbnails#comment-1183216</link>
    <description> &lt;p&gt;PM me or instant message me at BrittonKeene&lt;/p&gt;
 </description>
     <pubDate>Sun, 23 Oct 2005 17:09:21 +0000</pubDate>
 <dc:creator>Britton</dc:creator>
 <guid isPermaLink="false">comment 1183216 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gd-thumbnails#comment-1183215</link>
    <description> &lt;p&gt;Yes, I&#039;ve done it. I&#039;d be glad to give you my thumbnail file and show you how to use it.&lt;/p&gt;
 </description>
     <pubDate>Sun, 23 Oct 2005 17:08:47 +0000</pubDate>
 <dc:creator>Britton</dc:creator>
 <guid isPermaLink="false">comment 1183215 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gd-thumbnails#comment-1183193</link>
    <description> &lt;p&gt;What is &quot;GD&quot;???&lt;/p&gt;
 </description>
     <pubDate>Sun, 23 Oct 2005 14:56:21 +0000</pubDate>
 <dc:creator>Megan</dc:creator>
 <guid isPermaLink="false">comment 1183193 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
