{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/22"}],"enrichment":{"capability":"Provides functions to resize images using Pillow, supporting crop, cover, contain, and dimension-based resizing modes with optional validation.","skillfed_tags":["image-processing","pillow-wrapper"],"use_cases":["Generate thumbnail images for web galleries while preserving aspect ratio and avoiding upscaling.","Crop images to a fixed size from the center for consistent social media post dimensions.","Resize images to fit a bounding box without distortion, adding padding as needed.","Batch-process images to specific widths or heights while maintaining their original proportions.","Validate whether an image can be safely resized before performing the operation in a pipeline."],"what_it_does":"python-resize-image wraps Pillow to provide a simpler API for common image resizing tasks. It offers six main functions: resize_crop (centered crop), resize_cover (fill and crop like CSS background-size: cover), resize_contain (fit without crop like CSS background-size: contain), resize_width, resize_height, and resize_thumbnail. Each function accepts an image object and size parameters, with optional validation to prevent upscaling and optional resampling filters.\n\nThe package is straightforward to use\u2014you open an image, pass it to one of the resize functions, and save the result. It includes a validation layer that checks whether a resize is safe before executing it, and allows you to decouple validation from the actual resize operation. However, the project has been unmaintained since 2021-11-04, so it may have compatibility issues with newer Python or Pillow versions.","worth_installing":"Yes, if you need simple image resizing and are working with a stable Python and Pillow environment. The API is clean and the MIT license is permissive. However, be cautious: the package is abandoned (last commit 2021-11-04), so test thoroughly with your specific versions before relying on it in production. For new projects, consider whether a maintained alternative better suits your needs."},"id":"python-resize-image","links":{"html":"https://skillfed.io/packages/python-resize-image","md":"https://skillfed.io/packages/python-resize-image.md","pypi":"https://pypi.org/project/python-resize-image/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2021-11-04","license_spdx":null,"license_treatment":"permissive","name":"python-resize-image","python_support":"unspecified","summary":"A Small python package to easily resize images"},"popularity":{"monthly_downloads":82266,"position":14172,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.20"}
