Skip to content

Commit a8cc66c

Browse files
committedOct 12, 2024·
update for 8.16
1 parent 0c20db9 commit a8cc66c

File tree

3 files changed

+73
-18
lines changed

3 files changed

+73
-18
lines changed
 

‎examples/generate_phpdoc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
# needs pyvips 2.2.3 or later
44

‎src/ImageAutodoc.php

+16-17
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@
8787
* @throws Exception
8888
* @method Image abs(array $options = []) Absolute value of an image.
8989
* @throws Exception
90+
* @method Image addalpha(array $options = []) Append an alpha channel.
91+
* @throws Exception
9092
* @method Image affine(float[]|float $matrix, array $options = []) Affine transform of an image.
9193
* @throws Exception
9294
* @method static Image analyzeload(string $filename, array $options = []) Load an Analyze6 image.
@@ -120,15 +122,15 @@
120122
* @throws Exception
121123
* @method Image byteswap(array $options = []) Byteswap an image.
122124
* @throws Exception
123-
* @method Image cache(array $options = []) Cache an image.
124-
* @throws Exception
125125
* @method Image canny(array $options = []) Canny edge detector.
126126
* @throws Exception
127127
* @method Image case(Image[]|Image $cases, array $options = []) Use pixel values to pick cases from an array of images.
128128
* @throws Exception
129129
* @method Image cast(string $format, array $options = []) Cast an image.
130130
* @see BandFormat for possible values for $format
131131
* @throws Exception
132+
* @method Image clamp(array $options = []) Clamp values of an image.
133+
* @throws Exception
132134
* @method Image colourspace(string $space, array $options = []) Convert to a new colorspace.
133135
* @see Interpretation for possible values for $space
134136
* @throws Exception
@@ -372,18 +374,6 @@
372374
* @throws Exception
373375
* @method void jxlsave_target(Target $target, array $options = []) Save image in JPEG-XL format.
374376
* @throws Exception
375-
* @method static Image kakaduload(string $filename, array $options = []) Load JPEG2000 image.
376-
* @throws Exception
377-
* @method static Image kakaduload_buffer(string $buffer, array $options = []) Load JPEG2000 image.
378-
* @throws Exception
379-
* @method static Image kakaduload_source(Source $source, array $options = []) Load JPEG2000 image.
380-
* @throws Exception
381-
* @method void kakadusave(string $filename, array $options = []) Save image in JPEG2000 format.
382-
* @throws Exception
383-
* @method string kakadusave_buffer(array $options = []) Save image in JPEG2000 format.
384-
* @throws Exception
385-
* @method void kakadusave_target(Target $target, array $options = []) Save image in JPEG2000 format.
386-
* @throws Exception
387377
* @method Image labelregions(array $options = []) Label regions in an image.
388378
* @throws Exception
389379
* @method Image linear(float[]|float $a, float[]|float $b, array $options = []) Calculate (a * in + b).
@@ -451,13 +441,17 @@
451441
* @throws Exception
452442
* @method float max(array $options = []) Find image maximum.
453443
* @throws Exception
444+
* @method Image maxpair(Image $right, array $options = []) Maximum of a pair of images.
445+
* @throws Exception
454446
* @method Image measure(integer $h, integer $v, array $options = []) Measure a set of patches on a color chart.
455447
* @throws Exception
456448
* @method Image merge(Image $sec, string $direction, integer $dx, integer $dy, array $options = []) Merge two images.
457449
* @see Direction for possible values for $direction
458450
* @throws Exception
459451
* @method float min(array $options = []) Find image minimum.
460452
* @throws Exception
453+
* @method Image minpair(Image $right, array $options = []) Minimum of a pair of images.
454+
* @throws Exception
461455
* @method Image morph(Image $mask, string $morph, array $options = []) Morphology operation.
462456
* @see OperationMorphology for possible values for $morph
463457
* @throws Exception
@@ -499,9 +493,9 @@
499493
* @throws Exception
500494
* @method static Image pngload_source(Source $source, array $options = []) Load png from source.
501495
* @throws Exception
502-
* @method void pngsave(string $filename, array $options = []) Save image to png file.
496+
* @method void pngsave(string $filename, array $options = []) Save image to file as PNG.
503497
* @throws Exception
504-
* @method string pngsave_buffer(array $options = []) Save image to png buffer.
498+
* @method string pngsave_buffer(array $options = []) Save image to buffer as PNG.
505499
* @throws Exception
506500
* @method void pngsave_target(Target $target, array $options = []) Save image to target as PNG.
507501
* @throws Exception
@@ -553,7 +547,9 @@
553547
* @throws Exception
554548
* @method void rawsave(string $filename, array $options = []) Save image to raw file.
555549
* @throws Exception
556-
* @method void rawsave_fd(integer $fd, array $options = []) Write raw image to file descriptor.
550+
* @method string rawsave_buffer(array $options = []) Write raw image to buffer.
551+
* @throws Exception
552+
* @method void rawsave_target(Target $target, array $options = []) Write raw image to target.
557553
* @throws Exception
558554
* @method Image recomb(Image $m, array $options = []) Linear recombination with matrix.
559555
* @throws Exception
@@ -599,6 +595,9 @@
599595
* @throws Exception
600596
* @method Image scharr(array $options = []) Scharr edge detector.
601597
* @throws Exception
598+
* @method static Image sdf(integer $width, integer $height, string $shape, array $options = []) Create an SDF image.
599+
* @see SdfShape for possible values for $shape
600+
* @throws Exception
602601
* @method Image sequential(array $options = []) Check sequential access.
603602
* @throws Exception
604603
* @method Image sharpen(array $options = []) Unsharp masking for print.

‎src/SdfShape.php

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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 SdfShape 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 SdfShape
51+
{
52+
const CIRCLE = 'circle';
53+
const BOX = 'box';
54+
const ROUNDED_BOX = 'rounded-box';
55+
const LINE = 'line';
56+
}

0 commit comments

Comments
 (0)
Please sign in to comment.