{"id":23594,"library":"django-resized","title":"Django-Resized","description":"Automatically resize image uploads in Django to a specified size. Current version 1.0.3, released sporadically. Lightweight replacement for django-imagekit for simple resize-on-upload scenarios.","status":"active","version":"1.0.3","language":"python","source_language":"en","source_url":"https://github.com/un1t/django-resized","tags":["django","image","resize","upload","thumbnails"],"install":[{"cmd":"pip install django-resized","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required for image processing","package":"Pillow","optional":false},{"reason":"Provides framework integration (ModelField)","package":"Django","optional":false}],"imports":[{"wrong":"from django_resized import ResizedImageField","symbol":"ResizedImageField","correct":"from django_resized import ResizedImageField"}],"quickstart":{"code":"from django.db import models\nfrom django_resized import ResizedImageField\n\nclass MyModel(models.Model):\n    image = ResizedImageField(size=[800, 600], crop=['middle', 'center'], upload_to='uploads/')\n","lang":"python","description":"Define a model with a ResizedImageField that automatically resizes images to 800x600, cropping from the center."},"warnings":[{"fix":"Use 'from django_resized import ResizedImageField' instead of 'from django_resized.forms import ResizedImageField'.","message":"Import path changed in v1.0: from 'django_resized.forms' to 'django_resized'.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Always pass a list with exactly two valid values, e.g., crop=['middle', 'center'].","message":"'crop' parameter requires a list of two strings: ['top','bottom'] or ['left','right']; using a single string or invalid values silently fails.","severity":"gotcha","affected_versions":"all"},{"fix":"If you need both original and resized, use a separate field for original or use a different library like django-imagekit.","message":"ResizedImageField does not preserve original image; the uploaded file is replaced by the resized version.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.0.3':16 'automat':4 'current':14 'django':2,9,23,32 'django-imagekit':22 'django-res':1 'imag':6,33 'imagekit':24 'lightweight':19 'releas':17 'replac':20 'resiz':3,5,28,34 'resize-on-upload':27 'scenario':31 'simpl':26 'size':13 'specifi':12 'sporad':18 'thumbnail':36 'upload':7,30,35 'version':15","created_at":"2026-05-01T08:08:35.453966+00:00","updated_at":"2026-05-01T08:08:35.453966+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmpk93xaler/venv/lib/python3.12/site-packages/django_resized/__init__.py\", line 1, in <module>\n    from django_resized.forms import ResizedImageField  # noqa\n    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.0.3","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/un1t/django-resized","docs":null,"changelog":null,"pypi":"https://pypi.org/project/django-resized/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","aws"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}