{"id":27057,"library":"image","title":"image","description":"A Django application that provides cropping, resizing, thumbnailing, overlays and masking for images and videos with the ability to set the center of attention. Current version 1.5.33, released on PyPI with no specified release cadence. Frequently updated but with infrequent major releases.","status":"active","version":"1.5.33","language":"python","source_language":"en","source_url":"https://github.com/francescortiz/image","tags":["django","image","thumbnail","crop","video","overlay","masking"],"install":[{"cmd":"pip install image","lang":"bash","label":"Install with pip"}],"dependencies":[{"reason":"Required for the Django application integration","package":"Django","optional":false},{"reason":"Used for image processing","package":"Pillow","optional":false}],"imports":[{"note":"PIL/Pillow's Image is different; import from the 'image' package for Django integration.","wrong":"from PIL import Image","symbol":"Image","correct":"from image import Image"},{"note":"Used for defining image specifications.","symbol":"ImageSpec","correct":"from image import ImageSpec"}],"quickstart":{"code":"from image import Image\nfrom django.conf import settings\nsettings.configure(INSTALLED_APPS=['image', 'django.contrib.contenttypes', 'django.contrib.auth'])\n\nimg = Image(name='example.jpg')\nimg.source = 'https://example.com/photo.jpg'\nimg.save()\nprint(img.url)\n","lang":"python","description":"Basic usage: Create an Image instance, set its source, save, and retrieve its URL."},"warnings":[{"fix":"Use explicit import: from image import Image.","message":"The 'image' package conflicts with the built-in Python 'imghdr' or 'Pillow' when using 'import Image'. Always use 'from image import Image'.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to latest version (>=1.5.0) for updated frontend dependencies.","message":"The 'center_of_attention' feature may rely on deprecated JavaScript libraries (like jQuery) in older versions. Check version compatibility.","severity":"deprecated","affected_versions":"<1.5.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Uninstall conflicting packages (like 'python-resize-image') and use 'pip install image' from PyPI. Then import as 'from image import Image'.","cause":"There is a naming conflict with the 'image' module from the standard library on some Python versions.","error":"ImportError: cannot import name 'Image' from 'image'"},{"fix":"Run 'pip install image' to install the package.","cause":"The package is not installed or the environment is misconfigured.","error":"ModuleNotFoundError: No module named 'image'"},{"fix":"Configure Django settings before using the package: settings.configure(INSTALLED_APPS=['image', ...]).","cause":"Quickstart code ran without Django settings.","error":"django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}