pThumb

pthumb

  • By jgrant
  • Latest release June 14, 2014 (12 years ago)

About

A fork of phpThumbOf. pThumb is a drop-in replacement for phpThumbOf and fixes many of its issues, adds a few new features, and improves performance.

Installation & usage

pThumb uses the same namespace, settings and snippet name as phpThumbOf, so after it's installed any code using phpThumbOf will automatically use the new version instead.

Uninstall phpThumbOf before installing pThumb.

(You don't have to uninstall phpThumbOf first, but it makes things less confusing. If you uninstall phpThumbOf later, you'll have to reinstall pThumb.)

At a glance

MODX 3 compatible.

More about MODX 3 support

  • Developer jgrant
  • Latest release June 14, 2014 (12 years ago)
  • First seen in SiteDash June 14, 2014 (12 years ago)
  • License GPLv2
  • MODX support 2.2 – 100.0

Releases 1 indexed release

Changelog
MODX.com

2.3.3-pl

June 14, 2014

12 years ago

<p><b>2.3.3-pl </b>[14.06.2014]</p><ul><li>[<a href="" title="">#23</a>] Fix cache cleaner to delete pngs and gifs from phpthumbof cache (hat tip Ian Brindley)</li></ul><p><b>2.3.2-pl </b>[26.05.2014]</p><ul><li>[<a href="https://github.com/oo12/phpThumbOf/pull/20" title="" rel="nofollow noreferrer noopener" target="_blank">#20</a>] Fix PHP error when running in mgr context (hat tip exside)</li><li>[<a href="https://github.com/oo12/phpThumbOf/pull/20" title="" rel="nofollow noreferrer noopener" target="_blank">#21</a>] Better error messages when input is a directory (hat tip exside)</li><li>Make pThumb cache cleaning more selective</li><li>Update Resizer to 1.0.1-pl</li></ul><p><b>2.3.1-pl </b>[23.03.2014]</p><ul><li>[<a href="https://github.com/oo12/phpThumbOf/issues/18" title="" rel="nofollow noreferrer noopener" target="_blank">#18</a>] Improve support for context settings (http_host and base_url)</li><li>Add options to return image dimensions (toPlaceholder property and dims option)</li><li>Update Resizer to 0.5.1-pl</li><li>Several small bug fixes and improvements</li></ul><p><b>2.3.0-pl </b>[18.01.2014]</p><ul><li>[<a href="https://github.com/oo12/phpThumbOf/issues/3" title="" rel="nofollow noreferrer noopener" target="_blank">#3</a>] Add Amazon S3 support</li><li>Improve naming and cache structure for remote files</li><li>[<a href="https://github.com/oo12/phpThumbOf/issues/17" title="" rel="nofollow noreferrer noopener" target="_blank">#17</a>] Fix file paths when using phpThumb on Windows</li><li>Add a small optimization for phpThumb</li></ul><p><b>2.2.2-pl2 </b>[06.12.2013]</p><ul><li>[<a href="https://github.com/oo12/phpThumbOf/issues/13" title="" rel="nofollow noreferrer noopener" target="_blank">#13</a>] Correct for any inaccurate paths caused by context settings</li><li>[<a href="https://github.com/oo12/phpThumbOf/issues/14" title="" rel="nofollow noreferrer noopener" target="_blank">#14</a>] Fix handling of phpThumb fltr parameter</li><li>[<a href="https://github.com/oo12/phpThumbOf/issues/16" title="" rel="nofollow noreferrer noopener" target="_blank">#16</a>] Fix handling of paths when MODX is running from a subdirectory</li></ul><p><b>2.2.1-pl </b>[13.11.2013]</p><ul><li>[<a href="https://github.com/oo12/phpThumbOf/issues/10" title="" rel="nofollow noreferrer noopener" target="_blank">#10</a>] Fix an incompatibility with the cache manager and PHP &lt; 5.3</li></ul><p><b>2.2.0-pl </b>[10.11.2013]</p><p>Note: v2.2 has a new hash generation algorithm for cache filenames. After you update, cache images will be regenerated on access.</p><ul><li>Improve cache manager plugin; add Clean Level system setting</li><li>Replace jpeg_quality setting with a more flexible global default options setting</li><li>Add several small optimizations for phpThumb</li><li>Improve input filename checking, handling of a corner case with remote images</li><li>Update Resizer to 0.4.1-pl</li><li>[<a href="https://github.com/oo12/phpThumbOf/issues/4" title="" rel="nofollow noreferrer noopener" target="_blank">#4</a>] Try to avert problems when $_SERVER['DOCUMENT_ROOT'] != MODX_BASE_PATH</li><li>[<a href="https://github.com/oo12/phpThumbOf/issues/5" title="" rel="nofollow noreferrer noopener" target="_blank">#5</a>] Honor relevant MODX phpThumb system settings</li><li>[<a href="https://github.com/oo12/phpThumbOf/issues/7" title="" rel="nofollow noreferrer noopener" target="_blank">#7</a>] Change hash generation so thumbnails are specific to phpThumb or Resizer and switching between the two returns a thumbnail generated by that library, without having to clear an existing version from the cache first.</li><li>[<a href="https://github.com/oo12/phpThumbOf/issues/8" title="" rel="nofollow noreferrer noopener" target="_blank">#8</a>] Add the phpthumbof.cache_url setting back</li><li>[<a href="https://github.com/oo12/phpThumbOf/issues/9" title="" rel="nofollow noreferrer noopener" target="_blank">#9</a>] Improve debug message when a thumbnail is already cached</li></ul><p><b>2.1.0-pl2  </b>[06.10.2013]</p><ul><li>Update Resizer to v0.4.0-pl</li></ul><p><b>2.1.0-pl</b></p><ul><li>Add a 'pThumb Cache' option. With this enabled, cached images aren't lumped into one flat directory but put into the cache in subdirectories which mirror part of the original image's path. The hash added to filenames is also much shorter. End result: cleaner, more semantic and SEO-friendly image URLs. See the <a href="https://github.com/oo12/phpThumbOf#pthumb-cache" title="" rel="nofollow noreferrer noopener" target="_blank">documentation</a> for more on configuring and enabling it.</li><li>Several performance optimizations, including one when using phpThumb.</li><li>Add pthumb snippet. It's the same as phpthumbof, only shorter to type :-)</li></ul><p><b>2.0.0-pl</b></p><ul><li>Improve handling of paths, URLs and remote images</li><li>[<a href="https://github.com/oo12/phpThumbOf/issues/2" title="" rel="nofollow noreferrer noopener" target="_blank">#2</a>] Fix new_file_permissions setting</li><li>Update Resizer to v0.3.1-pl</li><li>Several minor bug fixes</li></ul><p><b>2.0.0-rc3</b></p><ul><li>Update Resizer to v0.2.0-rc1, now a separate transport package.</li><li>[<a href="https://github.com/oo12/phpThumbOf/issues/1" title="" rel="nofollow noreferrer noopener" target="_blank">#1</a>] Fix protocol-relative URLs for remote images</li><li>Fix &amp;useResizer and &amp;debug properties</li><li>Several minor speed and efficiency improvements</li></ul><p><b>2.0.0-rc2</b></p><ul><li>Add Resizer v0.1, a light-weight modern alternative to phpThumb. Resizer is built on <a href="https://github.com/avalanche123/Imagine" title="" rel="nofollow noreferrer noopener" target="_blank">Imagine</a>, supports the Gmagick, Imagick and GD extensions and is considerably faster than phpThumb for scaling/cropping operations. Plus all the ZC options now work with GD. Enable in System Settings. Requires PHP 5.3 or higher.</li><li>Fix a PHP warning the phpThumbOfCacheManager plugin was throwing.</li></ul><p><b>2.0.0-rc1 </b></p><ul><li>Major refactor for improved efficiency, especially when used multiple times on a page or when an image is already cached.</li><li>Remove Amazon S3 support. I don't use or know much about this and rather than release completely untested and possibly broken code, I took it out.  If you'd like it added back and are interested in helping, please get in touch.</li><li>Improve remote image handling. Originals are now downloaded to the cache to greatly speed up future access.</li><li>Improve debugging output, including easy access to the phpThumb debug messages created when a thumbnail is generated (new &amp;debug property for phpThumbOf).</li></ul><p><b>1.0.0-beta2</b></p><ul><li>Add resource id # to error log message to make finding problem images easier</li></ul><p><b>1.0.0-beta1</b></p><p>Initial version.  pThumb addresses the following open phpThumbOf issues:</p><ul><li>[<a href="https://github.com/splittingred/phpThumbOf/issues/37" rel="nofollow noreferrer noopener" target="_blank">#37</a>] Add a phpthumbof.jpeg_quality global default JPEG quality setting</li><li>[<a href="https://github.com/splittingred/phpThumbOf/pull/46" rel="nofollow noreferrer noopener" target="_blank">#46</a>] add phpthumbof.check_mod_time option to refresh the cached image if the original has been modified</li><li>[<a href="https://github.com/splittingred/phpThumbOf/issues/44" rel="nofollow noreferrer noopener" target="_blank">#44</a>] [<a href="https://github.com/splittingred/phpThumbOf/issues/49" rel="nofollow noreferrer noopener" target="_blank">#49</a>] Prevent generation of identical images when the same image is used in multiple resources</li><li>[<a href="https://github.com/splittingred/phpThumbOf/pull/48" rel="nofollow noreferrer noopener" target="_blank">#48</a>] [<a href="https://github.com/splittingred/phpThumbOf/issues/49" rel="nofollow noreferrer noopener" target="_blank">#49</a>] Fix duplication of images with identical names in different directories</li><li>[<a href="https://github.com/splittingred/phpThumbOf/pull/47" rel="nofollow noreferrer noopener" target="_blank">#47</a>] Exit quickly and silently when called with no file name</li><li>[<a href="https://github.com/splittingred/phpThumbOf/issues/52" rel="nofollow noreferrer noopener" target="_blank">#52</a>] Make input file name handling more robust, particularly when MODX is install in a subdirectory</li><li>[<a href="https://github.com/splittingred/phpThumbOf/issues/53" rel="nofollow noreferrer noopener" target="_blank">#53</a>] Trim extension properly</li><li>[<a href="https://github.com/splittingred/phpThumbOf/issues/54" rel="nofollow noreferrer noopener" target="_blank">#54</a>] [<a href="https://github.com/splittingred/phpThumbOf/pull/50" rel="nofollow noreferrer noopener" target="_blank">#50</a>] Fix cache cleaning</li></ul>

We've also seen 14 unverified versions of pThumb in use, but don't list those as we've been unable of confirming they are official releases from an official source.