dlcs / iiif-presentation

Allows for the creation and management of IIIF manifests
MIT License
0 stars 0 forks source link

`width` and `height` fields are incorrectly included with manifest `service` fields on flat URL GET #154

Open griffri opened 1 week ago

griffri commented 1 week ago

When requesting a manifest via its flat URL, the returned service will contain width and height fields that shouldn't be there. Example:

"service": [
       {
             "id": "https://digirati.io/images/manifests/basic_iiif_manifest",
             "type": "ImageService3",
             "profile": "level1",
             "width": 0,
             "height": 0
        }

These fields aren't seen in the responses for PUT/POST. Likely a deserialisation issue.

donaldgray commented 4 days ago

This should be handled by https://github.com/digirati-co-uk/iiif-net/blob/032c02ccecf405d658cd19a725fc187705d3292f/src/IIIF/IIIF/Serialisation/PrettyIIIFContractResolver.cs#L29