Ghost/core/server
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
..
adapters Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
admin API express app routing & middleware improvements (#8883) 2017-08-17 17:52:58 +07:00
api Normalize docs URLs (#8949) 2017-08-31 11:45:59 +02:00
apps Re-instate mobiledoc dom rendering with bypass of SimpleDOM parsing (#8937) 2017-08-31 12:09:02 +02:00
auth Add ghost-backup client to trigger export (#8911) 2017-08-22 11:15:40 +01:00
blog API express app routing & middleware improvements (#8883) 2017-08-17 17:52:58 +07:00
config 🛠 Removed "archive" from reserved slugs (#8928) 2017-08-22 17:21:24 +01:00
controllers/frontend 🐛 Fixed channel context to be based on res.locals (#8910) 2017-08-16 11:06:30 +01:00
data Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
events post-scheduling 2016-06-14 10:52:13 +02:00
helpers 🐛 Downgraded errors to warnings for img_url 2017-08-29 10:31:00 +02:00
mail 🔥 fromaddress support (#8753) 2017-07-27 12:27:38 +04:00
middleware Blog and Admin redirects with trailing slash (#8955) 2017-08-30 17:42:00 +01:00
models Re-instate mobiledoc dom rendering with bypass of SimpleDOM parsing (#8937) 2017-08-31 12:09:02 +02:00
permissions 🐛 be able to serve locked users (#8711) 2017-07-20 12:45:13 +01:00
public 🛠 🙈 Rename ghost-url.js to ghost-sdk.js (#8767) 2017-07-28 18:23:32 +04:00
settings Used ghost-ignition.debug, removed debug dep (#8881) 2017-08-15 18:29:27 +07:00
themes Used ghost-ignition.debug, removed debug dep (#8881) 2017-08-15 18:29:27 +07:00
translations 🐛 Downgraded errors to warnings for img_url 2017-08-29 10:31:00 +02:00
utils Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
views 🎨 gscan 1.1.0 & optimisations 2017-06-06 13:07:50 +07:00
analytics-events.js Add segment analytics for blog data (#8912) 2017-08-22 12:23:23 +01:00
app.js API express app routing & middleware improvements (#8883) 2017-08-17 17:52:58 +07:00
errors.js 🐛 Added 409 UpdateCollisionError for the editor (#8899) 2017-08-15 12:06:40 +02:00
filters.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00
ghost-server.js Used ghost-ignition.debug, removed debug dep (#8881) 2017-08-15 18:29:27 +07:00
i18n.js 🎨 rename language to locale and use en as default locale (#8490) 2017-05-31 16:05:49 +01:00
index.js Add segment analytics for blog data (#8912) 2017-08-22 12:23:23 +01:00
logging.js 🐛 forward missing logging config: rotation 2017-02-17 18:24:14 +01:00
overrides.js 🛠 update lodash,knex and bookshelf to latest versions 2016-09-26 10:20:55 +02:00
update-check.js Normalize docs URLs (#8949) 2017-08-31 11:45:59 +02:00