Install
Works with Drupal: ^9.2Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This release provides update of dependencies, cleanup of deprecated code, and drops support for Drupal 8.
The module now also supports PHP 8.1, albeit one of its dependencies, pel/pel, is still using PHP deprecated functions as of its current release, 0.9.10.
A 'Rotate' effect and operations for GD and Imagemagick, alternative to Drupal core's, are introduced here. This code addresses most of the open core issues with image rotation (see #3240390: [policy, no patch] Move image rotation code from core into contrib). Plus, it allows alpha channel in background color, defining a fallback color when full transparent background is not supported by the image format (e.g. JPEG), and pseudorandom rotation of the image depending on the source URI so that <img>
tags can bear defined height and width attributes.
A Drush command is also provided to help converting core's image 'rotate' effects instances in Image Styles (and viceversa if needed).
Type $ drush image-effects:convert-rotate
to get a list of Image Styles to be converted and select those to convert.
More options are available, also for batch execution. Type $ drush image-effects:convert-rotate --help
to get more information.
Sample fonts removed from the package
Linux Libertine and Biolinum fonts were previously included, for testing purposes, in the module's tests/fonts
directory. Now they have been removed, in favour of getting them via Composer at testing time.
If for any reason you were relying on these fonts, you can still access them by requiring them and the Vendor Stream Wrapper module via Composer:
$ composer require drupal/vendor_stream_wrapper:^2 fileeye/linuxlibertine-fonts:^5.3
then, where you were indicating a font like e.g.
modules/contrib/image_effects/tests/fonts/LinLibertineTTF_5.3.0_2012_07_02/LinLibertine_Rah.ttf
you can now change the path to use a vendor://
URI
vendor://fileeye/linuxlibertine-fonts/LinLibertine_Rah.ttf
Requirements
- The module MUST be downloaded or updated using Composer, see Download contributed modules and themes using Composer. This ensures that all dependency modules get downloaded as well.
- Drupal 9.2.0 and higher
Installing or updating
- Install with Composer:
$ composer require 'drupal/image_effects:^3.2'
or update$ composer update -W drupal/image_effects
- Ensure to run the database updates.
Known issues
- One dependency, pel/pel, is still using PHP deprecated functions as of its current release, 0.9.10
- JQuery Colorpicker for color selection does not work, #3246510: JQuery Colorpicker color selector does not work
Changes
- Bump file_mdm to ^2.2
- Issue #3253243 by mondrake: Use fileeye/linuxlibertine-fonts for testing with fonts
- Issue #3248030 by mondrake: Add a drush command to convert core's 'Rotate' effect in image styles to Image Effects' one
- Issue #3251564 by mondrake: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated
- Issue #3153283 by beatrizrodrigues, gena.io: Replace assertions involving calls to is_resource() with assertIsResource()
- Issue #3250510 by mondrake: Cleanup deprecations prior to Drupal 9.2
- Issue #3250503 by mondrake: Branch tests fail
- Issue #3246425 by mondrake: Bump minimum supported Drupal core version to 9.2
- Issue #3153754 by gena.io: Replace assertions involving calls to is_dir with assertDirectoryExists()/assertDirectoryNotExists()
- Rename @group Image Effects to @group image_effects
- Issue #3246867: Introduce 'Rotate' effect and operations, alternative to Drupal core's
- Issue #3240444: PHP 8.1 support
- Issue #3107442 by mondrake: Re-add drupal/jquery_colorpicker in req-dev and tests once a D9 version is available
- Issue #3194475 by mondrake: Coder checks fail awfully