Skip to content

Conversation

ClearlyClaire
Copy link
Contributor

Treat libvips failures as paperclip failures so that they are caught and handled like other media processing failures.

@ClearlyClaire ClearlyClaire added the bug Something isn't working label Jun 7, 2024
@ClearlyClaire ClearlyClaire requested a review from a team June 7, 2024 15:02
Copy link
Contributor

@mjankowski mjankowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If imagemagick/vips are going to co-exist for a while, I could see a refactor here where we bundle up all the paperclip/vips/imagemagick/etc error classes into like a Mastodon::MEDIA_PROCESSING_ERRORS (or something) constant and adjust the handling to use that ... which would make the eventual future removal of imagemagick (and maybe someday paperclip!) more straightforward with that in place in advance.

All that said, for right now while we are still in "introducing vips" stage, this looks good.

@renchap renchap added this pull request to the merge queue Jun 7, 2024
Merged via the queue into main with commit 82be5d0 Jun 7, 2024
@renchap renchap deleted the fixes/vips-error-handling branch June 7, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants