Use the largest thumbnail size in the resource meta file. #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Made
extract-copy-local.js
which is a local copy ofextract-thumbnail.js
fromheadless-static-site
.Tweaked this to request the thumbnail closest to 1080x1080 (recommended for og:image), with a fallback of 256x256 which is what was previously used to populate the meta file.
Exhibition
<meta property="og:image" content="https://dlc.services/thumbs/7/24/14204410-74cc-5796-04f2-a59eeaa8ab44/full/1024,/0/default.jpg"/><meta property="og:image:width" content="1024"/><meta property="og:image:height" content="563"/>
Object
<meta property="og:image" content="https://dlc.services/thumbs/7/18/4045ba8b-2160-40b4-9a4b-ae2235280f3d/full/1024,/0/default.jpg"/><meta property="og:image:width" content="1024"/><meta property="og:image:height" content="683"/>
Publication
<meta property="og:image" content="https://dlc.services/thumbs/7/21/b65dbfcc-4daf-0b7d-86fc-74a126248b03/full/full/0/default.jpg"/><meta property="og:image:width" content="1080"/>