0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server/data
Aileen Nowak eef7932e94 Refactor: fetch image dimensions from local file storage (#8900)
refs #8868

- Removed image-size in blog logo fn for meta data and made it synchronous
- Renamed `image-size-from-url.js` to `image-size.js` (incl. the test)
- Added second fn `getImageSizeFromFilePath` that reads from local file storage
- Added guard in `getImageSizeFromUrl` that checks if the image should be on local file storage and uses the new fn then instead
- Added a fn `fetchDimensionsFromBuffer` that takes the file buffer and returns an `imageObject` with dimensions.
- Added a new utils.js in `adapters/storage` for getting the file storage path
2017-09-05 14:13:22 +02:00
..
db 🐛 Fix ghost update with migrations (#8810) 2017-08-01 17:27:13 +04:00
export 🐛 Fix ghost update with migrations (#8810) 2017-08-01 17:27:13 +04:00
importer 🐛 Fixed only save imported post ids if amp field is empty (#8967) 2017-09-04 09:48:56 +02:00
meta Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
migrations Fix lint error 2017-08-22 14:06:36 +01:00
schema Add ghost-backup client to trigger export (#8911) 2017-08-22 11:15:40 +01:00
slack 📖 replace any support.ghost.org link (#8555) 2017-06-08 20:34:20 +01:00
validation 🔥 🎨 Themes & settings misc cleanup (#8061) 2017-02-27 23:30:49 +01:00
xml 🦄 Channels: Stored config in res.locals not req (#8884) 2017-08-14 10:21:24 +07:00
timezones.json