]> _ Git - fluidbook-toolbox.git/commitdiff
wip #7340 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 18 Feb 2025 13:45:28 +0000 (14:45 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 18 Feb 2025 13:45:28 +0000 (14:45 +0100)
app/Models/Traits/PublicationSettings.php

index 7b46ca0d34f63f736359a96f2efa53ccaf5f3d1e..4bf9d006832b1a9cfc2c926f4ea1d805161bc463 100644 (file)
@@ -465,7 +465,14 @@ trait PublicationSettings
                 'png' => 'PNG',
             ],
             'default' => 'jpg',
+            'when' => ['transparentPage' => 0],
         ]);
+
+        $this->addSettingField('JPEGQuality', Integer::class, $this->__('Qualité JPEG'), [
+            'default' => 85,
+            'when' => ['imageFormat' => 'jpg', 'transparentPage' => 0],
+        ]);
+
         $this->addSettingField('maxResolution', SelectFromArray::class, $this->__('Résolution maximale des pages'), [
             'options' => [
                 300 => '300dpi',
@@ -475,9 +482,6 @@ trait PublicationSettings
             ],
             'default' => 300,
         ]);
-        $this->addSettingField('JPEGQuality', Integer::class, $this->__('Qualité JPEG'), [
-            'default' => 85,
-        ]);
     }
 
     protected function _performances()