<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Mon, 20 May 2013 02:00:57 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Kae Verens' Blog: pre-parsing HTML for incorrectly-sized images]]></title>
      <guid>http://www.phpdeveloper.org/news/10707</guid>
      <link>http://www.phpdeveloper.org/news/10707</link>
      <description><![CDATA[<p>
<i>Kae Verens</i> has <a href="http://verens.com/archives/2008/07/27/pre-parsing-html-for-incorrectly-sized-images/">a recent blog post</a> that looks at a method for helping to protect users from themselves when working with images - a method for handling ones incorrectly sized.
</p>
<blockquote>
Every now and then, I get a call from a client who is puzzled why their site is running slow. I would look at their page and see an innocuous image inserted into a paragraph. When I examine the image, though, I see that the client has artificially resized the image using HTML. One recent example showed on-screen as a 300px-wide image. When I examined it, it was actually 3000px wide (approx).
</blockquote>
<p>
The <a href="http://verens.com/demos/html_imageresizer/html_imageresizer.phps">script</a> looks through some HTML markup and, based on the sizes in the image tags, resizes the images appropriately. An <A href="http://verens.com/demos/html_imageresizer/html_imageresizer.php">example</a> and <a href="http://verens.com/demos/html_imageresizer/html_imageresizer.phps">the source</a> are provided.
</p>]]></description>
      <pubDate>Tue, 29 Jul 2008 12:03:55 -0500</pubDate>
    </item>
  </channel>
</rss>
