Skip to content

Commit edf7133

Browse files
deluxetomclaude
andcommitted
[Cropperjs] Drop explicit white rotate background
v4's Config::$backgroundColor already defaults to 'ffffff', and rotate(angle, null) falls back to it, so passing 'ffffff' explicitly is redundant. Omitting it keeps the same white-corner output while letting a custom driver_service ImageManager control the fill via its own config. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 72f9563 commit edf7133

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Cropperjs/src/Model/Crop.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function getCroppedThumbnail(int $maxWidth, int $maxHeight, string $forma
6161
$image->scaleDown($maxWidth, $maxHeight);
6262

6363
if (!empty($this->options['rotate'])) {
64-
$image->rotate($this->options['rotate'], 'ffffff');
64+
$image->rotate($this->options['rotate']);
6565
}
6666

6767
return (string) $image->encodeUsingFileExtension($format, quality: $quality);
@@ -77,7 +77,7 @@ public function getCroppedImage(string $format = 'jpg', int $quality = 80): stri
7777
}
7878

7979
if (!empty($this->options['rotate'])) {
80-
$image->rotate($this->options['rotate'], 'ffffff');
80+
$image->rotate($this->options['rotate']);
8181
}
8282

8383
return (string) $image->encodeUsingFileExtension($format, quality: $quality);

0 commit comments

Comments
 (0)