0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server
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
..
adapters Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
api Added field mapping support for members import CSVs 2020-07-02 15:18:39 +12:00
data Fixed migration exiting for single missing setting 2020-06-30 18:38:55 +02:00
lib 🐛 Fixed srcset and sizes attributes being rendered when image resizing unavailable 2020-07-02 18:03:22 +01:00
models Updated serializers/model layer validation using settings type 2020-06-30 17:38:36 +05:30
public
services 🐛 Fixed settings cache being out of sync after migrations (#11987) 2020-07-01 17:16:57 +01:00
translations Updated error messages for member import 2020-07-01 07:23:20 +02:00
views Updated head to only output custom favicons (#11949) 2020-06-30 15:07:08 +01:00
web 🐛 Fixed srcset and sizes attributes being rendered when image resizing unavailable 2020-07-02 18:03:22 +01:00
analytics-events.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
ghost-server.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
index.js 🐛 Fixed settings cache being out of sync after migrations (#11987) 2020-07-01 17:16:57 +01:00
overrides.js
update-check.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00