Skip to content

Commit

Permalink
add pick color
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 20, 2025
1 parent d368bc9 commit 095226f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Drivers/Vips/VipsDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,6 @@ public function pickColor(int $x, int $y, ColorFormat $colorFormat): mixed
{
$colors = $this->image->getpoint($x, $y);

// set alpha if it is not set
$colors[3] ??= 1.0;

$color = (new VipsColor())->initFromArray($colors);

return $color->format($colorFormat);
Expand Down

0 comments on commit 095226f

Please sign in to comment.