Cannot set int array option (gamma-table)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
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.
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?
- Dominant language
- C
- Stars
- 61
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
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.
More from python-pillow/Sane
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
python-pillow/Sane#110 · 1 comment · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 50/100
python-pillow/Sane#107 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
python-pillow/Sane#103 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
python-pillow/Sane#93 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
python-pillow/Sane#92 ·
All issues in python-pillow/Sane
Similar issues
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hapostgres/pg_auto_failover#1190 ·
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
spack/spack-packages#6586 ·