All Projects → staempfli → Magento2 Module Image Resizer

staempfli / Magento2 Module Image Resizer

Magento 2 Module to add simple image resizing capabilities in all blocks and .phtml templates

Projects that are alternatives of or similar to Magento2 Module Image Resizer

Dotmailer Magento2 Extension
The official Engagement Cloud for Magento2 extension
Stars: ✭ 33 (-62.07%)
Mutual labels:  magento2, magento2-extension
Magento2 Import Export Sample Files
Default Magento 2 CE import / export CSV files & sample files for Firebear Improved Import / Export extension
Stars: ✭ 68 (-21.84%)
Mutual labels:  magento2, magento2-extension
Magento2 Module Mailcatcher
Magento 2 Module to catch, log and redirect emails on Local and Dev Servers
Stars: ✭ 14 (-83.91%)
Mutual labels:  magento2, magento2-extension
Magento2 Frontools
Set of front-end tools for Magento 2 based on Gulp.js
Stars: ✭ 416 (+378.16%)
Mutual labels:  magento2, magento2-extension
Magento2 Faq
This module adds an easy way to use FAQ Section to your Magento store with jQuery Accordion. In this module, admin can add and update FAQ. Admin can also create FAQ group with group icon.
Stars: ✭ 43 (-50.57%)
Mutual labels:  magento2, magento2-extension
Magestudy
Magento 2 extension samples
Stars: ✭ 55 (-36.78%)
Mutual labels:  magento2, magento2-extension
Storecodebodyclass
🏪 This Magento 2 Plugin adds the store & website code to the body class
Stars: ✭ 28 (-67.82%)
Mutual labels:  magento2, magento2-extension
m2.Breadcrumbs
Magento2. Extension add breadcrumbs to pages in Magento2 that by default do not have breadcrumbs.
Stars: ✭ 17 (-80.46%)
Mutual labels:  magento2, magento2-extension
Magento2 Google Address Lookup
Provides an address lookup service on a Magento 2 store powered by the Google Places API
Stars: ✭ 46 (-47.13%)
Mutual labels:  magento2, magento2-extension
Avs scopehint2
Magento 2 module for displaying additional information in configuration
Stars: ✭ 79 (-9.2%)
Mutual labels:  magento2, magento2-extension
Module Rocketjavascript
Stars: ✭ 37 (-57.47%)
Mutual labels:  magento2, magento2-extension
Magento2 Plugin
Speed up your Magento 2 webshop. Optimize your JPEG and PNG images automatically with TinyPNG.
Stars: ✭ 38 (-56.32%)
Mutual labels:  magento2, magento2-extension
Cleancheckout
A drop-in replacement for the Magento 2 checkout.
Stars: ✭ 280 (+221.84%)
Mutual labels:  magento2, magento2-extension
Magento2 Easy Template Path Hints
Magento 2 Easy Template Path Hints
Stars: ✭ 36 (-58.62%)
Mutual labels:  magento2, magento2-extension
magento2-webappmanifest
A Magento 2 extension that adds a Web App Manifest to the store.
Stars: ✭ 19 (-78.16%)
Mutual labels:  magento2, magento2-extension
Magento2 Buynow
This module add "BuyNow" button on product view page and product list page to process directly checkout.
Stars: ✭ 55 (-36.78%)
Mutual labels:  magento2, magento2-extension
magento-2-layered-navigation
Magento 2 Layered Navigation extension Free optimizes the navigation process, redirects users to product catalog pages, and makes finding products easier
Stars: ✭ 16 (-81.61%)
Mutual labels:  magento2, magento2-extension
magento2-auto-instagram-post
Magento 2 extension Auto Instagram Post allows you add your products immediately to Instagram after publishing it on Magento site, share your thoughts, product information, brand news and latest to your friends by an action, mass action or schedule a post by cron jobs
Stars: ✭ 30 (-65.52%)
Mutual labels:  magento2, magento2-extension
Magento2 Form Field Manager
Customer and Address Form Fields Manager for Magento2
Stars: ✭ 21 (-75.86%)
Mutual labels:  magento2, magento2-extension
Magento2 Custom Shipping Rate
Create your own Custom Shipping rates for admin order or a predefined sets of shipping methods for frontend customers.
Stars: ✭ 76 (-12.64%)
Mutual labels:  magento2, magento2-extension

Magento 2 Image Resizer

Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development.

Magento 2 Module to add simple image resizing capabilities in all blocks and .phtml templates

Installation

$ composer require "staempfli/magento2-module-image-resizer":"~2.0"

Usage

imageResizer is automatically available in all frontend Blocks. You can resize your images just calling a method:

/** @var \Staempfli\ImageResizer\Model\Resizer $imageResizer */
$imageResizer = $block->getImageResizer();
$resizedImageUrl = $imageResizer->resizeAndGetUrl(<originalImageUrl>, $width, $height, [$resizeSettings]); 

You can do that directly on the .phtml or in your custom Block.

Cache

Resized images are saved in cache to improve performance. That way, if an image was already resized, we just use the one in cache.

If you need to, you can clear the resized images cache on the Admin Cache Management

Admin Clear Resized Images Cache

Prerequisites

  • PHP >= 7.0.*
  • Magento >= 2.1.*
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].