Skip to content

Commit

Permalink
Change to Boolean logic (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajstanley authored and rosiel committed Apr 2, 2024
1 parent 610c2bc commit 67561ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ protected function getCanvasDimensions(string $iiif_url, FieldItemInterface $ima

// If this is a TIFF AND we don't know the width/height
// see if we can get the image size via PHP's core function.
if ($mime_type === 'image/tiff' && !$width || !$height) {
if ($mime_type === 'image/tiff' && (!$width || !$height)) {
$uri = $image->entity->getFileUri();
$path = $this->fileSystem->realpath($uri);
$image_size = getimagesize($path);
Expand Down

0 comments on commit 67561ff

Please sign in to comment.