Class: DynamicImage::Variant
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- DynamicImage::Variant
- Includes:
- Dis::Model
- Defined in:
- app/models/dynamic_image/variant.rb
Overview
DynamicImage Variant
A cached rendering of an image at one size, crop and format. ProcessedImage creates variants on demand and destroys them when the image they belong to changes or is destroyed, so there is rarely a reason to work with them directly.
Data is stored in Dis under its own type, keeping it separate from the originals.