[FR] Deprecating `django-stdimage` and migrate to `django-picture`
Maintainers usually reply within 1 day
@YutingDuan111 is already working on this.
Since Jun 12, 2026.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
Research direction
The payload names no InvenTree files, only the failing django-stdimage tests: tests/test_commands.py and tests/test_models.py (TestModel, TestUtils, TestJPEGField). Start by reading how the project uses the stdimage fields and running those tests on Django 5.2 to confirm the failures. The work is a dependency swap that needs design choices, so check with maintainers first. Done means django-picture replaces django-stdimage and the suite passes on Django 5.2.
Written by the indexing model from the issue text.
Description
Please verify that this feature request has NOT been suggested before.
- I checked and didn't find a similar feature request
Problem statement
The django-stdimage has been deprecated for a while now in favor of django-picture as a successor for this. ref. Also, the support for Django 4.2 will soon come to the end. Additionally, when I tested django-stdimage with django 5.2, there are some features that aren't compatible with django 5.2.
These are tests that failed when testing with django 5.2
"tests/test_commands.py"
"tests/test_models.py::TestModel::test_variations"
"tests/test_models.py::TestModel::test_cropping"
"tests/test_models.py::TestModel::test_custom_render_variations"
"tests/test_models.py::TestModel::test_defer"
"tests/test_models.py::TestModel::test_variations_deepcopy"
"tests/test_models.py::TestUtils::test_render_variations_callback"
"tests/test_models.py::TestUtils::test_render_variations_overwrite"
"tests/test_models.py::TestJPEGField::test_convert"
"tests/test_models.py::TestJPEGField::test_convert_multiple"
Those tests are running fine with django 4.2 which will soon be the end of life. This means that there are some features that aren't compatible with django 5.2. And it will soon break InvenTree project if still keep using this.
I also believe it's a good idea to migrate to a more maintained dependency and support latest django. Since there will more features won't be compatible with newer django because it hasn't maintained anymore.
Suggested solution
Replace django-stdimage with django-picture
Describe alternatives you've considered
Please consider migrate it.
Examples of other systems
No response
Do you want to develop this?
- I want to develop this.
- Dominant language
- Python
- Stars
- 7.7k
- Forks
- 1.6k
- Avg merge
- 21h 45m
- Merged PRs (30d)
- 204
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from inventree/InvenTree
-
enhancement triage:not-checked
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
inventree/InvenTree#13318 · 1 reaction ·
Maintainers usually reply within 1 day
-
enhancement User Interface wontfix
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
inventree/InvenTree#13292 · 5 comments ·
Maintainers usually reply within 1 day
-
[FR] Add spinner arrows in Quantity when adding a BOM itemMay be free again @Alonso-Lopez-1 claimed this 50 days ago, and no pull request is open. Openenhancement help wanted starter User Interface
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
inventree/InvenTree#12677 · 6 comments ·
Maintainers usually reply within 1 day
-
enhancement triage:not-checked
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
inventree/InvenTree#13317 · 1 reaction ·
Maintainers usually reply within 1 day
-
bug stock
Difficulty 3/5 1-2 days Newbie friendliness 40/100
inventree/InvenTree#13285 · 1 comment ·
Maintainers usually reply within 1 day
All issues in inventree/InvenTree
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ip-tools/patzilla#219 · 2 comments ·
Maintainers usually reply within 1 day
-
EPSSClient commits to its SQLite cache once per score: a 100-CVE bulk fetch makes 101 disk flushesOpenpriority:p3 technical-debt
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
jimmy058910/jmo-security-repo#1673 ·
Maintainers usually reply within 1 day
-
enhancement ready
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
integration: frontier_silicon
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
home-assistant/core#193176 · 2 comments ·
Maintainers usually reply within 1 day
-
task create and task update take --body-file and --stdinPossibly taken @JuanBarriosS claimed this today. Opencli enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
pyrite-wiki/pyrite#1687 · 1 comment ·
Maintainers usually reply within 1 day