Skip to content

Commit 233c1d0

Browse files
committed
update docs for libvips 8.18
1 parent 2e9280b commit 233c1d0

File tree

5 files changed

+100
-9
lines changed

5 files changed

+100
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ All notable changes to `php-vips` will be documented in this file.
66

77
- suppress autodoc of `composite` and `DemandStyle` [jcupitt]
88
- update docs for 8.17 [jcupitt]
9+
- update docs for 8.18 [jcupitt]
910

1011
## 2.5.0 - 2025-04-04
1112

src/ForeignKeep.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@ abstract class ForeignKeep
5555
const IPTC = 4;
5656
const ICC = 8;
5757
const OTHER = 16;
58-
const ALL = 31;
58+
const GAINMAP = 32;
59+
const ALL = 63;
5960
}

src/ForeignPdfPageBox.php

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?php
2+
3+
/**
4+
* This file was generated automatically. Do not edit!
5+
*
6+
* PHP version 7
7+
*
8+
* LICENSE:
9+
*
10+
* Copyright (c) 2016 John Cupitt
11+
*
12+
* Permission is hereby granted, free of charge, to any person obtaining
13+
* a copy of this software and associated documentation files (the
14+
* "Software"), to deal in the Software without restriction, including
15+
* without limitation the rights to use, copy, modify, merge, publish,
16+
* distribute, sublicense, and/or sell copies of the Software, and to
17+
* permit persons to whom the Software is furnished to do so, subject to
18+
* the following conditions:
19+
*
20+
* The above copyright notice and this permission notice shall be
21+
* included in all copies or substantial portions of the Software.
22+
*
23+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30+
*
31+
* @category Images
32+
* @package Jcupitt\Vips
33+
* @author John Cupitt <jcupitt@gmail.com>
34+
* @copyright 2016 John Cupitt
35+
* @license https://opensource.org/licenses/MIT MIT
36+
* @link https://github.com/jcupitt/php-vips
37+
*/
38+
39+
namespace Jcupitt\Vips;
40+
41+
/**
42+
* The ForeignPdfPageBox enum.
43+
* @category Images
44+
* @package Jcupitt\Vips
45+
* @author John Cupitt <jcupitt@gmail.com>
46+
* @copyright 2016 John Cupitt
47+
* @license https://opensource.org/licenses/MIT MIT
48+
* @link https://github.com/jcupitt/php-vips
49+
*/
50+
abstract class ForeignPdfPageBox
51+
{
52+
const MEDIA = 'media';
53+
const CROP = 'crop';
54+
const TRIM = 'trim';
55+
const BLEED = 'bleed';
56+
const ART = 'art';
57+
}

