Ghost/core/shared
Kevin Ansfield f27282bc3f
Added mobiledoc transform to populate missing image sizes on forced re-render (#11924)
no issue

- adds `populateImageSizes()` to our mobiledoc lib module
  - uses `image-size` lib to speed up reading of image dimensions
  - for local images, use storage adapter with same guards as used by `handle-image-sizes` middleware so that we don't insert srcsets for images that aren't transformable
  - for unsplash images, remove any width and crop params from the url so it points to the full-size image
- use `populateImageSizes(mobiledoc)` to modify post model's mobiledoc when re-rendering
2020-06-17 13:12:32 +01:00
..
config Added imageOptimization:srcsets config to allow disabling of srcset attrs in content 2020-06-15 16:45:36 +01:00
express.js Added Router etc to shared/express + use everywhere 2020-05-01 19:32:57 +01:00
logging.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
sentry.js Fixed handling non-Ghost errors in Sentry 2020-06-01 19:01:51 +01:00
url-utils.js Added mobiledoc transform to populate missing image sizes on forced re-render (#11924) 2020-06-17 13:12:32 +01:00