0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/lib/image
Fabien O'Carroll 2d92793b3f
Cleaned up image manipulator (#10282)
no-issue

* Added InternalServerError to resizeImage

* Added a redirect to original image if sharp is missing

* Improved naming - safeMethod -> method

* Updated process method to follow same sharp check pattern

* Refactor safety wrapper into makeSafe function

* Moved generic manipulation error to makeSafe function

* Refactored unsafeProcess to use unsafeResizeImage

* Removed CRAZY catch
2018-12-14 11:54:52 +07:00
..
blog-icon.js Moved image utils to lib/image 2017-12-14 20:46:53 +01:00
cached-image-size-from-url.js Moved image utils to lib/image 2017-12-14 20:46:53 +01:00
gravatar.js Moved image utils to lib/image 2017-12-14 20:46:53 +01:00
image-size.js Added new endpoint to upload square profile images with dimension validation (#9862) 2018-09-24 21:42:58 +02:00
index.js Added ability to resize and compress images on upload (#9837) 2018-08-30 17:30:36 +01:00
manipulator.js Cleaned up image manipulator (#10282) 2018-12-14 11:54:52 +07:00