Compress images using the ImageOptim API
Modules that perform some function related to media such as photos and audio/video.
Close to stable, but users are advised to be cautious and test thoroughly.*
|Date Added||March 24, 2018|
|Last Updated||April 13, 2018|
This module's files should be placed in /site/modules/ImageOptim/
How to install or uninstall modules
This ProcessWire module is a wrapper around ImageOptim, a service that compresses and optimizes images in the cloud. ImageOptim currently handles JPG, PNG and GIF files.
Install the module like any other ProcessWire module, by either copying the folder into your
/site/modules/ directory or installing it via the admin.
To compress images, you first need to sign up for an ImageOptim account. They offer a free trial.
If you already have an account, you can find your username in the ImageOptim dashboard.
Images can be optimized by calling the
optimize() method on any image. The module also has an automatic mode that optimizes all image variations after resizing. This is the recommended way to use this module since it leaves the original image uncompressed, but optimizes all derivative images.
For detailed usage instructions and all API parameters, see USAGE.md
The compression level can be set globally. Alternatively, compression settings can be set per filetype, e.g. medium quality for JPEGs and low quality for PNGs. For details, see the module configuration screen.
Optimized files are renamed:
*-optim.jpg. This suffix can be configured in the module settings.
Note that in automatic mode, files are not renamed but swapped in place.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
(See included LICENSE file for full license text.)
No comments yet. Be the first to post!
Your e-mail is kept confidential and not included with your comment. Website is optional.
- Admin Helpers
- Core Modules
- Development Tools
- Field Types
- File Validator
- Input Fields
- Language Modules
- Language Packs
- Markup Generation
- Premium Modules
- Process Modules
- Proof of Concept
- Site Profiles
- Social, Feeds, Services
- Text Formatters
- Other Modules
- Users and Access
*Use modules at your own risk. There are no guarantees or warranties. It is recommended that you backup your site and database before installing new modules.