diff --git a/modules/oe_theme_content_publication/config/install/image.style.oe_theme_publication_thumbnail.yml b/modules/oe_theme_content_publication/config/install/image.style.oe_theme_publication_thumbnail.yml index e2a904928..e2ce27ba8 100644 --- a/modules/oe_theme_content_publication/config/install/image.style.oe_theme_publication_thumbnail.yml +++ b/modules/oe_theme_content_publication/config/install/image.style.oe_theme_publication_thumbnail.yml @@ -4,11 +4,12 @@ dependencies: { } name: oe_theme_publication_thumbnail label: 'Publication thumbnail' effects: - 44898002-78b0-4133-acb6-c08d5c208e01: - uuid: 44898002-78b0-4133-acb6-c08d5c208e01 - id: image_scale + e3147a94-c49f-4d60-8bf4-dc8c21431d77: + uuid: e3147a94-c49f-4d60-8bf4-dc8c21431d77 + id: retina_image_scale weight: 1 data: - width: 192 - height: 192 + width: 600 + height: 400 upscale: false + multiplier: 2 diff --git a/modules/oe_theme_content_publication/oe_theme_content_publication.post_update.php b/modules/oe_theme_content_publication/oe_theme_content_publication.post_update.php index 8eb7b866a..727312de7 100644 --- a/modules/oe_theme_content_publication/oe_theme_content_publication.post_update.php +++ b/modules/oe_theme_content_publication/oe_theme_content_publication.post_update.php @@ -222,3 +222,26 @@ function oe_theme_content_publication_post_update_30001(): void { $display->save(); } } + +/** + * Update Publication thumbnail image style. + */ +function oe_theme_content_publication_post_update_00011(): void { + $image_style = ImageStyle::load('oe_theme_publication_thumbnail'); + if (!$image_style) { + return; + } + $effect = $image_style->getEffect('44898002-78b0-4133-acb6-c08d5c208e01'); + if ($effect) { + $image_style->deleteImageEffect($effect); + } + $image_style->addImageEffect([ + 'id' => 'retina_image_scale', + 'weight' => 1, + 'data' => [ + 'width' => 600, + 'height' => 400, + ], + ]); + $image_style->save(); +}