Skip to content

Commit

Permalink
update docs for 8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jcupitt committed Oct 5, 2018
1 parent 8c2511d commit b569363
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Expand Up @@ -2,9 +2,11 @@

## master

## Version 2.0.14 (2018-8-6)
## Version 2.0.14 (2018-10-3)

* update links for new home [jcupitt]
* various doc fixes [janko-m]
* update docs for 8.7 [jcupitt]

## Version 2.0.13 (2018-8-6)

Expand Down
93 changes: 90 additions & 3 deletions lib/vips/methods.rb
Expand Up @@ -189,7 +189,7 @@ class Image
# @return [Float] Output value

# @!method stats(opts = {})
# Find image average.
# Find many image stats.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output array of statistics

Expand Down Expand Up @@ -506,6 +506,12 @@ class Image
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image

# @!method transpose3d(opts = {})
# Transpose3d an image.
# @param opts [Hash] Set of options
# @option opts [Integer] :page_height Height of each input page
# @return [Vips::Image] Output image

# @!method wrap(opts = {})
# Wrap image origin.
# @param opts [Hash] Set of options
Expand Down Expand Up @@ -555,6 +561,8 @@ class Image
# @param overlay [Vips::Image] Overlay image
# @param mode [Vips::BlendMode] VipsBlendMode to join with
# @param opts [Hash] Set of options
# @option opts [Integer] :x x position of overlay
# @option opts [Integer] :y y position of overlay
# @option opts [Vips::Interpretation] :compositing_space Composite images in this colour space
# @option opts [Boolean] :premultiplied Images have premultiplied alpha
# @return [Vips::Image] Output image
Expand Down Expand Up @@ -586,6 +594,7 @@ class Image
# @option opts [Vips::Align] :align Align on the low, centre or high edge
# @option opts [Integer] :dpi DPI to render at
# @option opts [Integer] :spacing Line spacing
# @option opts [String] :fontfile Load this font file
# @option opts [Integer] :autofit_dpi Output DPI selected by autofit
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items

Expand Down Expand Up @@ -938,6 +947,7 @@ class Image
# @option opts [Boolean] :fail Fail on first error
# @option opts [Float] :dpi Render at this DPI
# @option opts [Float] :scale Scale output by this factor
# @option opts [Array<Double>] :background Background value
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items

Expand All @@ -952,6 +962,7 @@ class Image
# @option opts [Boolean] :fail Fail on first error
# @option opts [Float] :dpi Render at this DPI
# @option opts [Float] :scale Scale output by this factor
# @option opts [Array<Double>] :background Background value
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items

Expand Down Expand Up @@ -1176,6 +1187,16 @@ class Image
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items

# @!method self.niftiload(filename, opts = {})
# Load a nifti image.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Boolean] :fail Fail on first error
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items

# @!method csvsave(filename, opts = {})
# Save image to csv file.
# @param filename [String] Filename to save to
Expand Down Expand Up @@ -1274,6 +1295,7 @@ class Image
# @option opts [Vips::ForeignDzContainer] :container Pyramid container type
# @option opts [Boolean] :properties Write a properties file to the output directory
# @option opts [Integer] :compression ZIP deflate compression level
# @option opts [Vips::RegionShrink] :region_shrink Method to shrink regions
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @return [nil]
Expand All @@ -1293,6 +1315,7 @@ class Image
# @option opts [Vips::ForeignDzContainer] :container Pyramid container type
# @option opts [Boolean] :properties Write a properties file to the output directory
# @option opts [Integer] :compression ZIP deflate compression level
# @option opts [Vips::RegionShrink] :region_shrink Method to shrink regions
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @return [VipsBlob] Buffer to save to
Expand All @@ -1306,6 +1329,10 @@ class Image
# @option opts [Integer] :page_height Set page height for multipage save
# @option opts [String] :profile ICC profile to embed
# @option opts [Vips::ForeignPngFilter] :filter libpng row filter flag(s)
# @option opts [Boolean] :palette Quantise to 8bpp palette
# @option opts [Integer] :colours Max number of palette colours
# @option opts [Integer] :Q Quantisation quality
# @option opts [Float] :dither Amount of dithering
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @return [nil]
Expand All @@ -1318,6 +1345,10 @@ class Image
# @option opts [Integer] :page_height Set page height for multipage save
# @option opts [String] :profile ICC profile to embed
# @option opts [Vips::ForeignPngFilter] :filter libpng row filter flag(s)
# @option opts [Boolean] :palette Quantise to 8bpp palette
# @option opts [Integer] :colours Max number of palette colours
# @option opts [Integer] :Q Quantisation quality
# @option opts [Float] :dither Amount of dithering
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @return [VipsBlob] Buffer to save to
Expand Down Expand Up @@ -1423,6 +1454,7 @@ class Image
# @option opts [Float] :yres Vertical resolution in pixels/mm
# @option opts [Boolean] :bigtiff Write a bigtiff image
# @option opts [Boolean] :properties Write a properties document to IMAGEDESCRIPTION
# @option opts [Vips::RegionShrink] :region_shrink Method to shrink regions
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @return [nil]
Expand All @@ -1446,6 +1478,28 @@ class Image
# @option opts [Float] :yres Vertical resolution in pixels/mm
# @option opts [Boolean] :bigtiff Write a bigtiff image
# @option opts [Boolean] :properties Write a properties document to IMAGEDESCRIPTION
# @option opts [Vips::RegionShrink] :region_shrink Method to shrink regions
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @return [VipsBlob] Buffer to save to

