Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SVG support and refactor code using nio and try-with-resource #9

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

x7Git
Copy link

@x7Git x7Git commented Sep 26, 2024

This pull request introduces the image upload default workflow for handling SVG files uploads. Previously, SVG resizing was not possible because ImageMagick and GraphicsMagick do not support resizing SVG images. As a result, uploading SVG files was problematic. With this update, SVG files can now be uploaded and processed without relying on these libraries, ensuring that the limitations are bypassed.

In addition to this enhancement, the code has been refactored to improve overall structure and efficiency. Specifically, the file handling has been updated to use nio, and resource management has been improved by implementing the try-with-resources approach. This ensures that resources are properly closed after use, improving reliability and readability of the code.

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.

1 participant