Install

Works with Drupal: ^9.2

Using Composer to manage Drupal site dependencies

Alternative installation files

Download image_effects-8.x-3.2.tar.gztar.gz 634.2 KB
MD5: 13e8b3416127899f713c9302f6690a8c
SHA-1: a2f59aadd81a24d5d9f44b67568b58d710a9af97
SHA-256: a816b11b78a983da70d3671c05c0fe1135ac706ace11ca80af06e5f942e0d27f
Download image_effects-8.x-3.2.zipzip 776.55 KB
MD5: 74ab9b62e3b26c9108e45cb7307b4c6a
SHA-1: c45e2b9493758183813aac3807a16be5872f0caa
SHA-256: 69f7841c8c7320229db56d508a373647167d0e9514058c9fc6f7939b2f625690

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.


Introducing a Rotate effect

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


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


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
Created by: mondrake
Created on: 19 Dec 2021 at 14:18 UTC
Last updated: 26 Nov 2023 at 17:16 UTC
New features

Other releases