libvips/api

Search:
Group by:

Types

HorizontalAlignment = enum
  HAlignLeft, HAlignCenter, HAlignRight
VerticalAlignment = enum
  VAlignTop, VAlignCenter, VAlignBottom
VipsError = object of CatchableError
A VipsError represents an error returned by libvips operations.

Procs

proc bands(img: ptr VipsImage): int {....raises: [], tags: [], forbids: [].}
Get the number of bands (channels) in the image.
proc blend(img: ptr VipsImage; overlay: ptr VipsImage; mode: VipsBlendMode): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Blend the overlay image onto the base image using the specified mode.
proc blendAdd(img: ptr VipsImage; overlay: ptr VipsImage): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Blend the overlay image onto the base image using add mode.
proc blendDarken(img: ptr VipsImage; overlay: ptr VipsImage): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Blend the overlay image onto the base image using darken mode.
proc blendDifference(img: ptr VipsImage; overlay: ptr VipsImage): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Blend the overlay image onto the base image using difference mode.
proc blendExclusion(img: ptr VipsImage; overlay: ptr VipsImage): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Blend the overlay image onto the base image using exclusion mode.
proc blendLighten(img: ptr VipsImage; overlay: ptr VipsImage): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Blend the overlay image onto the base image using lighten mode.
proc blendMultiply(img: ptr VipsImage; overlay: ptr VipsImage): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Blend the overlay image onto the base image using multiply mode.
proc blendOverlay(img: ptr VipsImage; overlay: ptr VipsImage): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Blend the overlay image onto the base image using overlay mode.
proc blendScreen(img: ptr VipsImage; overlay: ptr VipsImage): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Blend the overlay image onto the base image using screen mode.
proc blur(img: ptr VipsImage; sigma: float = 1.0): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Blur the image using a Gaussian filter with the specified sigma.
proc close(img: ptr VipsImage) {....raises: [], tags: [], forbids: [].}
proc crop(img: ptr VipsImage; left, top, width, height: int): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Crop the image to the specified rectangle.
proc crop(img: ptr VipsImage; width, height: int): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Crop the image to the specified width and height, centered.
proc enableVipsAcceleration(numWorkers: int) {....raises: [], tags: [], forbids: [].}
proc flip(img: ptr VipsImage; vertical: bool = true): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Flip the image vertically or horizontally.
proc format(img: ptr VipsImage): VipsBandFormat {....raises: [], tags: [],
    forbids: [].}
Get the pixel format of the image.
proc height(img: ptr VipsImage): int {....raises: [], tags: [], forbids: [].}
Get the height of the image.
proc interpretation(img: ptr VipsImage): VipsInterpretation {....raises: [],
    tags: [], forbids: [].}
Get the color interpretation of the image.
proc invert(img: ptr VipsImage): ptr VipsImage {....raises: [VipsError], tags: [],
    forbids: [].}
Invert the colors of the image.
proc openImage(path: string): ptr VipsImage {....raises: [], tags: [], forbids: [].}
Open an image from the specified file path.
proc resize(img: ptr VipsImage; scale: float): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Resize the image by the given scale factor.
proc rotate(img: ptr VipsImage; angle: float = 90.0): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Rotate the image by the specified angle (in degrees).
proc save(img: ptr VipsImage; path: string) {....raises: [VipsError], tags: [],
    forbids: [].}
Save the image to the specified file path.
proc sharpen(img: ptr VipsImage): ptr VipsImage {....raises: [VipsError], tags: [],
    forbids: [].}
Sharpen the image.
proc thumbnail(img: ptr VipsImage; size: int): ptr VipsImage {.
    ...raises: [VipsError], tags: [], forbids: [].}
Create a thumbnail of the image with the specified maximum size.
proc width(img: ptr VipsImage): int {....raises: [], tags: [], forbids: [].}
Get the width of the image.

Templates

template init_vips(body: untyped)
template init_vips_accelerated(workers: int; body: untyped)