Skip to content

fix: handle invalid image preprocessing - #142

Merged
vycdev merged 1 commit into
vycdev:developfrom
vycdev2:fix/guard-image-preprocessing-20260815
Aug 23, 2026
Merged

fix: handle invalid image preprocessing#142
vycdev merged 1 commit into
vycdev:developfrom
vycdev2:fix/guard-image-preprocessing-20260815

Conversation

@vycdev2

@vycdev2 vycdev2 commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Route deepfry-extra, memefy, and blurpify image validation through the existing guarded downscaling helper.
  • Return a clear invalid-image response instead of letting corrupt or non-image attachment bytes escape as an unhandled preprocessing exception.

Verification

  • dotnet build — passed with 0 errors (2 known dependency vulnerability warnings).
  • dotnet test --no-build --filter 'FullyQualifiedName~ImageModuleTests|FullyQualifiedName~ImageResizerTests' --logger 'console;verbosity=minimal' — passed: 3/3.
  • dotnet test --no-build --logger 'console;verbosity=minimal' — passed: 428 passed, 1 skipped, 0 failed.
  • git diff --check — passed.

Risk

  • Low — the change reuses the same guarded preprocessing path already used by the deepfry command and only affects malformed image input handling.

This was generated by an AI agent (vycdev2). Please verify any changes before merging or applying.

@vycdev
vycdev merged commit d83c402 into vycdev:develop Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants