Ghost/core/server/lib
Kevin Ansfield e9ae0d9baa 🐛 Fixed srcset and sizes attributes being rendered when image resizing unavailable
closes https://github.com/TryGhost/Ghost/issues/11944

- updates `@tryghost/image-transform` to version that exposes `canTransformFiles()` which checks for `sharp` availibility
- updates `@tryghost/kg-default-cards` to version that accepts a `canTransformImage()` method as an option
- updates our `mobiledoc` lib to pass a `canTransformImage()` function that returns false if sharp is unavailable, the image extension is not supported, or the storage engine in use does not support image transforms
- updates `populateImageSizes` to fetch image sizes when transforms are unavailable as the render/not-render is now handled in the renderer and we don't need to worry about adding size information to the mobiledoc source
2020-07-02 18:03:22 +01:00
..
common Fixed import paths for errors and logging modules 2020-06-12 09:09:46 +01:00
fs/package-json Colocated readCSV util with members input serializer 2020-06-19 18:24:51 +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 🐛 Fixed srcset and sizes attributes being rendered when image resizing unavailable 2020-07-02 18:03:22 +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