Skip to content

Commit

Permalink
change to Boooean logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ajstanley committed Dec 2, 2023
1 parent c149781 commit b658816
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 b658816

Please sign in to comment.