﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>BBS.PROGENIC.COM / Chat / Coding  / Conditional Image resize script / Latest Posts</title><generator>InstantForum.NET v4.1.2</generator><description>BBS.PROGENIC.COM</description><link>http://bbs.progenic.com/</link><webMaster>noreply@progenic.com</webMaster><lastBuildDate>Sun, 23 Nov 2008 09:28:03 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Conditional Image resize script</title><link>http://bbs.progenic.com/Topic14230-9-1.aspx</link><description>thanks a whole lot bro &lt;img align="absmiddle" src="http://bbs.progenic.com/Skins/Common/EmotIcons/Smile.gif" border="0" title="Smile"&gt;</description><pubDate>Fri, 04 Apr 2008 19:14:18 GMT</pubDate><dc:creator>_Infernal_</dc:creator></item><item><title>RE: Conditional Image resize script</title><link>http://bbs.progenic.com/Topic14230-9-1.aspx</link><description>Two websites that helped me a lot when I forgot something were:&lt;P&gt;&lt;A href="http://www.dbforums.com/" target=_Blank&gt;http://www.dbforums.com/&lt;/A&gt;&lt;BR&gt;&lt;A href="http://www.php-mysql-tutorial.com/" target=_Blank&gt;http://www.php-mysql-tutorial.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The 2nd one is good, but there are instructions missing so you'll have to figure out the problems on your own when stuff doesn't work out the way you want.&lt;P&gt;BTW, messaged you the code.</description><pubDate>Fri, 04 Apr 2008 18:44:31 GMT</pubDate><dc:creator>Beezer</dc:creator></item><item><title>RE: Conditional Image resize script</title><link>http://bbs.progenic.com/Topic14230-9-1.aspx</link><description>i'd pay if it were for my site &lt;img align="absmiddle" src="http://bbs.progenic.com/Skins/Common/EmotIcons/Smile.gif" border="0" title="Smile"&gt; &lt;br&gt;&lt;br&gt;&lt;br&gt;btw you got a real php tutorial site&lt;br&gt;&lt;br&gt;not the crap you find in google and not quite php.org ..a bit to complicated ..&lt;img align="absmiddle" src="http://bbs.progenic.com/Skins/Common/EmotIcons/Sad.gif" border="0" title="Sad"&gt;</description><pubDate>Fri, 04 Apr 2008 15:48:43 GMT</pubDate><dc:creator>_Infernal_</dc:creator></item><item><title>RE: Conditional Image resize script</title><link>http://bbs.progenic.com/Topic14230-9-1.aspx</link><description>Learn it, make some effort.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I'll do it for 10 bucks.</description><pubDate>Fri, 04 Apr 2008 09:27:55 GMT</pubDate><dc:creator>G-Brain</dc:creator></item><item><title>RE: Conditional Image resize script</title><link>http://bbs.progenic.com/Topic14230-9-1.aspx</link><description>Thanks a lot&lt;br&gt;&lt;br&gt;This helps a lot  helping me learn some new php commands &lt;img align="absmiddle" src="http://bbs.progenic.com/Skins/Common/EmotIcons/BigGrin.gif" border="0" title="BigGrin"&gt; which I am always up for &lt;img align="absmiddle" src="http://bbs.progenic.com/Skins/Common/EmotIcons/BigGrin.gif" border="0" title="BigGrin"&gt;Please do share a ready made script to whenever you can ...sorry still not good enough to make my own ...thanks a whole lot bro &lt;img align="absmiddle" src="http://bbs.progenic.com/Skins/Common/EmotIcons/Smile.gif" border="0" title="Smile"&gt; &lt;br&gt;</description><pubDate>Thu, 03 Apr 2008 18:20:54 GMT</pubDate><dc:creator>_Infernal_</dc:creator></item><item><title>RE: Conditional Image resize script</title><link>http://bbs.progenic.com/Topic14230-9-1.aspx</link><description>GD Library will allow you to do this. It will have to be installed on the server, if not already there...should be though.&lt;br&gt;&lt;br&gt;I'm not at home to give you one of my resize scripts...will be home on Sat.&lt;br&gt;But I found the pointers online...this is what I recall.&lt;br&gt;&lt;br&gt;To get the image size:&lt;br&gt;&lt;pre&gt;$im=imagecreatefromstring($fileContent) (I loaded it through BLOB)&lt;br&gt;$width=imagesx($im)&lt;br&gt;$heigh=imagesy($im)&lt;/pre&gt;&lt;br&gt;And then to create the image resized would be:&lt;br&gt;&lt;pre&gt;$resize=ImageCreateTrueColor($imgw,$imgh)&lt;/pre&gt;&lt;br&gt;// imgw is what you wanna resize the image to. So you'd set it earlier imgw=640, and imgh is the height. Duh.&lt;br&gt;&lt;br&gt;And finally, the most important thing which took me forever to find. This is to resample the image, take out all the jagged lines upon resizing. Otherwise it looks crap-o-la.&lt;br&gt;&lt;pre&gt;ImageCopyResampled (I forget the parameters, there are a zillion )&lt;/pre&gt;&lt;br&gt;Oh crap, also almost forgot. Clearing the memory.&lt;br&gt;&lt;pre&gt;imagedestroy ($im)&lt;br&gt;imagedestroy ($resize)&lt;/pre&gt;&lt;br&gt;OK. I know this doesn't help. But with some g**gle power. You'll find some script to help you more than me...this is all I recall until I see the script on my computer.</description><pubDate>Thu, 03 Apr 2008 16:41:14 GMT</pubDate><dc:creator>Beezer</dc:creator></item><item><title>Conditional Image resize script</title><link>http://bbs.progenic.com/Topic14230-9-1.aspx</link><description>I need some php pointers&lt;br&gt;If anyone has something like this please share&lt;br&gt;I need a script that when you add an image and it creates a thumb to it it will also resize images that are bigger then a given number of pixels&lt;br&gt;If anyone knows or has anything like this please share</description><pubDate>Thu, 03 Apr 2008 09:06:32 GMT</pubDate><dc:creator>_Infernal_</dc:creator></item></channel></rss>