src/ImageAutodoc.php

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,18 @@
7575
* @throws Exception
7676
* @method Image LabS2LabQ(array $options = []) Transform short Lab to LabQ coding.
7777
* @throws Exception
78+
* @method Image Oklab2Oklch(array $options = []) Transform Oklab to Oklch.
79+
* @throws Exception
80+
* @method Image Oklab2XYZ(array $options = []) Transform Oklab to XYZ.
81+
* @throws Exception
82+
* @method Image Oklch2Oklab(array $options = []) Transform Oklch to Oklab.
83+
* @throws Exception
7884
* @method Image XYZ2CMYK(array $options = []) Transform XYZ to CMYK.
7985
* @throws Exception
8086
* @method Image XYZ2Lab(array $options = []) Transform XYZ to Lab.
8187
* @throws Exception
88+
* @method Image XYZ2Oklab(array $options = []) Transform XYZ to Oklab.
89+
* @throws Exception
8290
* @method Image XYZ2Yxy(array $options = []) Transform XYZ to Yxy.
8391
* @throws Exception
8492
* @method Image XYZ2scRGB(array $options = []) Transform XYZ to scRGB.
@@ -183,6 +191,12 @@
183191
* @throws Exception
184192
* @method Image dECMC(Image $right, array $options = []) Calculate dECMC.
185193
* @throws Exception
194+
* @method static Image dcrawload(string $filename, array $options = []) Load RAW camera files.
195+
* @throws Exception
196+
* @method static Image dcrawload_buffer(string $buffer, array $options = []) Load RAW camera files.
197+
* @throws Exception
198+
* @method static Image dcrawload_source(Source $source, array $options = []) Load RAW camera files.
199+
* @throws Exception
186200
* @method float deviate(array $options = []) Find image standard deviation.
187201
* @throws Exception
188202
* @method Image draw_circle(float[]|float $ink, integer $cx, integer $cy, integer $radius, array $options = []) Draw a circle on an image.
@@ -352,13 +366,13 @@
352366
* @throws Exception
353367
* @method static Image jpegload_source(Source $source, array $options = []) Load image from jpeg source.
354368
* @throws Exception
355-
* @method void jpegsave(string $filename, array $options = []) Save image to jpeg file.
369+
* @method void jpegsave(string $filename, array $options = []) Save as jpeg.
356370
* @throws Exception
357-
* @method string jpegsave_buffer(array $options = []) Save image to jpeg buffer.
371+
* @method string jpegsave_buffer(array $options = []) Save as jpeg.
358372
* @throws Exception
359373
* @method void jpegsave_mime(array $options = []) Save image to jpeg mime.
360374
* @throws Exception
361-
* @method void jpegsave_target(Target $target, array $options = []) Save image to jpeg target.
375+
* @method void jpegsave_target(Target $target, array $options = []) Save as jpeg.
362376
* @throws Exception
363377
* @method static Image jxlload(string $filename, array $options = []) Load JPEG-XL image.
364378
* @throws Exception
@@ -384,6 +398,8 @@
384398
* @throws Exception
385399
* @method static Image magickload_buffer(string $buffer, array $options = []) Load buffer with ImageMagick7.
386400
* @throws Exception
401+
* @method static Image magickload_source(Source $source, array $options = []) Load source with ImageMagick7.
402+
* @throws Exception
387403
* @method void magicksave(string $filename, array $options = []) Save file with ImageMagick.
388404
* @throws Exception
389405
* @method string magicksave_buffer(array $options = []) Save image to magick buffer.
@@ -475,11 +491,11 @@
475491
* @throws Exception
476492
* @method static Image openslideload_source(Source $source, array $options = []) Load source with OpenSlide.
477493
* @throws Exception
478-
* @method static Image pdfload(string $filename, array $options = []) Load PDF from file.
494+
* @method static Image pdfload(string $filename, array $options = []) Load PDF from file (poppler).
479495
* @throws Exception
480-
* @method static Image pdfload_buffer(string $buffer, array $options = []) Load PDF from buffer.
496+
* @method static Image pdfload_buffer(string $buffer, array $options = []) Load PDF from buffer (poppler).
481497
* @throws Exception
482-
* @method static Image pdfload_source(Source $source, array $options = []) Load PDF from source.
498+
* @method static Image pdfload_source(Source $source, array $options = []) Load PDF from source (poppler).
483499
* @throws Exception
484500
* @method integer percent(float $percent, array $options = []) Find threshold for percent of pixels.
485501
* @throws Exception
@@ -493,9 +509,9 @@
493509
* @throws Exception
494510
* @method static Image pngload_source(Source $source, array $options = []) Load png from source.
495511
* @throws Exception
496-
* @method void pngsave(string $filename, array $options = []) Save image to file as PNG.
512+
* @method void pngsave(string $filename, array $options = []) Save image to file as png.
497513
* @throws Exception
498-
* @method string pngsave_buffer(array $options = []) Save image to buffer as PNG.
514+
* @method string pngsave_buffer(array $options = []) Save image to buffer as png.
499515
* @throws Exception
500516
* @method void pngsave_target(Target $target, array $options = []) Save image to target as PNG.
501517
* @throws Exception
@@ -672,6 +688,20 @@
672688
* @throws Exception
673689
* @method Image transpose3d(array $options = []) Transpose3d an image.
674690
* @throws Exception
691+
* @method Image uhdr2scRGB(array $options = []) Transform uhdr to scRGB.
692+
* @throws Exception
693+
* @method static Image uhdrload(string $filename, array $options = []) Load a UHDR image.
694+
* @throws Exception
695+
* @method static Image uhdrload_buffer(string $buffer, array $options = []) Load a UHDR image.
696+
* @throws Exception
697+
* @method static Image uhdrload_source(Source $source, array $options = []) Load a UHDR image.
698+
* @throws Exception
699+
* @method void uhdrsave(string $filename, array $options = []) Save image in UltraHDR format.
700+
* @throws Exception
701+
* @method string uhdrsave_buffer(array $options = []) Save image in UltraHDR format.
702+
* @throws Exception
703+
* @method void uhdrsave_target(Target $target, array $options = []) Save image in UltraHDR format.
704+
* @throws Exception
675705
* @method Image unpremultiply(array $options = []) Unpremultiply image alpha.
676706
* @throws Exception
677707
* @method static Image vipsload(string $filename, array $options = []) Load vips from file.

src/Interpretation.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,6 @@ abstract class Interpretation
6969
const MATRIX = 'matrix';
7070
const SCRGB = 'scrgb';
7171
const HSV = 'hsv';
72+
const OKLAB = 'oklab';
73+
const OKLCH = 'oklch';
7274
}

0 commit comments

Comments
 (0)