0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test
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
..
functional Add ghost-backup client to trigger export (#8911) 2017-08-22 11:15:40 +01:00
integration 🐛 Fixed only save imported post ids if amp field is empty (#8967) 2017-09-04 09:48:56 +02:00
unit Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
utils 🐛 Fixed only save imported post ids if amp field is empty (#8967) 2017-09-04 09:48:56 +02:00
.jshintrc Remove jshint rules that are no longer supported 2015-01-23 21:00:37 +00:00