mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
39485d17c0
refs #8576 - adds new API endpoint `/uploads/profile-image` for uploading profile images - new validation which fails with error message if uploaded image is not square - Renamed getImageSizeFromFilePath to getImageSizeFromStoragePath, because it's more explicit - Add new getImageSizeFromPath method, which is used in the new dimensions middleware - Ensure we use the sharp middleware to auto-resize the uploaded profile pictures - Ensure the new route get's added to v2 While this makes sure all future profile images uploaded are square, this doesn’t affect any existing non-square profile image. Needs more thought on how to handle existing non-square profile images for the purpose of making theming easier in future. |
||
---|---|---|
.. | ||
api | ||
image | ||
validation | ||
admin-redirects.js | ||
brute.js | ||
cache-control.js | ||
custom-redirects.js | ||
error-handler.js | ||
frontend-client.js | ||
ghost-locals.js | ||
index.js | ||
labs.js | ||
log-request.js | ||
maintenance.js | ||
pretty-urls.js | ||
serve-favicon.js | ||
serve-public-file.js | ||
static-theme.js | ||
uncapitalise.js | ||
url-redirects.js |