Module: Cooltrainer::DistorteD::Technology::Vips

Includes:
Load, Save
Included in:
Molecule::Image
Defined in:
lib/distorted-floor/modular_technology/vips.rb,
lib/distorted-floor/modular_technology/vips/operatio$.rb

Defined Under Namespace

Modules: Load, Save Classes: VipsType

Constant Summary collapse

TOP_LEVEL_FOREIGN =

All of the actual Loader/Saver classes we need to interact with will be tree children of one of these top-level class categories:

:VipsForeign
TOP_LEVEL_LOADER =
:VipsForeignLoad
TOP_LEVEL_SAVER =
:VipsForeignSave
VIPS_ALIASES =

Aliases we want to support for consistency and accessibility.

{
  :Q => Set[:Q, :quality],
  :colours => Set[:colours, :colors],
  :centre => Set[:centre, :center],  # America; FUCK YEAH!
}
VIPS_VALID =

GEnum valid values are detectable, but I don't know how to do the same for the numeric parameters. Specify them here manually for now.

{
  :"page-height" => (0..Vips::MAX_COORD),
  :"quant-table" => (0..8),
  :Q => (0..100),
  :colours => (2..256),
  :dither => (0.0..1.0),
  :compression => (0..9),
  :"alpha-q" => (0..100),
  :"reduction-effort" => (0..6),
  :kmin => (0..0x7FFFFFFF),  # https://en.wikipedia.org/wiki/2,147,483,647
  :kmax => (0..0x7FFFFFFF),
  :"tile-width" => (0..0x8000),  # 32768
  :"tile-height" => (0..0x8000),
  :xres => (0.001..1e+06),
  :yres => (0.001..1e+06),
}

Constants included from Load

Load::LOWER_WORLD

Constants included from Save

Save::OUTER_LIMITS

Method Summary

Methods included from Load

#to_vips_image