Skip to content

Commit

Permalink
update for 8.16
Browse files Browse the repository at this point in the history
  • Loading branch information
jcupitt committed Oct 12, 2024
1 parent 0c20db9 commit a8cc66c
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 18 deletions.
2 changes: 1 addition & 1 deletion examples/generate_phpdoc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3

# needs pyvips 2.2.3 or later

Expand Down
33 changes: 16 additions & 17 deletions src/ImageAutodoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
* @throws Exception
* @method Image abs(array $options = []) Absolute value of an image.
* @throws Exception
* @method Image addalpha(array $options = []) Append an alpha channel.
* @throws Exception
* @method Image affine(float[]|float $matrix, array $options = []) Affine transform of an image.
* @throws Exception
* @method static Image analyzeload(string $filename, array $options = []) Load an Analyze6 image.
Expand Down Expand Up @@ -120,15 +122,15 @@
* @throws Exception
* @method Image byteswap(array $options = []) Byteswap an image.
* @throws Exception
* @method Image cache(array $options = []) Cache an image.
* @throws Exception
* @method Image canny(array $options = []) Canny edge detector.
* @throws Exception
* @method Image case(Image[]|Image $cases, array $options = []) Use pixel values to pick cases from an array of images.
* @throws Exception
* @method Image cast(string $format, array $options = []) Cast an image.
* @see BandFormat for possible values for $format
* @throws Exception
* @method Image clamp(array $options = []) Clamp values of an image.
* @throws Exception
* @method Image colourspace(string $space, array $options = []) Convert to a new colorspace.
* @see Interpretation for possible values for $space
* @throws Exception
Expand Down Expand Up @@ -372,18 +374,6 @@
* @throws Exception
* @method void jxlsave_target(Target $target, array $options = []) Save image in JPEG-XL format.
* @throws Exception
* @method static Image kakaduload(string $filename, array $options = []) Load JPEG2000 image.
* @throws Exception
* @method static Image kakaduload_buffer(string $buffer, array $options = []) Load JPEG2000 image.
* @throws Exception
* @method static Image kakaduload_source(Source $source, array $options = []) Load JPEG2000 image.
* @throws Exception
* @method void kakadusave(string $filename, array $options = []) Save image in JPEG2000 format.
* @throws Exception
* @method string kakadusave_buffer(array $options = []) Save image in JPEG2000 format.
* @throws Exception
* @method void kakadusave_target(Target $target, array $options = []) Save image in JPEG2000 format.
* @throws Exception
* @method Image labelregions(array $options = []) Label regions in an image.
* @throws Exception
* @method Image linear(float[]|float $a, float[]|float $b, array $options = []) Calculate (a * in + b).
Expand Down Expand Up @@ -451,13 +441,17 @@
* @throws Exception
* @method float max(array $options = []) Find image maximum.
* @throws Exception
* @method Image maxpair(Image $right, array $options = []) Maximum of a pair of images.
* @throws Exception
* @method Image measure(integer $h, integer $v, array $options = []) Measure a set of patches on a color chart.
* @throws Exception
* @method Image merge(Image $sec, string $direction, integer $dx, integer $dy, array $options = []) Merge two images.
* @see Direction for possible values for $direction
* @throws Exception
* @method float min(array $options = []) Find image minimum.
* @throws Exception
* @method Image minpair(Image $right, array $options = []) Minimum of a pair of images.
* @throws Exception
* @method Image morph(Image $mask, string $morph, array $options = []) Morphology operation.
* @see OperationMorphology for possible values for $morph
* @throws Exception
Expand Down Expand Up @@ -499,9 +493,9 @@
* @throws Exception
* @method static Image pngload_source(Source $source, array $options = []) Load png from source.
* @throws Exception
* @method void pngsave(string $filename, array $options = []) Save image to png file.
* @method void pngsave(string $filename, array $options = []) Save image to file as PNG.
* @throws Exception
* @method string pngsave_buffer(array $options = []) Save image to png buffer.
* @method string pngsave_buffer(array $options = []) Save image to buffer as PNG.
* @throws Exception
* @method void pngsave_target(Target $target, array $options = []) Save image to target as PNG.
* @throws Exception
Expand Down Expand Up @@ -553,7 +547,9 @@
* @throws Exception
* @method void rawsave(string $filename, array $options = []) Save image to raw file.
* @throws Exception
* @method void rawsave_fd(integer $fd, array $options = []) Write raw image to file descriptor.
* @method string rawsave_buffer(array $options = []) Write raw image to buffer.
* @throws Exception
* @method void rawsave_target(Target $target, array $options = []) Write raw image to target.
* @throws Exception
* @method Image recomb(Image $m, array $options = []) Linear recombination with matrix.
* @throws Exception
Expand Down Expand Up @@ -599,6 +595,9 @@
* @throws Exception
* @method Image scharr(array $options = []) Scharr edge detector.
* @throws Exception
* @method static Image sdf(integer $width, integer $height, string $shape, array $options = []) Create an SDF image.
* @see SdfShape for possible values for $shape
* @throws Exception
* @method Image sequential(array $options = []) Check sequential access.
* @throws Exception
* @method Image sharpen(array $options = []) Unsharp masking for print.
Expand Down
56 changes: 56 additions & 0 deletions src/SdfShape.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?php

/**
* This file was generated automatically. Do not edit!
*
* PHP version 7
*
* LICENSE:
*
* Copyright (c) 2016 John Cupitt
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* @category Images
* @package Jcupitt\Vips
* @author John Cupitt <jcupitt@gmail.com>
* @copyright 2016 John Cupitt
* @license https://opensource.org/licenses/MIT MIT
* @link https://github.com/jcupitt/php-vips
*/

namespace Jcupitt\Vips;

/**
* The SdfShape enum.
* @category Images
* @package Jcupitt\Vips
* @author John Cupitt <jcupitt@gmail.com>
* @copyright 2016 John Cupitt
* @license https://opensource.org/licenses/MIT MIT
* @link https://github.com/jcupitt/php-vips
*/
abstract class SdfShape
{
const CIRCLE = 'circle';
const BOX = 'box';
const ROUNDED_BOX = 'rounded-box';
const LINE = 'line';
}

0 comments on commit a8cc66c

Please sign in to comment.