Support scan script selection for `progressive` argument

Open
#3,343 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, python

Research direction

Start in src/libImaging/JpegEncode.c at the jpeg_simple_progression call, then trace how the JPEG progressive option reaches that encoder. Determine how a caller could select a scan script and identify the relevant tests or test entry points before changing the API. Done means the progressive option accepts a scan-script selection and uses it when encoding JPEGs.

Written by the indexing model from the issue text.

Description

Enhancement JPEG

This is a feature request. Apologies if it already exists and please direct me to the right option.

For the JPEG progressive option, the current code calls jpeg_simple_progression at https://github.com/python-pillow/Pillow/blob/fdbd719da4c77c7e23e2e9e9b71d0d177f2d3369/src/libImaging/JpegEncode.c#L218

Would it be possible to support an argument to specify the scan script to use?

Dominant language
Python
Stars
14k
Forks
2.6k
Avg merge
1d 1h
Merged PRs (30d)
205

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python-pillow/Pillow

All issues in python-pillow/Pillow

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.