mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
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. |
||
---|---|---|
.. | ||
authentication_spec.js | ||
configuration_spec.js | ||
db_spec.js | ||
error_spec.js | ||
notifications_spec.js | ||
oembed_spec.js | ||
posts_spec.js | ||
public_api_spec.js | ||
redirects_spec.js | ||
settings_spec.js | ||
slugs_spec.js | ||
spam_prevention_spec.js | ||
tags_spec.js | ||
themes_spec.js | ||
upload_icon_spec.js | ||
upload_spec.js | ||
users_spec.js | ||
webhooks_spec.js |