Skip to content

Commit

Permalink
[TASK] Add option to define fetch_format
Browse files Browse the repository at this point in the history
  • Loading branch information
dhuf authored and fabarea committed Mar 3, 2023
1 parent 1b78b6e commit 5ff07cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Services/CloudinaryImageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ public function generateOptionsFromSettings(array $settings, bool $enableRespons
$transformation['background'] = $settings['background'];
}

if (isset($settings['fetch_format']) && $settings['fetch_format']) {
$transformation['fetch_format'] = $settings['fetch_format'];
}

$transformations[] = $transformation;

if (!$enableResponsiveBreakpoints) {
Expand Down

0 comments on commit 5ff07cf

Please sign in to comment.