Skip to content

Commit

Permalink
Merge pull request #85
Browse files Browse the repository at this point in the history
Image magick
  • Loading branch information
emerham authored Feb 7, 2025
2 parents 48f758b + 0e5b765 commit 3ab3635
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/install/system.image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
toolkit: imagemagick
1 change: 1 addition & 0 deletions osu_standard.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ dependencies:
- google_tag
- honeypot
- image_effects
- imagemagick
- layout_builder_blocks
- layout_builder_component_attributes
- layout_builder_operation_link
Expand Down
12 changes: 12 additions & 0 deletions osu_standard.install
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,18 @@ function osu_standard_update_10019(&$sandbox): TranslatableMarkup {
return t("Add Focal Point, Crop module and permissions");
}

/**
* Set up ImageMagick for all sites
*/
function osu_standard_update_10020(&$sandbox): TranslatableMarkup {
osu_standard_install_modules(['imagemagick']);
$image_toolkit = Drupal::service('config.factory')
->getEditable('system.image');
$image_toolkit->set('toolkit', 'imagemagick')->save();
$image_toolkit->save();
return t('ImageMagick installed and configured');
}

/**
* Installs an array of given modules.
*
Expand Down

0 comments on commit 3ab3635

Please # to comment.