Skip to content

Add missing enums #422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* improve NULL pointer handling [dloebl]
* improve GFlags argument handling [jcupitt]
* add missing flag and enum docs [jcupitt]

## Version 2.2.4 (2025-06-05)

Expand Down
10 changes: 10 additions & 0 deletions lib/vips/combine.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Vips
# How to combine values, see for example {Image#compass}.
#
# * `:max` take the maximum of the possible values
# * `:sum` sum all the values
# * `:min` take the minimum value

class Combine < Symbol
end
end
15 changes: 15 additions & 0 deletions lib/vips/fail_on.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module Vips
# How sensitive loaders are to errors, from never stop (very insensitive),
# to stop on the smallest warning (very sensitive).
#
# Each implies the ones before it, so `:error` implies `:truncated`, for
# example.
#
# * `:none` never stop
# * `:truncated` stop on image truncated, nothing else
# * `:error` stop on serious error or truncation
# * `:warning` stop on anything, even warnings

class FailOn < Symbol
end
end
10 changes: 10 additions & 0 deletions lib/vips/foreign_dz_container.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Vips
# The container format to use
#
# * `:fs` write tiles to the filesystem
# * `:zip` write tiles to a zip file
# * `:szi` write to a szi file

class ForeignDzContainer < Symbol
end
end
10 changes: 10 additions & 0 deletions lib/vips/foreign_dz_depth.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Vips
# How many pyramid layers to create.
#
# * `:onepixel` create layers down to 1x1 pixel
# * `:onetile` create layers down to 1x1 tile
# * `:one` only create a single layer

class ForeignDzDepth < Symbol
end
end
12 changes: 12 additions & 0 deletions lib/vips/foreign_dz_layout.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module Vips
# What directory layout and metadata standard to use.
#
# * `:dz` use DeepZoom directory layout
# * `:zoomify` use Zoomify directory layout
# * `:google` use Google maps directory layout
# * `:iiif` use IIIF v2 directory layout
# * `:iiif3` use IIIF v3 directory layout

class ForeignDzLayout < Symbol
end
end
11 changes: 11 additions & 0 deletions lib/vips/foreign_heif_compression.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Vips
# The compression format to use inside a HEIF container
#
# * `:hevc` x265
# * `:avc` x264
# * `:jpeg` jpeg
# * `:av1` aom

class ForeignHeifCompression < Symbol
end
end
11 changes: 11 additions & 0 deletions lib/vips/foreign_heif_encoder.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Vips
# The selected encoder to use.
#
# * `:auto` auto
# * `:rav1e` RAV1E
# * `:svt` SVT-AV1
# * `:x265` x265

class ForeignHeifEncoder < Symbol
end
end
13 changes: 13 additions & 0 deletions lib/vips/foreign_keep.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module Vips
# Savers can be given a set of metadata items to keep.
#
# * `:none` remove all metadata
# * `:exif` keep EXIF metadata
# * `:xmp` keep XMP metadata
# * `:iptc` keep IPTC metadata
# * `:icc` keep ICC profiles
# * `:other` keep other metadata

class ForeignKeep < Symbol
end
end
13 changes: 13 additions & 0 deletions lib/vips/foreign_png_filter.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module Vips
# The set of filters for PNG save. See http://www.w3.org/TR/PNG-Filters.html
#
# * `:none` no filtering
# * `:sub` difference to the left
# * `:up` difference up
# * `:avg` average of left and up
# * `:paeth` pick best neighbor predictor automatically
# * `:all` adaptive

class ForeignPngFilter < Symbol
end
end
12 changes: 12 additions & 0 deletions lib/vips/foreign_ppm_format.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module Vips
# The netpbm file format to save as.
#
# * `:pbm` portable bitmap
# * `:pgm` portable greymap
# * `:ppm` portable pixmap
# * `:pfm` portable float map
# * `:pnm` portable anymap

class ForeignPpmFormat < Symbol
end
end
10 changes: 10 additions & 0 deletions lib/vips/foreign_subsample.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Vips
# Set subsampling mode.
#
# * `:auto` prevent subsampling when quality >= 90
# * `:on` always perform subsampling
# * `:off` never perform subsampling

class ForeignSubsample < Symbol
end
end
16 changes: 16 additions & 0 deletions lib/vips/foreign_tiff_compression.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module Vips
# The compression types supported by the tiff writer.
#
# * `:none` no compression
# * `:jpeg` jpeg compression
# * `:deflate` deflate (zip) compression
# * `:packbits` packbits compression
# * `:ccittfax4` fax4 compression
# * `:lzw` LZW compression
# * `:webp` WEBP compression
# * `:zstd` ZSTD compression
# * `:jp2k` JP2K compression

class ForeignTiffCompression < Symbol
end
end
10 changes: 10 additions & 0 deletions lib/vips/foreign_tiff_predictor.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Vips
# The predictor can help deflate and lzw compression.
#
# * `:none` no prediction
# * `:horizontal` horizontal differencing
# * `:float` float predictor

