@@ -274,6 +274,7 @@ Autogenerated methods
274
274
~matrixinvert
275
275
~matrixload
276
276
~matrixload_source
277
+ ~matrixmultiply
277
278
~matrixprint
278
279
~matrixsave
279
280
~matrixsave_target
@@ -2058,12 +2059,12 @@ Autogenerated methods
2058
2059
:rtype: Image or list[Image, Dict[str, mixed]]
2059
2060
:raises Error:
2060
2061
2061
- .. method :: gifsave(filename, dither=float, effort=int, bitdepth=int, interframe_maxerror=float, reuse=bool, interpalette_maxerror=float, interlace=bool, keep=int, background=list[float], page_height=int, profile=str)
2062
+ .. method :: gifsave(filename, dither=float, effort=int, bitdepth=int, interframe_maxerror=float, reuse=bool, interpalette_maxerror=float, interlace=bool, keep_duplicate_frames=bool, keep=int, background=list[float], page_height=int, profile=str)
2062
2063
2063
2064
Save as gif.
2064
2065
2065
2066
Example:
2066
- in.gifsave(filename, dither=float, effort=int, bitdepth=int, interframe_maxerror=float, reuse=bool, interpalette_maxerror=float, interlace=bool, keep=int, background=list[float], page_height=int, profile=str)
2067
+ in.gifsave(filename, dither=float, effort=int, bitdepth=int, interframe_maxerror=float, reuse=bool, interpalette_maxerror=float, interlace=bool, keep_duplicate_frames=bool, keep=int, background=list[float], page_height=int, profile=str)
2067
2068
2068
2069
:param filename: Filename to save to
2069
2070
:type filename: str
@@ -2081,6 +2082,8 @@ Autogenerated methods
2081
2082
:type interpalette_maxerror: float
2082
2083
:param interlace: Generate an interlaced (progressive) GIF
2083
2084
:type interlace: bool
2085
+ :param keep_duplicate_frames: Keep duplicate frames in the output instead of combining them
2086
+ :type keep_duplicate_frames: bool
2084
2087
:param keep: Which metadata to retain
2085
2088
:type keep: int
2086
2089
:param background: Background value
@@ -2092,12 +2095,12 @@ Autogenerated methods
2092
2095
:rtype: list[]
2093
2096
:raises Error:
2094
2097
2095
- .. method :: gifsave_buffer(dither=float, effort=int, bitdepth=int, interframe_maxerror=float, reuse=bool, interpalette_maxerror=float, interlace=bool, keep=int, background=list[float], page_height=int, profile=str)
2098
+ .. method :: gifsave_buffer(dither=float, effort=int, bitdepth=int, interframe_maxerror=float, reuse=bool, interpalette_maxerror=float, interlace=bool, keep_duplicate_frames=bool, keep=int, background=list[float], page_height=int, profile=str)
2096
2099
2097
2100
Save as gif.
2098
2101
2099
2102
Example:
2100
- buffer = in.gifsave_buffer(dither=float, effort=int, bitdepth=int, interframe_maxerror=float, reuse=bool, interpalette_maxerror=float, interlace=bool, keep=int, background=list[float], page_height=int, profile=str)
2103
+ buffer = in.gifsave_buffer(dither=float, effort=int, bitdepth=int, interframe_maxerror=float, reuse=bool, interpalette_maxerror=float, interlace=bool, keep_duplicate_frames=bool, keep=int, background=list[float], page_height=int, profile=str)
2101
2104
2102
2105
:param dither: Amount of dithering
2103
2106
:type dither: float
@@ -2113,6 +2116,8 @@ Autogenerated methods
2113
2116
:type interpalette_maxerror: float
2114
2117
:param interlace: Generate an interlaced (progressive) GIF
2115
2118
:type interlace: bool
2119
+ :param keep_duplicate_frames: Keep duplicate frames in the output instead of combining them
2120
+ :type keep_duplicate_frames: bool
2116
2121
:param keep: Which metadata to retain
2117
2122
:type keep: int
2118
2123
:param background: Background value
@@ -2124,12 +2129,12 @@ Autogenerated methods
2124
2129
:rtype: str
2125
2130
:raises Error:
2126
2131
2127
- .. method :: gifsave_target(target, dither=float, effort=int, bitdepth=int, interframe_maxerror=float, reuse=bool, interpalette_maxerror=float, interlace=bool, keep=int, background=list[float], page_height=int, profile=str)
2132
+ .. method :: gifsave_target(target, dither=float, effort=int, bitdepth=int, interframe_maxerror=float, reuse=bool, interpalette_maxerror=float, interlace=bool, keep_duplicate_frames=bool, keep=int, background=list[float], page_height=int, profile=str)
2128
2133
2129
2134
Save as gif.
2130
2135
2131
2136
Example:
2132
- in.gifsave_target(target, dither=float, effort=int, bitdepth=int, interframe_maxerror=float, reuse=bool, interpalette_maxerror=float, interlace=bool, keep=int, background=list[float], page_height=int, profile=str)
2137
+ in.gifsave_target(target, dither=float, effort=int, bitdepth=int, interframe_maxerror=float, reuse=bool, interpalette_maxerror=float, interlace=bool, keep_duplicate_frames=bool, keep=int, background=list[float], page_height=int, profile=str)
2133
2138
2134
2139
:param target: Target to save to
2135
2140
:type target: Target
@@ -2147,6 +2152,8 @@ Autogenerated methods
2147
2152
:type interpalette_maxerror: float
2148
2153
:param interlace: Generate an interlaced (progressive) GIF
2149
2154
:type interlace: bool
2155
+ :param keep_duplicate_frames: Keep duplicate frames in the output instead of combining them
2156
+ :type keep_duplicate_frames: bool
2150
2157
:param keep: Which metadata to retain
2151
2158
:type keep: int
2152
2159
:param background: Background value
@@ -2728,17 +2735,19 @@ Autogenerated methods
2728
2735
:rtype: Image
2729
2736
:raises Error:
2730
2737
2731
- .. staticmethod :: jp2kload(filename, page=int, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
2738
+ .. staticmethod :: jp2kload(filename, page=int, oneshot=bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
2732
2739
2733
2740
Load JPEG2000 image.
2734
2741
2735
2742
Example:
2736
- out = pyvips.Image.jp2kload(filename, page=int, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
2743
+ out = pyvips.Image.jp2kload(filename, page=int, oneshot=bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
2737
2744
2738
2745
:param filename: Filename to load from
2739
2746
:type filename: str
2740
2747
:param page: Load this page from the image
2741
2748
:type page: int
2749
+ :param oneshot: Load images a frame at a time
2750
+ :type oneshot: bool
2742
2751
:param memory: Force open via memory
2743
2752
:type memory: bool
2744
2753
:param access: Required access pattern for this file
@@ -2752,17 +2761,19 @@ Autogenerated methods
2752
2761
:rtype: Image or list[Image, Dict[str, mixed]]
2753
2762
:raises Error:
2754
2763
2755
- .. staticmethod :: jp2kload_buffer(buffer, page=int, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
2764
+ .. staticmethod :: jp2kload_buffer(buffer, page=int, oneshot=bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
2756
2765
2757
2766
Load JPEG2000 image.
2758
2767
2759
2768
Example:
2760
- out = pyvips.Image.jp2kload_buffer(buffer, page=int, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
2769
+ out = pyvips.Image.jp2kload_buffer(buffer, page=int, oneshot=bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
2761
2770
2762
2771
:param buffer: Buffer to load from
2763
2772
:type buffer: str
2764
2773
:param page: Load this page from the image
2765
2774
:type page: int
2775
+ :param oneshot: Load images a frame at a time
2776
+ :type oneshot: bool
2766
2777
:param memory: Force open via memory
2767
2778
:type memory: bool
2768
2779
:param access: Required access pattern for this file
@@ -2776,17 +2787,19 @@ Autogenerated methods
2776
2787
:rtype: Image or list[Image, Dict[str, mixed]]
2777
2788
:raises Error:
2778
2789
2779
- .. staticmethod :: jp2kload_source(source, page=int, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
2790
+ .. staticmethod :: jp2kload_source(source, page=int, oneshot=bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
2780
2791
2781
2792
Load JPEG2000 image.
2782
2793
2783
2794
Example:
2784
- out = pyvips.Image.jp2kload_source(source, page=int, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
2795
+ out = pyvips.Image.jp2kload_source(source, page=int, oneshot=bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
2785
2796
2786
2797
:param source: Source to load from
2787
2798
:type source: Source
2788
2799
:param page: Load this page from the image
2789
2800
:type page: int
2801
+ :param oneshot: Load images a frame at a time
2802
+ :type oneshot: bool
2790
2803
:param memory: Force open via memory
2791
2804
:type memory: bool
2792
2805
:param access: Required access pattern for this file
@@ -3874,7 +3887,7 @@ Autogenerated methods
3874
3887
3875
3888
.. method :: matrixinvert()
3876
3889
3877
- Invert an matrix.
3890
+ Invert a matrix.
3878
3891
3879
3892
Example:
3880
3893
out = in.matrixinvert()
@@ -3926,6 +3939,18 @@ Autogenerated methods
3926
3939
:rtype: Image or list[Image, Dict[str, mixed]]
3927
3940
:raises Error:
3928
3941
3942
+ .. method :: matrixmultiply(right)
3943
+
3944
+ Multiply two matrices.
3945
+
3946
+ Example:
3947
+ out = left.matrixmultiply(right)
3948
+
3949
+ :param right: Second matrix to multiply
3950
+ :type right: Image
3951
+ :rtype: Image
3952
+ :raises Error:
3953
+
3929
3954
.. method :: matrixprint(keep=int, background=list[float], page_height=int, profile=str)
3930
3955
3931
3956
Print matrix.
@@ -5648,12 +5673,12 @@ Autogenerated methods
5648
5673
:rtype: Image
5649
5674
:raises Error:
5650
5675
5651
- .. staticmethod :: svgload(filename, dpi=float, scale=float, unlimited=bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
5676
+ .. staticmethod :: svgload(filename, dpi=float, scale=float, unlimited=bool, stylesheet=str, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
5652
5677
5653
5678
Load SVG with rsvg.
5654
5679
5655
5680
Example:
5656
- out = pyvips.Image.svgload(filename, dpi=float, scale=float, unlimited=bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
5681
+ out = pyvips.Image.svgload(filename, dpi=float, scale=float, unlimited=bool, stylesheet=str, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
5657
5682
5658
5683
:param filename: Filename to load from
5659
5684
:type filename: str
@@ -5663,6 +5688,8 @@ Autogenerated methods
5663
5688
:type scale: float
5664
5689
:param unlimited: Allow SVG of any size
5665
5690
:type unlimited: bool
5691
+ :param stylesheet: Custom CSS
5692
+ :type stylesheet: str
5666
5693
:param memory: Force open via memory
5667
5694
:type memory: bool
5668
5695
:param access: Required access pattern for this file
@@ -5676,12 +5703,12 @@ Autogenerated methods
5676
5703
:rtype: Image or list[Image, Dict[str, mixed]]
5677
5704
:raises Error:
5678
5705
5679
- .. staticmethod :: svgload_buffer(buffer, dpi=float, scale=float, unlimited=bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
5706
+ .. staticmethod :: svgload_buffer(buffer, dpi=float, scale=float, unlimited=bool, stylesheet=str, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
5680
5707
5681
5708
Load SVG with rsvg.
5682
5709
5683
5710
Example:
5684
- out = pyvips.Image.svgload_buffer(buffer, dpi=float, scale=float, unlimited=bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
5711
+ out = pyvips.Image.svgload_buffer(buffer, dpi=float, scale=float, unlimited=bool, stylesheet=str, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
5685
5712
5686
5713
:param buffer: Buffer to load from
5687
5714
:type buffer: str
@@ -5691,6 +5718,8 @@ Autogenerated methods
5691
5718
:type scale: float
5692
5719
:param unlimited: Allow SVG of any size
5693
5720
:type unlimited: bool
5721
+ :param stylesheet: Custom CSS
5722
+ :type stylesheet: str
5694
5723
:param memory: Force open via memory
5695
5724
:type memory: bool
5696
5725
:param access: Required access pattern for this file
@@ -5704,12 +5733,12 @@ Autogenerated methods
5704
5733
:rtype: Image or list[Image, Dict[str, mixed]]
5705
5734
:raises Error:
5706
5735
5707
- .. staticmethod :: svgload_source(source, dpi=float, scale=float, unlimited=bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
5736
+ .. staticmethod :: svgload_source(source, dpi=float, scale=float, unlimited=bool, stylesheet=str, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
5708
5737
5709
5738
Load svg from source.
5710
5739
5711
5740
Example:
5712
- out = pyvips.Image.svgload_source(source, dpi=float, scale=float, unlimited=bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
5741
+ out = pyvips.Image.svgload_source(source, dpi=float, scale=float, unlimited=bool, stylesheet=str, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
5713
5742
5714
5743
:param source: Source to load from
5715
5744
:type source: Source
@@ -5719,6 +5748,8 @@ Autogenerated methods
5719
5748
:type scale: float
5720
5749
:param unlimited: Allow SVG of any size
5721
5750
:type unlimited: bool
5751
+ :param stylesheet: Custom CSS
5752
+ :type stylesheet: str
5722
5753
:param memory: Force open via memory
5723
5754
:type memory: bool
5724
5755
:param access: Required access pattern for this file
@@ -5930,23 +5961,25 @@ Autogenerated methods
5930
5961
:rtype: Image
5931
5962
:raises Error:
5932
5963
5933
- .. staticmethod :: tiffload(filename, page=int, subifd =int, n= int, autorotate =bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
5964
+ .. staticmethod :: tiffload(filename, page=int, n =int, autorotate=bool, subifd= int, unlimited =bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
5934
5965
5935
5966
Load tiff from file.
5936
5967
5937
5968
Example:
5938
- out = pyvips.Image.tiffload(filename, page=int, subifd =int, n= int, autorotate =bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
5969
+ out = pyvips.Image.tiffload(filename, page=int, n =int, autorotate=bool, subifd= int, unlimited =bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
5939
5970
5940
5971
:param filename: Filename to load from
5941
5972
:type filename: str
5942
5973
:param page: First page to load
5943
5974
:type page: int
5944
- :param subifd: Subifd index
5945
- :type subifd: int
5946
5975
:param n: Number of pages to load, -1 for all
5947
5976
:type n: int
5948
5977
:param autorotate: Rotate image using orientation tag
5949
5978
:type autorotate: bool
5979
+ :param subifd: Subifd index
5980
+ :type subifd: int
5981
+ :param unlimited: Remove all denial of service limits
5982
+ :type unlimited: bool
5950
5983
:param memory: Force open via memory
5951
5984
:type memory: bool
5952
5985
:param access: Required access pattern for this file
@@ -5960,23 +5993,25 @@ Autogenerated methods
5960
5993
:rtype: Image or list[Image, Dict[str, mixed]]
5961
5994
:raises Error:
5962
5995
5963
- .. staticmethod :: tiffload_buffer(buffer, page=int, subifd =int, n= int, autorotate =bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
5996
+ .. staticmethod :: tiffload_buffer(buffer, page=int, n =int, autorotate=bool, subifd= int, unlimited =bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
5964
5997
5965
5998
Load tiff from buffer.
5966
5999
5967
6000
Example:
5968
- out = pyvips.Image.tiffload_buffer(buffer, page=int, subifd =int, n= int, autorotate =bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
6001
+ out = pyvips.Image.tiffload_buffer(buffer, page=int, n =int, autorotate=bool, subifd= int, unlimited =bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
5969
6002
5970
6003
:param buffer: Buffer to load from
5971
6004
:type buffer: str
5972
6005
:param page: First page to load
5973
6006
:type page: int
5974
- :param subifd: Subifd index
5975
- :type subifd: int
5976
6007
:param n: Number of pages to load, -1 for all
5977
6008
:type n: int
5978
6009
:param autorotate: Rotate image using orientation tag
5979
6010
:type autorotate: bool
6011
+ :param subifd: Subifd index
6012
+ :type subifd: int
6013
+ :param unlimited: Remove all denial of service limits
6014
+ :type unlimited: bool
5980
6015
:param memory: Force open via memory
5981
6016
:type memory: bool
5982
6017
:param access: Required access pattern for this file
@@ -5990,23 +6025,25 @@ Autogenerated methods
5990
6025
:rtype: Image or list[Image, Dict[str, mixed]]
5991
6026
:raises Error:
5992
6027
5993
- .. staticmethod :: tiffload_source(source, page=int, subifd =int, n= int, autorotate =bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
6028
+ .. staticmethod :: tiffload_source(source, page=int, n =int, autorotate=bool, subifd= int, unlimited =bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool, flags=bool)
5994
6029
5995
6030
Load tiff from source.
5996
6031
5997
6032
Example:
5998
- out = pyvips.Image.tiffload_source(source, page=int, subifd =int, n= int, autorotate =bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
6033
+ out = pyvips.Image.tiffload_source(source, page=int, n =int, autorotate=bool, subifd= int, unlimited =bool, memory=bool, access=Union[str, Access], fail_on=Union[str, FailOn], revalidate=bool)
5999
6034
6000
6035
:param source: Source to load from
6001
6036
:type source: Source
6002
6037
:param page: First page to load
6003
6038
:type page: int
6004
- :param subifd: Subifd index
6005
- :type subifd: int
6006
6039
:param n: Number of pages to load, -1 for all
6007
6040
:type n: int
6008
6041
:param autorotate: Rotate image using orientation tag
6009
6042
:type autorotate: bool
6043
+ :param subifd: Subifd index
6044
+ :type subifd: int
6045
+ :param unlimited: Remove all denial of service limits
6046
+ :type unlimited: bool
6010
6047
:param memory: Force open via memory
6011
6048
:type memory: bool
6012
6049
:param access: Required access pattern for this file
0 commit comments