<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Avatar features]]></title>
		<link>https://punbb.informer.com/forums/topic/3751/avatar-features/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/3751/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Avatar features.]]></description>
		<lastBuildDate>Tue, 04 May 2004 00:14:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Avatar features]]></title>
			<link>https://punbb.informer.com/forums/post/13233/#p13233</link>
			<description><![CDATA[<div class="quotebox"><cite>datapurge wrote:</cite><blockquote><p>will this resize the image in proportion IE if its 40x20 will it make it 60x60(incorrect ratio) or 60x30(correct ratio)</p></blockquote></div><p>It will preserve the aspect ratio.</p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Tue, 04 May 2004 00:14:27 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/13233/#p13233</guid>
		</item>
		<item>
			<title><![CDATA[Re: Avatar features]]></title>
			<link>https://punbb.informer.com/forums/post/13231/#p13231</link>
			<description><![CDATA[<p>will this resize the image in proportion IE if its 40x20 will it make it 60x60(incorrect ratio) or 60x30(correct ratio)</p>]]></description>
			<author><![CDATA[null@example.com (datapurge)]]></author>
			<pubDate>Mon, 03 May 2004 23:51:40 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/13231/#p13231</guid>
		</item>
		<item>
			<title><![CDATA[Re: Avatar features]]></title>
			<link>https://punbb.informer.com/forums/post/13223/#p13223</link>
			<description><![CDATA[<p>I use ImageMagick a fair bit. Resizing is quite easy, for example,</p><div class="codebox"><pre><code>$imginfo = exec(&quot;/usr/bin/identify $imagename&quot;);
$dimensions = explode(&quot; &quot;, $imginfo);
$dimensions = $dimensions[2];
$dimensions = explode(&quot;x&quot;, $dimensions);
$width = $dimensions[0];
$height = $dimensions[1];
if ($width &gt; 60 || $height &gt; 60) {
  exec(&quot;/usr/bin/mogrify -resize 60x60 -quality 80 +profile &#039;*&#039; $imagename&quot;);
}</code></pre></div><p>-resize : sets the maximum height or width, preserving the aspect ratio;<br />-quality : sets the jpeg image quality/compression;<br />+profile &#039;*&#039; : strips out any header information stored in the image. For example, a photo from a digital camera will contain headers that add about 10kb to the image filesize and will be kept even in a tiny thumbnail if you don&#039;t strip them.</p><p>Needless to say, you have to adjust for your path to the ImageMagick binaries (/usr/bin in this example).</p><p>Maybe there&#039;s a simpler way of getting image dimensions with ImageMagick, dunno. I know it&#039;s easier with the GD library, but (IMO) ImageMagick produces much better quality results on resizing than GD.</p>]]></description>
			<author><![CDATA[null@example.com (sleddog)]]></author>
			<pubDate>Mon, 03 May 2004 21:38:47 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/13223/#p13223</guid>
		</item>
		<item>
			<title><![CDATA[Re: Avatar features]]></title>
			<link>https://punbb.informer.com/forums/post/13221/#p13221</link>
			<description><![CDATA[<p>good point however this is just going to have to do until i learn to code php. I have no idea how to use gd and such, however I do think those would be good features also, we&#039;ll see what happens i guess, but for now this will work fine for me.</p>]]></description>
			<author><![CDATA[null@example.com (datapurge)]]></author>
			<pubDate>Mon, 03 May 2004 20:21:30 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/13221/#p13221</guid>
		</item>
		<item>
			<title><![CDATA[Re: Avatar features]]></title>
			<link>https://punbb.informer.com/forums/post/13200/#p13200</link>
			<description><![CDATA[<p>If you&#039;d need such a function just use the php gd lib, netpbm or imagemagick libraries. You don&#039;t have to make your own code for that.</p><p>Then again, why would you want to resize a 1000x1000 picture to 60x60 and find out it looks like crap because of the proportions.</p>]]></description>
			<author><![CDATA[null@example.com (Falconey)]]></author>
			<pubDate>Mon, 03 May 2004 08:09:47 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/13200/#p13200</guid>
		</item>
		<item>
			<title><![CDATA[Re: Avatar features]]></title>
			<link>https://punbb.informer.com/forums/post/13199/#p13199</link>
			<description><![CDATA[<p>That&#039;s not a really good solution either, now everybody must download the large file instead of a really small one. Your avatar is now 44kB, and it could be 5-10k instead.</p><p>There are php-tools to manipulate files, but then you have alot of more work to do :)</p>]]></description>
			<author><![CDATA[null@example.com (Chacmool)]]></author>
			<pubDate>Mon, 03 May 2004 07:15:25 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/13199/#p13199</guid>
		</item>
		<item>
			<title><![CDATA[Re: Avatar features]]></title>
			<link>https://punbb.informer.com/forums/post/13198/#p13198</link>
			<description><![CDATA[<p>see my own little mod in action <a href="http://www.guitaraudio.com/">here</a></p>]]></description>
			<author><![CDATA[null@example.com (datapurge)]]></author>
			<pubDate>Mon, 03 May 2004 06:06:52 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/13198/#p13198</guid>
		</item>
		<item>
			<title><![CDATA[Re: Avatar features]]></title>
			<link>https://punbb.informer.com/forums/post/13197/#p13197</link>
			<description><![CDATA[<p>wow, nevermind i figured out how to do it myself HEH im amazed.</p>]]></description>
			<author><![CDATA[null@example.com (datapurge)]]></author>
			<pubDate>Mon, 03 May 2004 06:02:09 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/13197/#p13197</guid>
		</item>
		<item>
			<title><![CDATA[Re: Avatar features]]></title>
			<link>https://punbb.informer.com/forums/post/13194/#p13194</link>
			<description><![CDATA[<p>I dont know PHP but here is the basic mathematical idea</p><p>smaller dimension divided by larger dimension = variable<br />variable multiplied by 60 (largest dimension wanted in pixels) = outputted smaller dimension<br />outputted larger dimension equals 60</p><p>EX<br />an image 724 width by 528 height</p><p>528 / 724 = 0.729<br />0.729 * 60 = 44</p><p>Therefore the larger side (724) will be shown at 60 pixels<br />and the smaller side (528) will be shown at 44 pixels</p><p>Plug these numbers into an &lt;img&gt; html tag and you have a resized image that isnt stretched or distorted.</p><p>If someone could put this function into PHP for me I may be able to do the rest myself... MUCH appreciated</p>]]></description>
			<author><![CDATA[null@example.com (datapurge)]]></author>
			<pubDate>Mon, 03 May 2004 02:14:55 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/13194/#p13194</guid>
		</item>
		<item>
			<title><![CDATA[Avatar features]]></title>
			<link>https://punbb.informer.com/forums/post/13190/#p13190</link>
			<description><![CDATA[<p>It would be really neat to have it so that you can upload an avatar of any size height or width, but have it sized down according to its large size so it doesnt look stretched. You could keep the image the same size but use html to do like &lt;img height=&quot;&quot; width=&quot;&quot;&gt;. It would take some sort of math function to figure out what a good height and width to show so that it isnt stretched and is still small enough for the box there.</p><p>Then an addon to this mod that could be cool is to make it so when you click on the avatar it opens a full sized picture in a separate window (Very neat idea for a chatting forum)</p><p>An example of a site that does this is <a href="http://www.youthink.com/">YouThink</a></p><p>I am using PunBB for a guitar/musicians website and this is a feature that would be very nice in the atmosphere of all these artists <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (datapurge)]]></author>
			<pubDate>Mon, 03 May 2004 01:29:07 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/13190/#p13190</guid>
		</item>
	</channel>
</rss>
