pThumb 2.3.3-plReleased Jun 14, 2014 by jgrant
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.Download 631kb (29350 downloads)
A fork of phpThumbOf 1.4.0. pThumb is a lightweight, efficient, and actively maintained replacement for phpThumbOf. It offers most of the functionality of its predecessor while adding new features, fixing bugs, and offering some potentially dramatic speed improvements on sites which use phpThumbOf heavily.
See the GitHub page for more details.
Significant New Features
- Resizer — A leaner, faster alternative to phpThumb for image sizing and cropping. Added in version 2.0.
- pThumb Cache — Cleaner, more semantic and SEO-friendly image URLs. Added in version 2.1.
- Improved Amazon S3 support
- Ability to output image width and height
- Improved cache cleaner plugin
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.)
- [#23] Fix cache cleaner to delete pngs and gifs from phpthumbof cache (hat tip Ian Brindley)
- [#20] Fix PHP error when running in mgr context (hat tip exside)
- [#21] Better error messages when input is a directory (hat tip exside)
- Make pThumb cache cleaning more selective
- Update Resizer to 1.0.1-pl
- [#18] Improve support for context settings (http_host and base_url)
- Add options to return image dimensions (toPlaceholder property and dims option)
- Update Resizer to 0.5.1-pl
- Several small bug fixes and improvements
- [#3] Add Amazon S3 support
- Improve naming and cache structure for remote files
- [#17] Fix file paths when using phpThumb on Windows
- Add a small optimization for phpThumb
- [#13] Correct for any inaccurate paths caused by context settings
- [#14] Fix handling of phpThumb fltr parameter
- [#16] Fix handling of paths when MODX is running from a subdirectory
- [#10] Fix an incompatibility with the cache manager and PHP < 5.3
Note: v2.2 has a new hash generation algorithm for cache filenames. After you update, cache images will be regenerated on access.
- Improve cache manager plugin; add Clean Level system setting
- Replace jpeg_quality setting with a more flexible global default options setting
- Add several small optimizations for phpThumb
- Improve input filename checking, handling of a corner case with remote images
- Update Resizer to 0.4.1-pl
- [#4] Try to avert problems when $_SERVER['DOCUMENT_ROOT'] != MODX_BASE_PATH
- [#5] Honor relevant MODX phpThumb system settings
- [#7] 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.
- [#8] Add the phpthumbof.cache_url setting back
- [#9] Improve debug message when a thumbnail is already cached
- Update Resizer to v0.4.0-pl
- 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 documentation for more on configuring and enabling it.
- Several performance optimizations, including one when using phpThumb.
- Add pthumb snippet. It's the same as phpthumbof, only shorter to type :-)
- Improve handling of paths, URLs and remote images
- [#2] Fix new_file_permissions setting
- Update Resizer to v0.3.1-pl
- Several minor bug fixes
- Update Resizer to v0.2.0-rc1, now a separate transport package.
- [#1] Fix protocol-relative URLs for remote images
- Fix &useResizer and &debug properties
- Several minor speed and efficiency improvements
- Add Resizer v0.1, a light-weight modern alternative to phpThumb. Resizer is built on Imagine, 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.
- Fix a PHP warning the phpThumbOfCacheManager plugin was throwing.
- Major refactor for improved efficiency, especially when used multiple times on a page or when an image is already cached.
- 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.
- Improve remote image handling. Originals are now downloaded to the cache to greatly speed up future access.
- Improve debugging output, including easy access to the phpThumb debug messages created when a thumbnail is generated (new &debug property for phpThumbOf).
- Add resource id # to error log message to make finding problem images easier
Initial version. pThumb addresses the following open phpThumbOf issues:
- [#37] Add a phpthumbof.jpeg_quality global default JPEG quality setting
- [#46] add phpthumbof.check_mod_time option to refresh the cached image if the original has been modified
- [#44] [#49] Prevent generation of identical images when the same image is used in multiple resources
- [#48] [#49] Fix duplication of images with identical names in different directories
- [#47] Exit quickly and silently when called with no file name
- [#52] Make input file name handling more robust, particularly when MODX is install in a subdirectory
- [#53] Trim extension properly
- [#54] [#50] Fix cache cleaning
|14 Versions||1 Contributors||37,796 Downloads|
|2.3.2-pl||May, 26 2014||jgrant||824|
|2.3.1-pl||Mar, 23 2014||jgrant||1,784|
|2.3.0-pl||Jan, 18 2014||jgrant||1,612|
|2.2.2-pl2||Dec, 06 2013||jgrant||705|
|2.2.1-pl||Nov, 13 2013||jgrant||557|
|2.2.0-pl||Nov, 11 2013||jgrant||240|
|2.1.0-pl2||Sep, 24 2013||jgrant||670|
|2.0.0-pl||Sep, 08 2013||jgrant||486|
|2.0.0-rc3||Aug, 27 2013||jgrant||344|
|2.0.0-rc2||Aug, 13 2013||jgrant||338|
|2.0.0-rc1||Jul, 29 2013||jgrant||364|
|1.0.0-beta2||Jul, 03 2013||jgrant||300|
|1.0.0-beta1||Jul, 02 2013||jgrant||231|