All Projects → justbetter → magento2-image-optimizer

justbetter / magento2-image-optimizer

Licence: MIT license
This Magento 2 module is a wrapper based on the package https://github.com/spatie/image-optimizer

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to magento2-image-optimizer

module-blog-comments-recaptcha
module-blog-comments-recaptcha
Stars: ✭ 17 (-56.41%)
Mutual labels:  magento2, magento2-extension
elasticsuite-for-retailer
Smile ElasticSuite for Retailers - Magento2 toolkit for Retailers : Store Locator, Availability and Prices per store, etc...
Stars: ✭ 18 (-53.85%)
Mutual labels:  magento2, magento2-extension
magento2-inventory-log
Magento 2 - Inventory Log by KiwiCommerce
Stars: ✭ 33 (-15.38%)
Mutual labels:  magento2, magento2-extension
module-wysiwyg-advanced
Extend TinyMCE 4 & 5 tools in Magento 2
Stars: ✭ 60 (+53.85%)
Mutual labels:  magento2, magento2-extension
customer-ajax-login
Free magento 2 extension for Popup and AJAX based Login and Sign Up | Manish Joy
Stars: ✭ 14 (-64.1%)
Mutual labels:  magento2, magento2-extension
magento2-sign-in-with-phone-number
This extension allow your customers to login to your Magento store using their phone number.
Stars: ✭ 42 (+7.69%)
Mutual labels:  magento2, magento2-extension
bestsellers-sorting-m2
Bestsellers sorting of products in categories for Magento 2
Stars: ✭ 24 (-38.46%)
Mutual labels:  magento2, magento2-extension
magento2-custom-shipping
Custom Shipping Module for Magento 2
Stars: ✭ 64 (+64.1%)
Mutual labels:  magento2, magento2-extension
stripe
Stripe integration with Magento 2
Stars: ✭ 58 (+48.72%)
Mutual labels:  magento2, magento2-extension
magento-2-mega-menu
Mageno 2 Mega Menu (Magicmenu) helps you create neat and smart navigation menus to display the main categories on your website.
Stars: ✭ 33 (-15.38%)
Mutual labels:  magento2, magento2-extension
magento2-regions-manager
Manage regions in magento2 addresses, regions manager in magento 2
Stars: ✭ 34 (-12.82%)
Mutual labels:  magento2, magento2-extension
magento2-extrafee
This module is used to add extra fee to order. Show added extrafee in order, invoice and creditmemo.
Stars: ✭ 41 (+5.13%)
Mutual labels:  magento2, magento2-extension
magento-module-wishlist-api
Adds an API to interact with the Magento2 wishlist.
Stars: ✭ 17 (-56.41%)
Mutual labels:  magento2, magento2-extension
module-catalog
Fixes for some known Magento 2 issues in Catalog
Stars: ✭ 23 (-41.03%)
Mutual labels:  magento2, magento2-extension
clean-admin-menu
Magento 2 Extension to cleanup admin menu and Store > Configuration area by arranging third party extension items.
Stars: ✭ 101 (+158.97%)
Mutual labels:  magento2, magento2-extension
magento2-pimcore-bridge
Magento 2 module for Pimcore integration.
Stars: ✭ 28 (-28.21%)
Mutual labels:  magento2, magento2-extension
m2.SmartCategory
Magento2. Extension Smart Category rules dynamically change the product selection according to a set of conditions.
Stars: ✭ 78 (+100%)
Mutual labels:  magento2, magento2-extension
module-blog-sample-data
Sample data for Magento 2 blog extension
Stars: ✭ 15 (-61.54%)
Mutual labels:  magento2, magento2-extension
DiscountCodeUrl
Magento 2 module that applies a discount code automatically via URL
Stars: ✭ 33 (-15.38%)
Mutual labels:  magento2, magento2-extension
module-geoip
Detect Country by IP in Magento 2
Stars: ✭ 51 (+30.77%)
Mutual labels:  magento2, magento2-extension

Magento 2 Image Optimizer

This Magento 2 module is a wrapper based on the package Spatie Image optimizer.

Installation

  • composer require justbetter/magento2-image-optimizer
  • bin/magento module:enable JustBetter_ImageOptimizer
  • bin/magento setup:upgrade && bin/magento setup:static-content:deploy

Optimize all images in console

  • Run bin/magento justbetter:imageoptimizer:optimizeall to resize all images in the media folder.
  • Additional parameters (will overwrite any option in the magento config):
    • --jpg_compression="85"
    • --jpg_strip_all="1"
    • --jpg_all_progressive="0"
    • --png_quality_min_max="10-15"
    • --png_interlace="0"
    • --png_optimization_level="8"

Optimization tools

The package will use these optimizers if they are present on your system:

Here's how to install all the optimizers on Ubuntu:

sudo apt-get install jpegoptim
sudo apt-get install optipng
sudo apt-get install pngquant
sudo npm install -g svgo
sudo apt-get install gifsicle

And here's how to install the binaries on MacOS (using Homebrew):

brew install jpegoptim
brew install optipng
brew install pngquant
brew install svgo
brew install gifsicle

Configuration

  • Options for the module are defined in the backend under Stores > Configuration > JustBetter > Image optimizer configuration.
  • Possible options:
    • Log the compression in the system.log
    • Change compression of jpg files
    • Change compression of png files

Compatibility

The module is tested on magento version 2.2.x with Spatie image optimizer version 1.0.x

Ideas, bugs or suggestions?

Please create a issue or a pull request.

Todo

  • Configurable options for compression
  • Compress all library images in console command

About us

We’re a innovative development agency from The Netherlands building awesome websites, webshops and web applications with Laravel and Magento. Check out our website justbetter.nl and our open source projects.

License

MIT


JustBetter logo

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].