0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/test/unit/utils
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
..
blog-icon_spec.js Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
cached-image-size-from-url_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
image-size_spec.js Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
make-absolute-urls_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
mobiledoc-converter_spec.js replace custom showdown fork with markdown-it (#8451) 2017-05-15 18:48:14 +02:00
packages_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
read-csv_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
tokens_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
url_spec.js 🐛 Remove trailing slash for {{@blog.url}} (#8596) 2017-06-19 16:11:53 +02:00
zip-folder_spec.js 🐛 🔗 resolve symlinks before building zip (#8780) 2017-07-31 11:48:00 +04:00