--- id: django-versatileimagefield version: "3.1" license: MIT License, see LICENSE license_treatment: permissive maintenance: dormant --- # django-versatileimagefield — A drop-in replacement for django's ImageField that provides a flexible, intuitive and easily-extensible interface for creating new images from the one assigned to the field. License: permissive · Maintenance: dormant · Downloads: 89.9K/mo ## What it is and what it does django-versatileimagefield is a drop-in replacement for Django's standard ImageField that lets you define and automatically generate multiple processed versions of an uploaded image—such as thumbnails, cropped variants, or resized formats—without writing custom image-handling code. Instead of storing separate image files manually or processing them on-the-fly during requests, you declare the variants you want once, and the field handles creation and retrieval. It depends on Pillow for image processing, Django for the ORM integration, and python-magic for file type detection. The package is stable and has been in production use for over a decade, though development is currently dormant. It supports Django 3.0 through 5.0 and Python 3.6–3.9, making it compatible with a wide range of existing projects. Use it for: - Serve responsive image variants (mobile, tablet, desktop sizes) from a single uploaded image without duplicating storage. - Generate thumbnail previews automatically when a user uploads a profile picture or product photo. - Create multiple cropped or filtered versions of an image for different parts of a website layout. - Build a REST API that returns image URLs in multiple resolutions based on client request. - Reduce manual image preprocessing by declaring all needed variants in your model definition. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Extends Django's ImageField with flexible image variant generation, allowing you to define and serve multiple processed versions of uploaded images through an intuitive interface. Yes, if you need automatic image variant generation in a Django project and are comfortable with dormant maintenance. The package is stable and Production/Stable classified, with no known vulnerabilities and low install friction. However, verify that its last commit (2024-01-21) and lack of recent updates align with your Django and Python version roadmap, especially if you plan to upgrade to newer Django releases soon. ## Install pip install django-versatileimagefield uv add django-versatileimagefield poetry add django-versatileimagefield ## Installing django-versatileimagefield Before you install: Low friction install with three straightforward runtime dependencies. Maintenance is dormant—last commit was 2024-01-21—but the package is marked Production/Stable and has been in active use since 2014. No recent updates means no active bug fixes or feature development. License in practice: MIT License (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions. Quickstart: pip install django-versatileimagefield from versatileimagefield.fields import VersatileImageField class MyModel(models.Model): image = VersatileImageField() Requires Pillow >= 6.2.0 and python-magic; on macOS, libmagic must be installed via homebrew or system package manager. Verify before relying: - Whether dormant maintenance status (last commit 2024-01-21) poses a risk for future Django/Python compatibility. - Real-world performance impact of image variant generation on large uploads or high-traffic sites. - Extent of customization available for image processing pipelines beyond the documented interface. ## Package facts - License: MIT License, see LICENSE (permissive) - Python support: unspecified - Install friction: low - Maintenance: dormant - Downloads: 89.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django image field variants, django image processing field, django responsive images, django image thumbnails, django image cropping, image field with sizes, django-field, image-processing [View on SkillFed](https://skillfed.io/packages/django-versatileimagefield) · [View on PyPI](https://pypi.org/project/django-versatileimagefield/)