reuters-graphics / bluprint_graphics-kit

SvelteKit rig for graphics and newsapps
https://reuters-graphics.github.io/docs_graphics-kit/
21 stars 3 forks source link

Allow packaging preview image up with interactive embeds #50

Closed hobbes7878 closed 2 years ago

hobbes7878 commented 2 years ago

Would need to package a _gfxpreview.{png|jpg} at the root of the interactive edition.

This will need thinking about where the business logic lives in relation to the publisher client.

hobbes7878 commented 2 years ago

Hello, future Jon. This is past Jon. I already thought of this.

See: https://github.com/reuters-graphics/graphics-kit-publisher/blob/master/src/pack/makePreviewImages/index.js#L46-L58

If the embed page has an og:image metatag, that image will be used to create the preview image in RNGS.

This just needs documenting.