# @!method magicksave(filename, opts = {})
# Save file with imagemagick.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [String] :format Format to save in
# @option opts [Integer] :quality Quality to use
# @option opts [Integer] :page_height Set page height for multipage save
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @return [nil]

# @!method magicksave_buffer(opts = {})
# Save image to magick buffer.
# @param opts [Hash] Set of options
# @option opts [String] :format Format to save in
# @option opts [Integer] :quality Quality to use
# @option opts [Integer] :page_height Set page height for multipage save
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @return [VipsBlob] Buffer to save to
Expand All @@ -1459,6 +1513,15 @@ class Image
# @option opts [Array<Double>] :background Background value
# @return [nil]

# @!method niftisave(filename, opts = {})
# Save image to nifti file.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [Integer] :page_height Set page height for multipage save
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @return [nil]

# @!method self.thumbnail(filename, width, opts = {})
# Generate thumbnail from file.
# @param filename [String] Filename to read from
Expand Down Expand Up @@ -1578,10 +1641,22 @@ class Image
# @!method similarity(opts = {})
# Similarity transform of an image.
# @param opts [Hash] Set of options
# @option opts [Array<Double>] :background Background value
# @option opts [Vips::Interpolate] :interpolate Interpolate pixels with this
# @option opts [Float] :scale Scale by this factor
# @option opts [Float] :angle Rotate anticlockwise by this many degrees
# @option opts [Vips::Interpolate] :interpolate Interpolate pixels with this
# @option opts [Array<Double>] :background Background value
# @option opts [Float] :odx Horizontal output displacement
# @option opts [Float] :ody Vertical output displacement
# @option opts [Float] :idx Horizontal input displacement
# @option opts [Float] :idy Vertical input displacement
# @return [Vips::Image] Output image

# @!method rotate(angle, opts = {})
# Rotate an image by a number of degrees.
# @param angle [Float] Rotate anticlockwise by this many degrees
# @param opts [Hash] Set of options
# @option opts [Vips::Interpolate] :interpolate Interpolate pixels with this
# @option opts [Array<Double>] :background Background value
# @option opts [Float] :odx Horizontal output displacement
# @option opts [Float] :ody Vertical output displacement
# @option opts [Float] :idx Horizontal input displacement
Expand Down Expand Up @@ -1931,6 +2006,18 @@ class Image
# @option opts [Vips::Precision] :precision Convolve with this precision
# @return [Vips::Image] Output image

# @!method canny(opts = {})
# Canny edge detector.
# @param opts [Hash] Set of options
# @option opts [Float] :sigma Sigma of Gaussian
# @option opts [Vips::Precision] :precision Convolve with this precision
# @return [Vips::Image] Output image

# @!method sobel(opts = {})
# Sobel edge detector.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image

# @!method fwfft(opts = {})
# Forward fft.
# @param opts [Hash] Set of options
Expand Down

0 comments on commit b569363

Please sign in to comment.