class ForeignTiffPredictor < Symbol
end
end
9 changes: 9 additions & 0 deletions lib/vips/foreign_tiff_resunit.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Vips
# Use inches or centimeters as the resolution unit for a tiff file.
#
# * `:cm` use centimeters
# * `:inch` use inches

class ForeignTiffResunit < Symbol
end
end
13 changes: 13 additions & 0 deletions lib/vips/foreign_webp_preset.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module Vips
# Tune lossy encoder settings for different image types.
#
# * `:default` default preset
# * `:picture` digital picture, like portrait, inner shot
# * `:photo` outdoor photograph, with natural lighting
# * `:drawing` hand or line drawing, with high-contrast details
# * `:icon` small-sized colorful images
# * `:text` text-like

class ForeignWebpPreset < Symbol
end
end
12 changes: 12 additions & 0 deletions lib/vips/intent.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module Vips
# The rendering intent.
#
# * `:perceptual` perceptual rendering intent
# * `:relative` relative colorimetric rendering intent
# * `:saturation` saturation rendering intent
# * `:absolute` absolute colorimetric rendering intent
# * `:auto` the rendering intent that the profile suggests

class Intent < Symbol
end
end
7 changes: 4 additions & 3 deletions lib/vips/interpretation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module Vips
# * `:multiband` generic many-band image
# * `:b_w` some kind of single-band image
# * `:histogram` a 1D image, eg. histogram or lookup table
# * `:fourier` image is in fourier space
# * `:xyz` the first three bands are CIE XYZ
# * `:lab` pixels are in CIE Lab space
# * `:cmyk` the first four bands are in CMYK space
Expand All @@ -16,12 +15,14 @@ module Vips
# * `:lch` pixels are in CIE LCh space
# * `:labs` CIE LAB coded as three signed 16-bit values
# * `:srgb` pixels are sRGB
# * `:hsv` pixels are HSV
# * `:scrgb` pixels are scRGB
# * `:yxy` pixels are CIE Yxy
# * `:fourier` image is in fourier space
# * `:rgb16` generic 16-bit RGB
# * `:grey16` generic 16-bit mono
# * `:matrix` a matrix
# * `:scrgb` pixels are scRGB
# * `:hsv` pixels are HSV

class Interpretation < Symbol
end
end
15 changes: 9 additions & 6 deletions lib/vips/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ module Vips
#
# At least these should be available:
#
# * `:nearest` Nearest-neighbour interpolation.
# * `:linear` Linear interpolation.
# * `:cubic` Cubic interpolation.
# * `:lanczos2` Two-lobe Lanczos
# * `:lanczos3` Three-lobe Lanczos
# * `:nearest` nearest-neighbour interpolation
# * `:linear` linear interpolation
# * `:cubic` cubic interpolation
# * `:mitchell` Mitchell interpolation
# * `:lanczos2` two-lobe Lanczos
# * `:lanczos3` three-lobe Lanczos
# * `:mks2013` convolve with Magic Kernel Sharp 2013
# * `:mks2021` convolve with Magic Kernel Sharp 2021
#
# For example:
#
# ```ruby
# im = im.resize 3, :kernel => :lanczos2
# im = im.resize 3, kernel: :lanczos2
# ```

class Kernel < Symbol
Expand Down
9 changes: 9 additions & 0 deletions lib/vips/operation_morphology.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Vips
# Pick a morphological operator.
#
# * `:erode` true if all set
# * `:dilate` true if any set

class OperationMorphology < Symbol
end
end
10 changes: 10 additions & 0 deletions lib/vips/pcs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Vips
# Pick a Profile Connection Space for {Image#icc_import} and
# {Image#icc_export}`.
#
# * `:lab` use CIELAB D65 as the Profile Connection Space
# * `:xyz` use XYZ as the Profile Connection Space

class PCS < Symbol
end
end
10 changes: 10 additions & 0 deletions lib/vips/precision.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Vips
# How accurate an operation should be.
#
# * `:integer` int everywhere
# * `:float` float everywhere
# * `:approximate` approximate integer output

class Precision < Symbol
end
end
13 changes: 13 additions & 0 deletions lib/vips/region_shrink.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module Vips
# ow to calculate the output pixels when shrinking a 2x2 region.
#
# * `:mean` use the average
# * `:median` use the median
# * `:mode` use the mode
# * `:max` use the maximum
# * `:min` use the minimum
# * `:nearest` use the top-left pixel

class RegionShrink < Symbol
end
end
11 changes: 11 additions & 0 deletions lib/vips/sdf_shape.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Vips
# The SDF to generate, see {Image.sdf}.
#
# * `:circle` a circle at @a, radius @r
# * `:box` a box from @a to @b
# * `:rounded_box` a box with rounded @corners from @a to @b
# * `:line` a line from @a to @b

class SdfShape < Symbol
end
end
11 changes: 11 additions & 0 deletions lib/vips/text_wrap.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Vips
# Sets the word wrapping style for {Image#text} when used with a
# maximum width.
#
# * `:char` wrap at character boundaries
# * `:word_char` wrap at word boundaries, but fall back to character boundaries if there is not enough space for a full word
# * `:none` no wrapping

class TextWrap < Symbol
end
end
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy