@@ -351,7 +351,6 @@ Autogenerated methods
351
351
~subtract
352
352
~sum
353
353
~svgload
354
- ~svgload
355
354
~svgload_buffer
356
355
~svgload_source
357
356
~switch
@@ -1793,50 +1792,53 @@ Autogenerated methods
1793
1792
:rtype: Image or list[Image, Dict[str, mixed]]
1794
1793
:raises Error:
1795
1794
1796
- .. method :: heifsave(filename, Q=int, lossless=bool, compression=str, strip=bool, background=list[float], page_height=int)
1795
+ .. method :: heifsave(filename, Q=int, lossless=bool, compression=str, speed=int, strip=bool, background=list[float], page_height=int)
1797
1796
1798
1797
Save image in HEIF format.
1799
1798
1800
1799
Example:
1801
- = in.heifsave(filename, Q=int, lossless=bool, compression=str, strip=bool, background=list[float], page_height=int)
1800
+ = in.heifsave(filename, Q=int, lossless=bool, compression=str, speed=int, strip=bool, background=list[float], page_height=int)
1802
1801
1803
1802
:param str filename: Filename to load from
1804
1803
:param int Q: Q factor
1805
1804
:param bool lossless: Enable lossless compression
1806
1805
:param str compression: Compression format
1806
+ :param int speed: CPU effort
1807
1807
:param bool strip: Strip all metadata from image
1808
1808
:param list[float] background: Background value
1809
1809
:param int page_height: Set page height for multipage save
1810
1810
:rtype: list[]
1811
1811
:raises Error:
1812
1812
1813
- .. method :: heifsave_buffer(Q=int, lossless=bool, compression=str, strip=bool, background=list[float], page_height=int)
1813
+ .. method :: heifsave_buffer(Q=int, lossless=bool, compression=str, speed=int, strip=bool, background=list[float], page_height=int)
1814
1814
1815
1815
Save image in HEIF format.
1816
1816
1817
1817
Example:
1818
- buffer = in.heifsave_buffer(Q=int, lossless=bool, compression=str, strip=bool, background=list[float], page_height=int)
1818
+ buffer = in.heifsave_buffer(Q=int, lossless=bool, compression=str, speed=int, strip=bool, background=list[float], page_height=int)
1819
1819
1820
1820
:param int Q: Q factor
1821
1821
:param bool lossless: Enable lossless compression
1822
1822
:param str compression: Compression format
1823
+ :param int speed: CPU effort
1823
1824
:param bool strip: Strip all metadata from image
1824
1825
:param list[float] background: Background value
1825
1826
:param int page_height: Set page height for multipage save
1826
1827
:rtype: str
1827
1828
:raises Error:
1828
1829
1829
- .. method :: heifsave_target(target, Q=int, lossless=bool, compression=str, strip=bool, background=list[float], page_height=int)
1830
+ .. method :: heifsave_target(target, Q=int, lossless=bool, compression=str, speed=int, strip=bool, background=list[float], page_height=int)
1830
1831
1831
1832
Save image in HEIF format.
1832
1833
1833
1834
Example:
1834
- = in.heifsave_target(target, Q=int, lossless=bool, compression=str, strip=bool, background=list[float], page_height=int)
1835
+ = in.heifsave_target(target, Q=int, lossless=bool, compression=str, speed=int, strip=bool, background=list[float], page_height=int)
1835
1836
1836
1837
:param Target target: Target to save to
1837
1838
:param int Q: Q factor
1838
1839
:param bool lossless: Enable lossless compression
1839
1840
:param str compression: Compression format
1841
+ :param int speed: CPU effort
1840
1842
:param bool strip: Strip all metadata from image
1841
1843
:param list[float] background: Background value
1842
1844
:param int page_height: Set page height for multipage save
@@ -2800,7 +2802,7 @@ Autogenerated methods
2800
2802
out = ref.merge(sec, direction, dx, dy, mblend=int)
2801
2803
2802
2804
:param Image sec: Secondary image
2803
- :param str direction: Horizontal or vertcial merge
2805
+ :param str direction: Horizontal or vertical merge
2804
2806
:param int dx: Horizontal displacement from sec to ref
2805
2807
:param int dy: Vertical displacement from sec to ref
2806
2808
:param int mblend: Maximum blend size
@@ -2843,7 +2845,7 @@ Autogenerated methods
2843
2845
out = ref.mosaic(sec, direction, xref, yref, xsec, ysec, hwindow=int, harea=int, mblend=int, bandno=int)
2844
2846
2845
2847
:param Image sec: Secondary image
2846
- :param str direction: Horizontal or vertcial mosaic
2848
+ :param str direction: Horizontal or vertical mosaic
2847
2849
:param int xref: Position of reference tie-point
2848
2850
:param int yref: Position of reference tie-point
2849
2851
:param int xsec: Position of secondary tie-point
@@ -2869,7 +2871,7 @@ Autogenerated methods
2869
2871
out = ref.mosaic1(sec, direction, xr1, yr1, xs1, ys1, xr2, yr2, xs2, ys2, hwindow=int, harea=int, search=bool, interpolate=GObject, mblend=int, bandno=int)
2870
2872
2871
2873
:param Image sec: Secondary image
2872
- :param str direction: Horizontal or vertcial mosaic
2874
+ :param str direction: Horizontal or vertical mosaic
2873
2875
:param int xr1: Position of first reference tie-point
2874
2876
:param int yr1: Position of first reference tie-point
2875
2877
:param int xs1: Position of first secondary tie-point
@@ -3243,7 +3245,7 @@ Autogenerated methods
3243
3245
:param str filename: Filename to save to
3244
3246
:param bool ascii: save as ascii
3245
3247
:param bool squash: save as one bit
3246
- :param int bitdepth: Write as a 1 bit image
3248
+ :param int bitdepth: set to 1 to write as a 1 bit image
3247
3249
:param bool strip: Strip all metadata from image
3248
3250
:param list[float] background: Background value
3249
3251
:param int page_height: Set page height for multipage save
@@ -3260,7 +3262,7 @@ Autogenerated methods
3260
3262
:param Target target: Target to save to
3261
3263
:param bool ascii: save as ascii
3262
3264
:param bool squash: save as one bit
3263
- :param int bitdepth: Write as a 1 bit image
3265
+ :param int bitdepth: set to 1 to write as a 1 bit image
3264
3266
:param bool strip: Strip all metadata from image
3265
3267
:param list[float] background: Background value
3266
3268
:param int page_height: Set page height for multipage save
@@ -3947,26 +3949,6 @@ Autogenerated methods
3947
3949
:rtype: Image or list[Image, Dict[str, mixed]]
3948
3950
:raises Error:
3949
3951
3950
- .. staticmethod :: svgload(filename, dpi=float, scale=float, unlimited=bool, memory=bool, access=str, sequential=bool, fail=bool, disc=bool, flags=bool)
3951
-
3952
- Load SVG with rsvg.
3953
-
3954
- Example:
3955
- out = pyvips.Image.svgload(filename, dpi=float, scale=float, unlimited=bool, memory=bool, access=str, sequential=bool, fail=bool, disc=bool)
3956
-
3957
- :param str filename: Filename to load from
3958
- :param float dpi: Render at this DPI
3959
- :param float scale: Scale output by this factor
3960
- :param bool unlimited: Allow SVG of any size
3961
- :param bool memory: Force open via memory
3962
- :param str access: Required access pattern for this file
3963
- :param bool sequential: Sequential read only
3964
- :param bool fail: Fail on first error
3965
- :param bool disc: Open to disc
3966
- :param bool flags: enable output: Flags for this file
3967
- :rtype: Image or list[Image, Dict[str, mixed]]
3968
- :raises Error:
3969
-
3970
3952
.. staticmethod :: svgload_buffer(buffer, dpi=float, scale=float, unlimited=bool, memory=bool, access=str, sequential=bool, fail=bool, disc=bool, flags=bool)
3971
3953
3972
3954
Load SVG with rsvg.
@@ -4426,12 +4408,12 @@ Autogenerated methods
4426
4408
:rtype: Image or list[Image, Dict[str, mixed]]
4427
4409
:raises Error:
4428
4410
4429
- .. method :: webpsave(filename, Q=int, lossless=bool, preset=str, smart_subsample=bool, near_lossless=bool, alpha_q=int, min_size=bool, kmin=int, kmax=int, reduction_effort=int, strip=bool, background=list[float], page_height=int)
4411
+ .. method :: webpsave(filename, Q=int, lossless=bool, preset=str, smart_subsample=bool, near_lossless=bool, alpha_q=int, min_size=bool, kmin=int, kmax=int, reduction_effort=int, profile=str, strip=bool, background=list[float], page_height=int)
4430
4412
4431
4413
Save image to webp file.
4432
4414
4433
4415
Example:
4434
- = in.webpsave(filename, Q=int, lossless=bool, preset=str, smart_subsample=bool, near_lossless=bool, alpha_q=int, min_size=bool, kmin=int, kmax=int, reduction_effort=int, strip=bool, background=list[float], page_height=int)
4416
+ = in.webpsave(filename, Q=int, lossless=bool, preset=str, smart_subsample=bool, near_lossless=bool, alpha_q=int, min_size=bool, kmin=int, kmax=int, reduction_effort=int, profile=str, strip=bool, background=list[float], page_height=int)
4435
4417
4436
4418
:param str filename: Filename to save to
4437
4419
:param int Q: Q factor
@@ -4444,18 +4426,19 @@ Autogenerated methods
4444
4426
:param int kmin: Minimum number of frames between key frames
4445
4427
:param int kmax: Maximum number of frames between key frames
4446
4428
:param int reduction_effort: Level of CPU effort to reduce file size
4429
+ :param str profile: ICC profile to embed
4447
4430
:param bool strip: Strip all metadata from image
4448
4431
:param list[float] background: Background value
4449
4432
:param int page_height: Set page height for multipage save
4450
4433
:rtype: list[]
4451
4434
:raises Error:
4452
4435
4453
- .. method :: webpsave_buffer(Q=int, lossless=bool, preset=str, smart_subsample=bool, near_lossless=bool, alpha_q=int, min_size=bool, kmin=int, kmax=int, reduction_effort=int, strip=bool, background=list[float], page_height=int)
4436
+ .. method :: webpsave_buffer(Q=int, lossless=bool, preset=str, smart_subsample=bool, near_lossless=bool, alpha_q=int, min_size=bool, kmin=int, kmax=int, reduction_effort=int, profile=str, strip=bool, background=list[float], page_height=int)
4454
4437
4455
4438
Save image to webp buffer.
4456
4439
4457
4440
Example:
4458
- buffer = in.webpsave_buffer(Q=int, lossless=bool, preset=str, smart_subsample=bool, near_lossless=bool, alpha_q=int, min_size=bool, kmin=int, kmax=int, reduction_effort=int, strip=bool, background=list[float], page_height=int)
4441
+ buffer = in.webpsave_buffer(Q=int, lossless=bool, preset=str, smart_subsample=bool, near_lossless=bool, alpha_q=int, min_size=bool, kmin=int, kmax=int, reduction_effort=int, profile=str, strip=bool, background=list[float], page_height=int)
4459
4442
4460
4443
:param int Q: Q factor
4461
4444
:param bool lossless: enable lossless compression
@@ -4467,18 +4450,19 @@ Autogenerated methods
4467
4450
:param int kmin: Minimum number of frames between key frames
4468
4451
:param int kmax: Maximum number of frames between key frames
4469
4452
:param int reduction_effort: Level of CPU effort to reduce file size
4453
+ :param str profile: ICC profile to embed
4470
4454
:param bool strip: Strip all metadata from image
4471
4455
:param list[float] background: Background value
4472
4456
:param int page_height: Set page height for multipage save
4473
4457
:rtype: str
4474
4458
:raises Error:
4475
4459
4476
- .. method :: webpsave_target(target, Q=int, lossless=bool, preset=str, smart_subsample=bool, near_lossless=bool, alpha_q=int, min_size=bool, kmin=int, kmax=int, reduction_effort=int, strip=bool, background=list[float], page_height=int)
4460
+ .. method :: webpsave_target(target, Q=int, lossless=bool, preset=str, smart_subsample=bool, near_lossless=bool, alpha_q=int, min_size=bool, kmin=int, kmax=int, reduction_effort=int, profile=str, strip=bool, background=list[float], page_height=int)
4477
4461
4478
4462
Save image to webp target.
4479
4463
4480
4464
Example:
4481
- = in.webpsave_target(target, Q=int, lossless=bool, preset=str, smart_subsample=bool, near_lossless=bool, alpha_q=int, min_size=bool, kmin=int, kmax=int, reduction_effort=int, strip=bool, background=list[float], page_height=int)
4465
+ = in.webpsave_target(target, Q=int, lossless=bool, preset=str, smart_subsample=bool, near_lossless=bool, alpha_q=int, min_size=bool, kmin=int, kmax=int, reduction_effort=int, profile=str, strip=bool, background=list[float], page_height=int)
4482
4466
4483
4467
:param Target target: Target to save to
4484
4468
:param int Q: Q factor
@@ -4491,6 +4475,7 @@ Autogenerated methods
4491
4475
:param int kmin: Minimum number of frames between key frames
4492
4476
:param int kmax: Maximum number of frames between key frames
4493
4477
:param int reduction_effort: Level of CPU effort to reduce file size
4478
+ :param str profile: ICC profile to embed
4494
4479
:param bool strip: Strip all metadata from image
4495
4480
:param list[float] background: Background value
4496
4481
:param int page_height: Set page height for multipage save
0 commit comments