<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'Resizing an Image Using PHP'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 00:47:13 GMT</pubDate>
<item>
<title>Vordreller said on 4/7/09</title>
<link>http://snipplr.com/view/8979/resizing-an-image-using-php/</link>
<description><![CDATA[ This function is a bit limited in that it only works for jpeg files...

You can use if-statements to check which image you're using. Go check [this function][1] I made here on Snipplr, it'll help you out:

For instance, you can check for PNG files like this: `endsWith(".png",$file,false);`
Then, if you have a PNG for instance, simple do an `createimagefrompng()`, which excists, just like `createimagefromgif()` exists.

[1]: http://snipplr.com/view/13213/check-if-a-string-ends-with-another-string/ ]]></description>
<pubDate>Tue, 07 Apr 2009 18:02:09 GMT</pubDate>
<guid>http://snipplr.com/view/8979/resizing-an-image-using-php/</guid>
</item>
</channel>
</rss>