MyBB Group

Full Version: Image Auto-Resizer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Image Auto-Resizer
Automatically resize image attachments to save disk space
Compatibility
  • MyBB 1.8.x.
Features
  • Auto-resizes each image upon its upload as an attachment.
  • A Recount & Rebuild tool to auto-resize pre-existing image attachments.
  • Maximum height and width can be stipulated in the plugin's settings.
Potential and Planned Features
  • Auto-optimise/compress images to further reduce size.
  • Automatically add a watermark to images.
  • Settings to stipulate affected/ignored forums.
  • Settings to stipulate affected/ignored usergroups.
  • An option to auto-generate different image sizes and automatically support the "srcset" img tag attribute.
Installation
  1. Download the zip archive (see below).
  2. Extract its files.
  3. Copy (recursively) the files under "root" into your forum's root.
  4. Install+activate via the ACP's Plugins page.
  5. Configure the plugin in the ACP under Settings -> Plugin Settings -> Image Auto-Resizer.
  6. (Optionally, but recommended) Resize pre-existing image attachments via the ACP by clicking "Go" beside Tools & Maintenance -> Recount & Rebuild -> Resize Uploaded Images.
Licence
  • GPL3.
GitHub Repository Link MyBB Extend Page Link (Download Here)
Version 1.0.3 has been released, with the following new feature:
  • Where supported, eliminates unintended image rotation on resize due to "orientation" EXIF data being lost.
Version 1.0.4 has been released, with the new feature and fix:
  • Bugfix: The file size bug introduced in v1.0.3 has been fixed. This bug led to issues with the display of images via attachment.php (partial rendering; failed downloads). Corrective code has been added so that these issues are no longer experienced for already-uploaded images too.
  • The support for auto-orientation has been improved so that it implements the full set of eight possible Exif orientation types.
Thanks to the report and testing of HLFadmin, version 1.0.5 has been released:
  • Bugfix: when a file was missing in the filesystem, the corrective for the bug in v1.0.3 was causing errors to be generated. (An alternative to upgrading from v1.0.4 to v1.0.5 so as to fix this is to use the Find Orphaned Attachments functionality of the ACP to remove the database entries for any missing files).