- Issue created by @catch
- ๐บ๐ธUnited States jastraat
Quick clarifying questions on this one:
Should the convert to webp also be added to the default config from the Drupal core image module? (That would include the large, medium, thumbnail, etc styles.)
And is this truly just to add something like the following as an additional entry in the "effects" section of all image.style.*.yml files in core install profiles?
e037ec38-0f1e-425b-90f2-a80e622df793: uuid: e037ec38-0f1e-425b-90f2-a80e622df793 id: image_convert weight: 2 data: extension: webp
- ๐ฌ๐งUnited Kingdom catch
@jastraat yes makes sense to do those here too, I updated the issue title.
- ๐ฎ๐ณIndia prashant.c Dharamshala
Can you provide guidance on where to implement these modifications? Are they intended to be made within the
image.style.[name].yml
files located inside profile config files? For instance, in the case of Umami, would these changes be applied in files such ascore/profiles/demo_umami/config/install/image.style.large_3_2_2x.yml
, as well as other relevant image style configuration files? Thank you. - ๐ฎ๐ณIndia deepak.cms
@catch, I added the WEBP image effect to default styles that comes with Standard Installation from image module.
- ๐ฌ๐งUnited Kingdom catch
@deepak.cms - that looks fine. Can you also apply the same thing to the Umami install profile image styles? It would also be good to use an MR rather than a patch here (Drupal.org is moving away from patches).
- Assigned to deepak.cms
- Status changed to Needs work
12 months ago 3:01pm 15 December 2023 - ๐ฌ๐งUnited Kingdom catch
Sounds good - moving to needs work since there's already some code here.
- Merge request !5831Added WEBP conversion for all image styles of core profiles. โ (Open) created by deepak.cms
- Status changed to Needs review
12 months ago 10:52pm 15 December 2023 - Status changed to Needs work
11 months ago 10:24pm 18 December 2023 - ๐ต๐ชPeru marvil07
CI reports some errors at
ConfigSchemaTest
andResponsiveImageFieldDisplayTest
tests.
Both of them seem to be relevant, so moving to NW.Several of them may be about actually changing the test, that was assuming a different context, like the png string match.
Copying here the relevant output from each of them in CI output.
---- Drupal\KernelTests\Core\Config\ConfigSchemaTest ---- Status Group Filename Line Function -------------------------------------------------------------------------------- Fail Other phpunit-175.xml 0 Drupal\KernelTests\Core\Config\Conf PHPUnit Test failed to complete; Error: PHPUnit 9.6.15 by Sebastian Bergmann and contributors. Testing Drupal\KernelTests\Core\Config\ConfigSchemaTest ..F........ 11 / 11 (100%) Time: 00:12.394, Memory: 4.00 MB There was 1 failure: 1) Drupal\KernelTests\Core\Config\ConfigSchemaTest::testSchemaData Got an array with effects for image.style.large data Failed asserting that actual size 2 matches expected size 1. /builds/issue/drupal-3406267/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:121 /builds/issue/drupal-3406267/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55 /builds/issue/drupal-3406267/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php:360 /builds/issue/drupal-3406267/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 FAILURES! Tests: 11, Assertions: 74, Failures: 1.
---- Drupal\Tests\responsive_image\Functional\ResponsiveImageFieldDisplayTest ---- Status Group Filename Line Function -------------------------------------------------------------------------------- Exception Other phpunit-3.xml 0 Drupal\Tests\responsive_image\Funct PHPUnit Test failed to complete; Error: PHPUnit 9.6.15 by Sebastian Bergmann and contributors. Testing Drupal\Tests\responsive_image\Functional\ResponsiveImageFieldDisplayTest EE....E 7 / 7 (100%) Time: 01:04.705, Memory: 4.00 MB There were 3 errors: 1) Drupal\Tests\responsive_image\Functional\ResponsiveImageFieldDisplayTest::testResponsiveImageFieldFormattersPublic Behat\Mink\Exception\ExpectationException: The string "type="image/png"" was not found anywhere in the HTML response of the current page. /builds/issue/drupal-3406267/vendor/behat/mink/src/WebAssert.php:794 /builds/issue/drupal-3406267/vendor/behat/mink/src/WebAssert.php:324 /builds/issue/drupal-3406267/core/tests/Drupal/Tests/WebAssert.php:540 /builds/issue/drupal-3406267/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php:333 /builds/issue/drupal-3406267/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php:93 /builds/issue/drupal-3406267/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 2) Drupal\Tests\responsive_image\Functional\ResponsiveImageFieldDisplayTest::testResponsiveImageFieldFormattersPrivate Behat\Mink\Exception\ExpectationException: The string "type="image/png"" was not found anywhere in the HTML response of the current page. /builds/issue/drupal-3406267/vendor/behat/mink/src/WebAssert.php:794 /builds/issue/drupal-3406267/vendor/behat/mink/src/WebAssert.php:324 /builds/issue/drupal-3406267/core/tests/Drupal/Tests/WebAssert.php:540 /builds/issue/drupal-3406267/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php:333 /builds/issue/drupal-3406267/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php:103 /builds/issue/drupal-3406267/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 3) Drupal\Tests\responsive_image\Functional\ResponsiveImageFieldDisplayTest::testResponsiveImageFieldFormattersMultipleSources Behat\Mink\Exception\ExpectationException: The pattern /\s+\s+\s+\s+/ was not found anywhere in the HTML response of the page. /builds/issue/drupal-3406267/vendor/behat/mink/src/WebAssert.php:794 /builds/issue/drupal-3406267/vendor/behat/mink/src/WebAssert.php:354 /builds/issue/drupal-3406267/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php:509 /builds/issue/drupal-3406267/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 ERRORS! Tests: 7, Assertions: 187, Errors: 3.
- ๐ฎ๐ณIndia deepak.cms
Hi @marvil07,
I updated the test cases for two image effects in the default styles. Please review it again.
Thanks
- Status changed to Needs review
11 months ago 9:36am 22 December 2023 - Status changed to Needs work
11 months ago 5:32am 24 December 2023 - ๐บ๐ธUnited States smustgrave
Surprised tests passed but donโt believe we should be shipping config with uuids.
- Status changed to Needs review
11 months ago 9:20am 24 December 2023 - ๐ช๐ธSpain nireneko
@smustgrave Checking the current config files (https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/image... and https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/image... for example) the uuids of the image effects are there, I'd say it's ok.
- Status changed to Needs work
11 months ago 4:51pm 5 January 2024 - ๐บ๐ธUnited States smustgrave
Missing some updates
There's an image.style in
media_library
demo_umami/optional
standard profile - ๐ฎ๐ณIndia deepak.cms
Hi @smustgrave,
Updated all image styles. Please review again.
Thanks
- ๐ฌ๐งUnited Kingdom catch
This doesn't need tests, it's just a change to the default config.
- Status changed to Needs review
11 months ago 4:41am 12 January 2024 - Status changed to Needs work
11 months ago 3:08pm 13 January 2024 The Needs Review Queue Bot โ tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- Status changed to Needs review
10 months ago 7:31am 17 January 2024 - Status changed to Needs work
10 months ago 2:26pm 17 January 2024 - First commit to issue fork.
- ๐ท๐บRussia kostyashupenko Omsk
Seems rebase didn't help. After local investigation also no results. No errors on spellcheck. Can you guide me if you will have an ability to fix it - what was a cause of it?
- ๐ท๐บRussia kostyashupenko Omsk
CI reports in spellcheck job is not so informative
- Issue was unassigned.
- Status changed to Needs review
10 months ago 12:02pm 18 January 2024 - ๐ซ๐ทFrance andypost
I started new pipeline and it passed, also extended
core/profiles/standard/tests/src/Functional/StandardTest.php
test for shipped effectsAs the #23 said no reason for test, I still sure standard profile needs at least this small addition
- ๐บ๐ธUnited States smustgrave
https://www.drupal.org/project/drupal/issues/3401988#comment-15402750 ๐ Spell-checking job fails with "Argument list too long" when too many files are changed Active
A workaround was posted here.
- ๐บ๐ธUnited States smustgrave
smustgrave โ changed the visibility of the branch 11.x to hidden.
- Status changed to RTBC
10 months ago 3:43pm 18 January 2024 - ๐บ๐ธUnited States smustgrave
New pipeline seemed to do the trick. Believe all feedback has been addressed
- Status changed to Needs review
9 months ago 1:45am 14 February 2024 - ๐ณ๐ฟNew Zealand quietone
I'm triaging RTBC issues โ . I read the IS and the comments. I didn't find any unanswered questions.
I read the MR and I don't have any questions. I then applied the diff and searched core to ensure that all image styles are updated.
$ find . -iname image.style\* | sed -e "s/.\///" | sort -u > core.out $ git status | grep image.style | awk '{print $2}' | sort -u > mr.out $ diff mr.out core.out 4a5 > core/modules/image/help_topics/image.style.html.twig 13a15,19 > core/profiles/demo_umami/config/install/image.style.scale_crop_7_3_large.yml > core/profiles/demo_umami/config/install/image.style.scale_crop_7_3_medium.yml > core/profiles/demo_umami/config/install/image.style.scale_crop_7_3_small.yml > core/profiles/demo_umami/config/install/image.style.scale_crop_7_3_tiny.yml > core/profiles/demo_umami/config/install/image.style.scale_crop_7_3_wide.yml
Why are these files not changes?
- ๐บ๐ธUnited States smustgrave
@quietone those already contain the code
Example > core/profiles/demo_umami/config/install/image.style.scale_crop_7_3_small.yml
d5eb26a0-f961-4ba4-9f01-94a44440b4fa: uuid: d5eb26a0-f961-4ba4-9f01-94a44440b4fa id: image_convert weight: 2 data: extension: webp
- Status changed to RTBC
9 months ago 2:34pm 14 February 2024 - Status changed to Fixed
9 months ago 3:35pm 14 February 2024 - ๐ฌ๐งUnited Kingdom catch
Added a change record; https://www.drupal.org/node/3421405 โ and committed/pushed to 11.x, thanks!
- ๐ฌ๐งUnited Kingdom longwave UK
Nice work, tagging this as a highlight for the release announcement.
Automatically closed - issue fixed for 2 weeks with no activity.