Module: Dragonfly

Defined in:
lib/dragonfly/geometry_bridge.rb,
lib/dragonfly/error_classifier.rb,
lib/dragonfly/cascade_data_store.rb

Overview

Bridge legacy ImageMagick geometry strings into libvips options.

We have historical cached URLs (and some legacy callers) that use ImageMagick
geometry strings, e.g.:

  • "300x300#" (crop to fill)
  • "300x300#c" (crop to fill + centre gravity)
  • "300x300^" (legacy video-thumbnail fill geometry)

dragonfly_libvips doesn't understand the #, #c, or ^ suffixes, so we
translate those into:

  • geometry: "300x300"
  • options: { thumbnail_options: { crop: :centre } }

Defined Under Namespace

Modules: ErrorClassifier, GeometryBridge Classes: CascadeDataStore