File: CHANGES.rst

package info (click to toggle)
pillow-sane 2.8.3-4
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 300 kB
  • sloc: ansic: 713; python: 356; makefile: 240; sh: 26
file content (126 lines) | stat: -rw-r--r-- 3,362 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
Version 2.8.3
-------------

- _sane.c:

  - Don't call sane_close on handle if sane_exit was called since

- Documentation.

  - Fix example and documentation to reflect actual arr_snap array shape
  - Fix various typos

Version 2.8.2
-------------

- _sane.c:

  - Fix reading of 1bit scan data

- sane.py:

  - Fix document feeder out of documents exception checking


Version 2.8.1
-------------

- sane.py:

  - Fix array shape returned by sane.arr_snap()


Version 2.8.0
-------------

- _sane.c:

  - Rewritten snap method, it now also works with backends which do not report
    the number of lines in advance. Also, it now reads the data into a generic
    memory buffer, removing the dependency on Pillow and numpy/numarray in the
    C code. A PIL image is created via Image.frombuffer in sane.py now.
  - General cleanup, fixing some Py_INCREF and Py_DECREF issues along the way.

- sane.py:

  - Make arr_snap return a 3D numpy array, shaped (samples, width, height)
  - Remove multipleOf support in arr_snap, this should be done by the caller
  - Overall cleanup
  - Expose the localOnly option to sane.get_devices()

- Documentation:

  - New python-sphinx generated documentation, reworked example


Version 2.7.0
-------------

- Split from Pillow to its own repo

- _sane.c : 

  - support for numpy (numarray still possible), define ARRAY_SUPPORT

  - arr_scan allows colors array using numpy

  - checkArray_Support : answer as tuple the array_support at compilation and if the libraries are found at execution

- sane.py:
  - arr_scan allows colors array using numpy
  
- setup.py:

  - define WITH_NUMPY if available

- demo_numpy:

  - various call of arr_snap except 16bit colors not supported by Epkowa or libsane



from V1.0 to V2.0
-----------------

- _sane.c:

  - Values for option constraints are correctly translated to floats
    if value type is TYPE_FIXED for SANE_CONSTRAINT_RANGE and
    SANE_CONSTRAINT_WORD_LIST

  - added constants INFO_INEXACT, INFO_RELOAD_OPTIONS,
    INFO_RELOAD_PARAMS (possible return values of set_option())
    to module dictionary.

  - removed additional return variable 'i' from SaneDev_get_option(),
    because it is only set when SANE_ACTION_SET_VALUE is used.

  - scanDev.get_parameters() now returns the scanner mode as 'format',
    no more the typical PIL codes. So 'L' became 'gray', 'RGB' is now
    'color', 'R' is 'red', 'G' is 'green', 'B' is 'red'. This matches
    the way scanDev.mode is set.
    This should be the only incompatibility vs. version 1.0.

- sane.py

  - ScanDev got new method __load_option_dict() called from __init__()
    and from __setattr__() if backend reported that the frontend should
    reload the options.

  - Nice human-readable __repr__() method added for class Option

  - if __setattr__ (i.e. set_option) reports that all other options
    have to be reloaded due to a change in the backend then they are reloaded.

  - due to the change in SaneDev_get_option() only the 'value' is
    returned from get_option().

  - in __setattr__ integer values are automatically converted to floats
    if SANE backend expects SANE_FIXED (i.e. fix-point float)

  - The scanner options can now directly be accessed via scanDev[optionName]
    instead scanDev.opt[optionName]. (The old way still works).

V1.0
----
-  A.M. Kuchling's original pysane package.