python-pillow / python-pillow/Sane
Cannot set int array option (gamma-table)
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 61
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
My scanner supports customisation of colour curve table. "scanimage" utility reports this option as
--red-gamma-table 0..255,...
Gamma-correction table for the red band.
--green-gamma-table 0..255,...
Gamma-correction table for the green band.
--blue-gamma-table 0..255,...
Gamma-correction table for the blue band.
It is an array of integers, SANE reports option size 1024. Alas, Python demands a single-value int/long option.

How can we support value tables?
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start with the scanimage option definitions and the Python-to-SANE option handling described in the issue, focusing on how integer options are converted and sized. Determine the design needed for array-valued options such as the red, green, and blue gamma tables; done means these SANE tables can be supplied instead of being rejected as single integers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100