Ghost/core/server/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
..
packages 🎨 gscan 1.1.0 & optimisations 2017-06-06 13:07:50 +07:00
asset-hash.js 🐛 Refresh assetHash on theme override (#7430) 2016-09-23 13:05:44 +02:00
blog-icon.js Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
cached-image-size-from-url.js Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
ghost-version.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
gravatar.js 🎨 😎 config env usages (#7929) 2017-02-03 18:25:39 +00:00
image-size.js Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
index.js 🎨 add cache control configurations into the default config 2017-05-31 16:12:11 +01:00
labs.js 🐛 Added 409 DisabledFeatureError for labs features (#8890) 2017-08-15 10:50:36 +02:00
make-absolute-urls.js 🎨 source out url utils from ConfigManager (#7347) 2016-09-20 15:59:34 +01:00
markdown-converter.js replace custom showdown fork with markdown-it (#8451) 2017-05-15 18:48:14 +02:00
mobiledoc-converter.js 🐛 fix incorrect rendering of non-closing tags (eg. <br></br>) (#8749) 2017-07-25 15:50:33 +04:00
pipeline.js Pipeline util tests, clean & fix 2015-11-03 09:14:44 +00:00
read-csv.js Add CSV parser for csv read utility 2016-06-07 10:47:56 +01:00
remove-open-redirect-from-url.js Remove open redirect by removing double slashes from redirects (#7247) 2016-08-23 13:47:59 +02:00
sequence.js post-scheduling 2016-06-14 10:52:13 +02:00
social-urls.js Add helpers for facebook & twitter urls 2016-05-17 16:39:58 +01:00
tokens.js 🎨 remove token logic from user model (#7622) 2016-11-07 11:18:50 +00:00
url.js Primary tag (#8669) 2017-07-31 13:00:03 +04:00
visibility.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
zip-folder.js 🐛 🔗 resolve symlinks before building zip (#8780) 2017-07-31 11:48:00 +04:00