Ghost/core/server/lib
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
..
common Fixed import paths for errors and logging modules 2020-06-12 09:09:46 +01:00
fs Removed format-csv module in favor of papaparse 2020-06-09 15:23:15 +12:00
image Fixed no-shadow linter warnings in image-size.js 2020-06-16 12:36:55 +01:00
promise Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
security Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
constants.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
ghost-version.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
mobiledoc.js Added mobiledoc transform to populate missing image sizes on forced re-render (#11924) 2020-06-17 13:12:32 +01:00
request-external.js Reverted to previous user-agent for bookmark and oembed requests 2020-06-15 16:02:04 +01:00
request.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00