<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title>thumbnail creation without save? in Webmasters and Developers</title>
<link>http://www.dslreports.com/forum/r6506594</link>
<description></description>
<language>en</language>
<pubDate>Sun, 06 Dec 2009 11:31:19 EDT</pubDate>
<lastBuildDate>Sun, 06 Dec 2009 11:31:19 EDT</lastBuildDate>

<item>
<title>Re: thumbnail creation without save?</title>
<link>http://www.dslreports.com/forum/remark,6509576</link>
<description><![CDATA[<A HREF="/useremail/u/621836"><b>Leif3</b></A> : I'll try it out and let you know. Many thanks. PHP continues to amaze me.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,6509576</guid>
<pubDate>Mon, 07 Apr 2003 23:15:03 EDT</pubDate>
</item>

<item>
<title>Re: thumbnail creation without save?</title>
<link>http://www.dslreports.com/forum/remark,6508822</link>
<description><![CDATA[<A HREF="/useremail/u/213240"><b>Roundboy</b></A> : certianly..<br><br>I call the image like:<br><br>IMG SRC="/makeimage.php?file=$file"&gt<br><br>this means call the makeimage.php file with arguments that the php code needs:<br><br>makeimage.php :<br><br><BLOCKQUOTE>code:<HR><pre><br>// set base image<br>$image = "/home/ercdvs/public_html/archive/$id/$file";<br>$image_info = getimagesize($image);<br>// image specifics<br>$too_big_diff_ratio = $image_info[0]/$max_width;<br>$new_img_width = $max_width;<br>$new_img_height = round($image_info[1]/$too_big_diff_ratio);<br><br>// determine image type<br>if($image_info[2] == "2") // JPEG<br>	{<br>// This is for resizing JPG only<br>	Header ("Content-type: image/jpeg");<br>	$src_img = @imagecreatefromjpeg($image);<br>	$dst_img = @imagecreatetruecolor($new_img_width,$new_img_height);<br>	imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $new_img_width, $new_img_height, $image_info[0], $image_info[1]);<br>    imagejpeg($dst_img,'',90); <br>	ImageDestroy($src_img); <br>	ImageDestroy($dst_img); <br><br>	}<br></pre><HR></BLOCKQUOTE><br>This code takes the directory and filename of the big image.. and if it is a jpg, resizes to a max width of 100, and a hieght keeping with the image ratio<br><br>I need to write vrey similar code for gif, png, etc.. but 99.9% of m images are jpg.<br><br>feel free to copy and ask me any questions.<br><small>--<br><BR>Girls are like internet domain names, the ones I like are already taken.  Unless you get one from a strange country<BR><BR>I dont know the difference between games and reality anymore ...I just used a shotgun on my mother and she's not respawning</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,6508822</guid>
<pubDate>Mon, 07 Apr 2003 21:57:14 EDT</pubDate>
</item>

<item>
<title>Re: thumbnail creation without save?</title>
<link>http://www.dslreports.com/forum/remark,6508576</link>
<description><![CDATA[<A HREF="/useremail/u/621836"><b>Leif3</b></A> : Could you post a sample of some code.<br>Thanks.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,6508576</guid>
<pubDate>Mon, 07 Apr 2003 21:32:15 EDT</pubDate>
</item>

<item>
<title>Re: thumbnail creation without save?</title>
<link>http://www.dslreports.com/forum/remark,6507967</link>
<description><![CDATA[<A HREF="/useremail/u/213240"><b>Roundboy</b></A> : i actually got it working..<br><br>I have the proper workings of the functions.. it ust wasn't displaying..<br><br>but it turns out i had an error in the php age i was calling.. resulting in no image..<br><br>everything is working on the fly now.. no thumbnails saved]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,6507967</guid>
<pubDate>Mon, 07 Apr 2003 20:29:43 EDT</pubDate>
</item>

<item>
<title>Re: thumbnail creation without save?</title>
<link>http://www.dslreports.com/forum/remark,6507759</link>
<description><![CDATA[<A HREF="/useremail/u/247632"><b>Lazarus Long</b></A> : Look at some of the image functions in PHP.<br><br>I use the following the  ImageCopyResized and ImageJpeg functions to create thumbnails on the fly<br><br>Hope this helps<br><small>--<br>Always listen to experts. They'll tell you what can't be done, and why. Then do it.</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,6507759</guid>
<pubDate>Mon, 07 Apr 2003 20:11:07 EDT</pubDate>
</item>

<item>
<title>thumbnail creation without save?</title>
<link>http://www.dslreports.com/forum/remark,6506594</link>
<description><![CDATA[<A HREF="/useremail/u/213240"><b>Roundboy</b></A> : i have the code in place to create a tumbnail via php from an image..<br><br>but i want to create and DISPLAY it only the fly.. not save it to a directory..<br><br>i know that i can call:<br><br>img src = "myscript.php?arguments"<br><br>but i can't pass the filename, etc of the image i want to create the thumbnail from..<br><br>if i call the function directly in the img scr.. then the page is ONLY the thumbnail.. not contained in an image..<br><br>any insights on how to make a thumbnail for display on a page without saving it to a directory??<br><small>--<br><BR>Girls are like internet domain names, the ones I like are already taken.  Unless you get one from a strange country<BR><BR>I dont know the difference between games and reality anymore ...I just used a shotgun on my mother and she's not respawning</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,6506594</guid>
<pubDate>Mon, 07 Apr 2003 17:59:29 EDT</pubDate>
</item>

</channel>
</rss>
