Skip to content

[FR] Deprecating django-stdimage and migrate to django-picture #11647

Open

Description

@kurogeek

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.

Activity

  1. added
    enhancement
    triage:not-checked
    on Mar 31, 2026
  2. matmair commented on Mar 31, 2026

    @matmair
    Member

    We welcome PRs; this is not as trivial as it sounds and we are running on unpaid volunteer time

  3. added
    dependency
    help wanted
    and removed
    enhancement
    triage:not-checked
    on Mar 31, 2026
  4. matmair commented on Mar 31, 2026

    @matmair
    Member

    Django-picture is not drop-in compatible and comes with a number of drawbacks as it is more opinionated

  5. SchrodingersGat commented on Apr 27, 2026

    @SchrodingersGat
    Member

    The django-stdimage project has now been archived (as of April 2026) - so we should start thinking about

  6. YutingDuan111 commented on Jun 12, 2026

    @YutingDuan111

    Hi, I'd like to work on this!

    I'm a student from the CodePath AI301 program, and this dependency migration seems like a well-scoped task. My plan is to audit all usages of django-stdimage in the codebase, replace them with the equivalent django-picture API, update any affected migrations and templates, and add tests to verify compatibility with Django 5.2.

    Happy to discuss implementation details before I start if that's helpful. Let me know if there's anything specific I should be aware of!

  7. SchrodingersGat commented on Jun 13, 2026

    @SchrodingersGat
    Member

    @YutingDuan111 it is unlikely that this will be the direction we go for this issue - so I would suggest you explore other issues to tackle

  8. github-actions commented on Aug 12, 2026

    @github-actions
    Contributor

    This issue seems stale. Please react to show this is still important.

  9. added
    inactive
    on Aug 12, 2026
  10. removed
    inactive
    on Aug 21, 2026
  11. added this to the 2.0.0 milestone on Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependencyhelp wanted

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions