Module: DragonflyLibvips

Defined in:
lib/dragonfly_libvips.rb,
lib/dragonfly_libvips/plugin.rb,
lib/dragonfly_libvips/version.rb,
lib/dragonfly_libvips/dimensions.rb,
lib/dragonfly_libvips/processors/thumb.rb,
lib/dragonfly_libvips/processors/encode.rb,
lib/dragonfly_libvips/processors/rotate.rb,
lib/dragonfly_libvips/processors/extract_area.rb,
lib/dragonfly_libvips/analysers/image_properties.rb

Defined Under Namespace

Modules: Analysers, Processors Classes: Dimensions, Plugin, UnsupportedFormat, UnsupportedOutputFormat

Constant Summary collapse

CMYK_PROFILE_PATH =
File.expand_path("../vendor/cmyk.icm", __dir__)
EPROFILE_PATH =
File.expand_path("../vendor/sRGB_v4_ICC_preference.icc", __dir__)
SUPPORTED_FORMATS =
begin
  output = `vips -l | grep -i ForeignLoad`
  output.scan(/\.(\w{1,4})/).flatten.compact.sort.map(&:downcase).uniq
end
SUPPORTED_OUTPUT_FORMATS =
begin
  output = `vips -l | grep -i ForeignSave`
  output.scan(/\.(\w{1,4})/).flatten.compact.sort.map(&:downcase).uniq
end - %w[
  csv
  fit
  fits
  fts
  mat
  pbm
  pfm
  pgm
  ppm
  raw
  v
  vips
]
FORMATS_WITHOUT_PROFILE_SUPPORT =
%w[
  avif
  bmp
  dz
  gif
  hdr
  heic
  heif
  j2c
  j2k
  jp2
  jpc
  jpt
  jxl
  szi
  webp
]
VERSION =
"2.5.1"