yalelibrary / YUL-DC

Preliminary issue tracking for Yale University Libraries Digital Collections project
3 stars 0 forks source link

Increase size of image in OpenGraph #1249

Closed mikeapp closed 2 years ago

mikeapp commented 3 years ago

Story

In the Opengraph data implemented in #1223 we included the default thumbnail, which is size !200,200. The images look grainy in the opengraph.xyz test site.

Also we should supply the og:image:width and og:image:height fields.

Implementation Note: Cantaloupe seems to round down if the resutling pixel dimension is .5. E.g., https://collections.library.yale.edu/iiif/2/17359562/full/1275,/0/default.jpg?t=1645652802551 Also see https://iiif.io/api/image/2.1/#a-implementation-notes

Acceptance

fordmadox commented 2 years ago

Just a note that I'd second an increase in the size of the representative image. There's also the option of adding two more fields to specify the exact og:image:height and og:image:width. Can that be calculated?

mikeapp commented 2 years ago

Recommendation for 1200x630 pixels: https://simplified.co/blog/design-hacks/open-graph-image-everything-you-need-to-know/

mikeapp commented 2 years ago

We don't have height/width indexed for now, so we'll try first with the larger image but no explicit height/width tags.

FCRodriguez7 commented 2 years ago

https://github.com/yalelibrary/yul-dc-management/pull/954

K8Sewell commented 2 years ago

https://github.com/yalelibrary/yul-dc-blacklight/pull/771

martinlovell commented 2 years ago

https://github.com/yalelibrary/yul-dc-blacklight/pull/773

FCRodriguez7 commented 2 years ago

v1.60.11