<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php/tags/width</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 12:17:14 GMT</pubDate>
<item>
<title>(PHP) PHP Image Ratio Width &amp;amp; Height, Top &amp;amp; Left - ShawnG</title>
<link>http://snipplr.com/view/71321/php-image-ratio-width--height-top--left/</link>
<description><![CDATA[ <p>Returns array with information like:
Input image
width 200
height 200

     print_r(ratioResize('path/to/image.ext' ,  100 , 50));



output:


     array(
         [ratio] => .5,
         [height] => 50,
         [width] => 50,
         [left] => 25,
         [top] => 25
     );</p> ]]></description>
<pubDate>Wed, 29 May 2013 03:48:55 GMT</pubDate>
<guid>http://snipplr.com/view/71321/php-image-ratio-width--height-top--left/</guid>
</item>
<item>
<title>(PHP) Get the width, height, type and attr of an image - Some0ne</title>
<link>http://snipplr.com/view/67577/get-the-width-height-type-and-attr-of-an-image/</link>
<description><![CDATA[ <p>Just a rework of http://snipplr.com/view/7523/  with an added switch to change type number to extention name.</p> ]]></description>
<pubDate>Wed, 03 Oct 2012 12:53:29 GMT</pubDate>
<guid>http://snipplr.com/view/67577/get-the-width-height-type-and-attr-of-an-image/</guid>
</item>
<item>
<title>(PHP) Resize an image without distorting proportions (JPEG, GIF or PNG) - TimoZachi</title>
<link>http://snipplr.com/view/58584/resize-an-image-without-distorting-proportions-jpeg-gif-or-png/</link>
<description><![CDATA[ <p>A function that resizes an image to desired width and height, but does not distort the image proportions. Works for JPEG, GIF and PNG.</p> ]]></description>
<pubDate>Sat, 10 Sep 2011 08:38:41 GMT</pubDate>
<guid>http://snipplr.com/view/58584/resize-an-image-without-distorting-proportions-jpeg-gif-or-png/</guid>
</item>
<item>
<title>(PHP) Get All information from youtube video - TimoZachi</title>
<link>http://snipplr.com/view/58573/get-all-information-from-youtube-video/</link>
<description><![CDATA[ <p>This code snippet gets all information from a YouTube video (title, description, duration, thumbnail url, thumbnail width, thumbnail height, etc..) using the video id and YouTube API.</p> ]]></description>
<pubDate>Sat, 10 Sep 2011 03:51:42 GMT</pubDate>
<guid>http://snipplr.com/view/58573/get-all-information-from-youtube-video/</guid>
</item>
<item>
<title>(PHP) Flickr Recent Photos to HTML with PHP - jakekimpton</title>
<link>http://snipplr.com/view/55467/flickr-recent-photos-to-html-with-php/</link>
<description><![CDATA[ <p>It’s been driving me crazy that there’s no definitive script written to take out a user’s Flickr recent photos and parse it for formatting into HTML with a larger size than the standard 75 x 75 dimensions that the public_photo.gne Flickr script outputs. So I’ve written one, using a bit of skill and a snippet of code that someone posted which was kind of going in the same direction but then suddenly stopped and took a hard u-turn, veering off to somewhere stupid, as usual with programmers who know too much. So here’s a quick run through of what the code does:

Collect the User ID that is added manually and constructs the Feed Links
Get the File contents of the Feed Link once it’s been run
Convert the XML to HTML
Return it to the script for printing or a variable (Choice of the Programmer)

I haven’t tested this on different versions of PHP, all I know is it works for me, and it’s using some pretty simple stuff so it should work fine. Just change the ID to your own or whoever’s it has to be and it should run.</p> ]]></description>
<pubDate>Sat, 18 Jun 2011 20:21:14 GMT</pubDate>
<guid>http://snipplr.com/view/55467/flickr-recent-photos-to-html-with-php/</guid>
</item>
<item>
<title>(PHP) Get the width and height of an image using a function in PHP - jamesming</title>
<link>http://snipplr.com/view/7523/get-the-width-and-height-of-an-image-using-a-function-in-php/</link>
<description><![CDATA[ <p>When you run this script you will see the result like this

Image width 379
Image height 344
Image type 2
Image attribute width="379" height="344"

You will get the width, height, type of an image and also attribute of an image, I use this function in my image upload form.</p> ]]></description>
<pubDate>Sat, 26 Jul 2008 18:49:28 GMT</pubDate>
<guid>http://snipplr.com/view/7523/get-the-width-and-height-of-an-image-using-a-function-in-php/</guid>
</item>
</channel>
</rss>