Chore/utility fixes#3
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several new features, improvements, and documentation updates to the image processing library. The most significant changes include the addition of GIF support for batch processing, new security and validation options in the configuration, and enhanced documentation to clarify behaviors and constraints. These updates improve the library’s flexibility, safety, and usability.
New Features
.gif()method toBatchImage, allowing users to select GIF as the output format for all images in a batch. (src/nitro_img/batch.py)max_pixels(decompression bomb protection) andurl_allowed_schemes(restrict allowed URL schemes forfrom_url) to the globalconfigfor enhanced security. (src/nitro_img/config.py) [1] [2] [3]Documentation Improvements
SKILL.mdwith new and clarified behaviors, including: GIF support inBatchImage, the role ofmax_output_dimensions,max_pixels, andurl_allowed_schemes, and details about how responsive image widths are measured. [1] [2] [3]API and Usability Enhancements
responsiveandsave_responsive) now consistently uses the post-pipeline image as the reference for width calculations, and documentation was updated to reflect this. (src/nitro_img/image.py) [1] [2] [3] [4]watermark()andtext_overlay()now raiseValueErrorfor unknown positions, andstrip_metadata()does not preserve animation frames. (src/nitro_img/image.py) [1] [2]Other Notable Changes
1.1.1and updated the description to better reflect the library’s capabilities. (pyproject.toml,src/nitro_img/__init__.py) [1] [2]Imageclass. (src/nitro_img/image.py) [1] [2] [3] [4]These changes make the library more robust, secure, and user-friendly, while also providing clearer guidance for developers.