api-demos icon indicating copy to clipboard operation
api-demos copied to clipboard

Add a script to find and request all image versions in all posts

Open MrSunshyne opened this issue 2 years ago • 0 comments

Why?

This is useful to force ghost to create all image versions for all images, especially when the content is being consumed by a static(SSG) frontend and the frontend requires responsive images to exist.

Ghost only creates the images when they are requested. In certain use-cases, such as SSG frontends, where ghost is no longer accessible after the built frontend is deployed, missing responsive images can be a pain. Instead of manually visiting all pages, in different screen sizes, this script accesses all of them to help ghost generate the images.

MrSunshyne avatar May 04 '23 19:05 MrSunshyne