<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 09:57:45 +0000</lastBuildDate>
    <item>
      <title>(PHP) Image Scaling within Limits (max height, max width) - dblack</title>
      <link>https://snipplr.com/view/53183/image-scaling-within-limits-max-height-max-width</link>
      <description>&lt;p&gt;This is a much cleaner way to do this than the number of examples on the web.  Every example I saw seemed to account for orientation  - horizontal vs. vertical vs. square when looking at the input.  This ignores horizontal and vertical by mapping the "long side" and "short side" and then re-mapping the variables to $h / $w at the end.&lt;/p&gt;</description>
      <pubDate>Sat, 07 May 2011 10:52:08 UTC</pubDate>
      <guid>https://snipplr.com/view/53183/image-scaling-within-limits-max-height-max-width</guid>
    </item>
  </channel>
</rss>
