Ghost/core/server/api
Nazar Gargol 0faf89b5ab Added ability to resize and compress images on upload (#9837)
refs #4453

* On by default

* Added config to disable resizing

* Added basic image optimization processing

* Added dep: sharp (optional dep)

* Added resize middleware

* Take care of rotation based on EXIF information

* Removed all meta data from optimised image

* Added handling if sharp could not get installed

* Do not read ext twice - optimisation

* Do not call sharp if config is disabled

* Do not remove the original image which was uploaded (store 2 images)

* Support of `req.files` for internal logic

* Disabled cache to enable file removal on Windows
2018-08-30 17:30:36 +01:00
..
authentication.js ES6 migration: server/api (#9733) 2018-07-23 14:38:40 +02:00
clients.js ES6 migration: server/api (#9733) 2018-07-23 14:38:40 +02:00
configuration.js ES6 migration: server/api (#9756) 2018-07-30 12:28:05 +02:00
db.js Renamed core/server/data/export to core/server/data/exporter 2018-08-16 12:13:24 +02:00
index.js Added ability to resize and compress images on upload (#9837) 2018-08-30 17:30:36 +01:00
invites.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
mail.js Updated docs links 2018-08-16 12:13:24 +02:00
notifications.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
oembed.js Oembed meta tag fallback for unknown providers (#9827) 2018-08-27 15:02:03 +01:00
posts.js Changed comments and deprecation notes 2018-08-16 12:13:24 +02:00
redirects.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
roles.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
schedules.js Moved zip folder, read csv and package-json to lib/fs 2017-12-14 22:07:53 +01:00
settings.js 🔥 Removed permalink setting 2018-08-16 12:13:24 +02:00
slack.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
slugs.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
subscribers.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
tags.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
themes.js Fixed tests 2018-08-16 12:13:24 +02:00
upload.js Added ability to resize and compress images on upload (#9837) 2018-08-30 17:30:36 +01:00
users.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
utils.js Changed comments and deprecation notes 2018-08-16 12:13:24 +02:00
webhooks.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00