View Source Vix.Vips.MutableImage (vix v0.19.0)

Vips Mutable Image

See Vix.Vips.Image.mutate/2

Link to this section Summary

Types

t()

Represents a mutable instance of VipsImage

Functions

Return the number of bands of a mutable image.

Returns a specification to start this module under a supervisor.

Returns metadata from the image

Return a boolean indicating if a mutable image has an alpha band.

Return the height of a mutable image.

Remove a metadata item from an image.

Create a metadata item on an image of the specified type. Vix converts value to specified GType

Return the shape of the umage as {width, height, bands}.

Set the value of existing metadata item on an image. Value is converted to match existing value GType

Return the width of a mutable image.

Link to this section Types

@type t() :: %Vix.Vips.MutableImage{pid: pid()}

Represents a mutable instance of VipsImage

Link to this section Functions

Return the number of bands of a mutable image.

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get(mutable_image, name)

View Source
@spec get(t(), String.t()) :: {:ok, term()} | {:error, term()}

Returns metadata from the image

Link to this function

has_alpha?(mutable_image)

View Source

Return a boolean indicating if a mutable image has an alpha band.

Return the height of a mutable image.

Link to this function

remove(mutable_image, name)

View Source
@spec remove(t(), String.t()) :: :ok | {:error, term()}

Remove a metadata item from an image.

Link to this function

set(mutable_image, name, type, value)

View Source
@spec set(t(), String.t(), atom(), term()) :: :ok | {:error, term()}

Create a metadata item on an image of the specified type. Vix converts value to specified GType

Supported GTypes

  • :gint
  • :guint
  • :gdouble
  • :gboolean
  • :gchararray
  • :VipsArrayInt
  • :VipsArrayDouble
  • :VipsArrayImage
  • :VipsRefString
  • :VipsBlob
  • :VipsImage
  • :VipsInterpolate

Return the shape of the umage as {width, height, bands}.

Link to this function

update(mutable_image, name, value)

View Source
@spec update(t(), String.t(), term()) :: :ok | {:error, term()}

Set the value of existing metadata item on an image. Value is converted to match existing value GType

Return the width of a mutable image.