0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server
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
..
adapters Moved knex-migrator execution into Ghost 2018-08-16 12:13:24 +02:00
api Added ability to resize and compress images on upload (#9837) 2018-08-30 17:30:36 +01:00
apps 🎨 Added additional parameters to subscribe_form and input_email helpers (#9820) 2018-08-30 17:17:27 +01:00
config Added ability to resize and compress images on upload (#9837) 2018-08-30 17:30:36 +01:00
data Optimised fixture replacement migration script (#9812) 2018-08-22 13:35:58 +02:00
helpers 🎨 Added additional parameters to subscribe_form and input_email helpers (#9820) 2018-08-30 17:17:27 +01:00
lib Added ability to resize and compress images on upload (#9837) 2018-08-30 17:30:36 +01:00
models 🐛Fixed count.posts respecting co authors (#9830) 2018-08-30 17:05:29 +01:00
public 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
services Fixed RPC pings (#9816) 2018-08-23 15:20:29 +02:00
translations Changed maintenance messages 2018-08-16 12:13:24 +02:00
views Fixed error trying to render 404 for missing asset 2017-12-22 20:08:59 +00:00
web Added ability to resize and compress images on upload (#9837) 2018-08-30 17:30:36 +01:00
analytics-events.js Cleared out old unused events 2017-12-13 09:08:25 +00:00
filters.js Moved pipeline/sequence to lib/promise 2017-12-13 22:20:02 +01:00
ghost-server.js Changed where we trigger server start/stop announcement (#9815) 2018-08-22 13:28:31 +02:00
index.js Added timeout before exiting the process 2018-08-16 12:13:24 +02:00
overrides.js Disabled bluebird debug logs 2018-08-13 14:01:31 +02:00
update-check.js Updated docs links 2018-08-16 12:13:24 +02:00