Module: ActiveStorageValidations::ASVAnalyzable

Extended by:
ActiveSupport::Concern
Included in:
AspectRatioValidator, ContentTypeValidator, DimensionValidator, DurationValidator, PagesValidator, ProcessableFileValidator, WithAudioValidator
Defined in:
lib/active_storage_validations/shared/asv_analyzable.rb

Overview

ActiveStorageValidations::ASVAnalyzable

Validator methods for choosing the right analyzer depending on the file media type and available third-party analyzers.

Constant Summary collapse

DEFAULT_IMAGE_PROCESSOR =
:mini_magick
CONTENT_TYPE_METADATA_KEYS =

Keys written by the content-type sniffers. They record what the file claims to be, not whether an analyzer could decode it, so they must never count as evidence that a media analysis happened.

i[content_type content_type_backend].freeze