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 Dec 4, 2023
1 parent 4404dff commit 28174c3
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 28174c3

Please sign in to comment.