Skip to content

Commit

Permalink
feat: improved.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamriajul committed Sep 10, 2024
1 parent 0b69815 commit 9dd2298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Thumbhash.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function encode(mixed $input): string
$newWidth = $originalWidth * $scale;
$newHeight = $originalHeight * $scale;
$data = $data->scaleDown($newWidth, $newHeight)->encode()->toString();
} else if ($input instanceof File) {
} elseif ($input instanceof File) {
$data = $input->getContent();
} else {
$data = $data->encode()->toString();
Expand Down

0 comments on commit 9dd2298

Please sign in to comment.