All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Add funding
- Wrong composer dependencies
- Cast string as return type
- Add CSP nonces to inline scripts
- Only re-use limited set of HTML attributes for source-tags #78
- Make sure that HTML attribute values with double-quotes are still working #77
- Compatibility with Magento >=2.4.7-beta3
- Add warning about
Hyva_YireoNextGenImages
because docs are not read - Check for image extension in entire url instead of only at the end #72 @jesperingels
- Remove data-src and data-srcset from original attributes in sources
- Remove all whitespaces in image output
- Fix broken integration tests due to modified constructor
- Add relative-path of source image to target-path if target is cache-folder #62 @rommelfreddy
- Dispatch all-purpose Hyva
gallery-init
event to modify component data - Allow to configure skipped layout handles via DI type of
ShouldModifyOutput
- Fix issue where image is not replaced with
img
tag opening plus newline - Field in admin is
cache_directory_path
instead ofcache_directory
#154 - Quick hack for supporting
/pub/
in URLs
- Make sure only PNG and JPG are being picked up
- Moved Hyva compatibility module features into this module, deprecating the compat mod
- Fixed HTTPS links being reset to HTTP links due to "normalization"
- Simplify normalization without HTTP/HTTPS reset
- Option
convert_css_backgrounds
to convert images in CSS backgrounds as well #25 (@rommelfreddy)
- Fix deprecated dynamic property
- Fix PHP 7.3 issue
- Bump composer requirement to PHP 7.3
- Make image cache path
/media/nextgenimages/
configurable
- Remove duplicate source that matches original image
- Also convert
data-src
when present - Support URLs from multiple Store Views
- Ajax response plugin gets incorrect gallery images #55 @joe-vortex
- Prevent
img
in script from being parsed #133
- Fix for PHP 8.2 deprecated
mb_convert_encoding
#57 @hostep
- Remove loading="lazy" when fetchpriority="high" is present #53 @jesperingels
- Error 'Argument #1 () must not be empty' on PHP 8 #36 @khoimm92
- Don't display image timestamp if no image is there
- Allow for multiple img tags on a row
- Switch from complex regex to easier DOMDocument search
- Issue with integration tests and Monolog 2.7
- Add GitHub Actions composer cacheq
- Normalize base URL as well
- Change html_entity_decode into escaper for PHPCS
- Make sure to keep HTTPS URLs for media intact
- Convert static files into static URLs properly
- Normalized URLs don't match anymore with media URL and static URL (WebP #122)
- Handle URLs starting without protocol (//) in a better way (#34)
- Strip query string from source image URL (@theuargb)
- Make sure non-existing sources don't throw exceptions
- Do not edit gallery JSON when module is disabled
- Fix URL-to-file conversion for URL-decoded URLs
- Respect native lazy loading attribute #29 (@pointia)
- Set sane defaults for all configuration values
- Check if extension is enabled for plugin #30 (@artbambou)
- Beautify console output
- Same WebP image for example.jpg and example.jpeg
- Improve translating static file URLs into filenames
- Add event observer to make sure blocks with non-zero TTL are parsed when FPC is enabled
- Fix issues with Product Swatches
- Various unit tests
- Live testing for better testing
- Moved AJAX plugin for swatches from WebP extension to NextGenImages
- New config option for target directory
- New config option for adding an unique hash for target images
- Implement hash when creating target images
- isNewerThan method is not reached when the converted image already exists (@peteracs)
- Allow file driver interface to be overwritten
- Make sure non-self-breaking sources don't break
- Prevent file check from reading whole file (performance issue)
- Fatal Error on swatches AJAX call
- DummyConvertor with DI preference
- UrlReplacer used only in CorrectImagesInAjaxResponse
- Wrap exceptions so they don't appear in frontend
- Prevent non-existing files from throwing NotFoundException
- Be more helpful when non-existing image is used in convert command
- Make sure UrlConvertor throws error properly (@Quazz)
- Exception was supplied
Phrase
instead of string
- Remove debugging info
- Make sure plugin ConvertAfterImageSave still respects original return value
- Additional debug options for CLI command
- Support for media URL different from base URL (like CDNs)
- Add current store to all methods
- Make sure ConvertorListing works even though no convertor is available
- Hide all other fields if setting "Enabled" is set to 0
- Make sure plugins are off when module is configured to be disabled
- Make sure CLI converts images with their absolute path
- Only convert image URLs matching the Magento base URL [@tdgroot]
- Fix Dummy convertor to prevent compilation error
- New option to try to convert on saving
- Add console command for converting images manually
- Add command to test for URIs quickly
- Update convertor to make second arg optional
- Fix composer version
- Fix word "Logging" in config options
- Enhance debugger with logging option
- Add logging with every exception
- Reimplement
data-src
(PR 51 from theYireo_Webp2
module)
- Add dummy convertor with DI preference
- Replace all WebP deps with NextGenImages deps
- Re-add dep with WebP2 in controller
- Remove deps with WebP2 module
- Add missing Browser class
- Methods to added to ConvertorInterface
- Remove duplicate DI.xml (and add docs for this)
- Initial release together with Yireo WebP2