Module: Dragonfly
- Defined in:
- lib/dragonfly/geometry_bridge.rb,
lib/dragonfly/error_classifier.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)
dragonfly_libvips doesn't understand the #c suffix, so we translate those
into:
- geometry: "300x300"
- options: { thumbnail_options: { crop: :centre } }
Defined Under Namespace
Modules: ErrorClassifier, GeometryBridge