]> _ Git - cubist_util.git/commitdiff
#7704 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 27 Aug 2025 15:07:56 +0000 (17:07 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 27 Aug 2025 15:07:56 +0000 (17:07 +0200)
src/CommandLine/Poppler.php

index b5cfa0147ad82818bcaec6331c7ab7a4af9f2ac5..c278ff97567cedddadd47fd8e759227a18ae4996 100644 (file)
@@ -24,7 +24,6 @@ class Poppler
             'background' => true,
         );
 
-
         $options = array_merge($defaultOptions, $options);
         $options['factor'] = $options['resolution'] / self::RESOLUTION_FACTOR;
         return $options;
@@ -121,6 +120,7 @@ class Poppler
     public static function extractAreaFilehash($file, $page, $rect, $options): string
     {
 
+        $options = static::_normalizeExtractAreaOptions($options);
         $f = Files::hashFileAttributes($file) . '||' . '++' . json_encode($rect) . '**' . json_encode($options) . '||' . $page . '!!';
         $hash = hash('sha256', $f);
         error_log($f . '//' . $hash);