Skip to content

IIIF Universal Viewer images not loading in 2.0.11 — MixedMedia.php trailing quote in profile field #186

Description

@frendyardiansyah31

Version: Providence + Pawtucket 2.0.11
PHP: 8.4

Bug 1 — MixedMedia.php line 125 (both providence & pawtucket2)
File: app/lib/Media/IIIFManifests/MixedMedia.php

Trailing " inside the string causes Universal Viewer to fail
parsing the ImageService2 block, resulting in images not rendering
despite the manifest loading successfully.

Bug 2 — Imagick.php setCompressionQuality() type error
File: app/lib/Plugins/Media/Imagick.php line 948

Imagick::setCompressionQuality() receives empty string instead of
int when quality is not set, causing Fatal TypeError on PHP 8.x.

  • $this->handle->setCompressionQuality($this->properties['quality']);
  • $this->handle->setCompressionQuality((int)($this->properties['quality'] ?: 85));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions