Skip to content

Commit 5ff07cf

Browse files
dhuffabarea
authored andcommitted
[TASK] Add option to define fetch_format
1 parent 1b78b6e commit 5ff07cf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Classes/Services/CloudinaryImageService.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ public function generateOptionsFromSettings(array $settings, bool $enableRespons
234234
$transformation['background'] = $settings['background'];
235235
}
236236

237+
if (isset($settings['fetch_format']) && $settings['fetch_format']) {
238+
$transformation['fetch_format'] = $settings['fetch_format'];
239+
}
240+
237241
$transformations[] = $transformation;
238242

239243
if (!$enableResponsiveBreakpoints) {

0 commit comments

Comments
 (0)