struct Latch::Extractor::DimensionsFromMagick

Included Modules

Defined in:

latch/extractor/dimensions_from_magick.cr

Constant Summary

ARGS = ["identify", "-format", "%[fx:w] %[fx:h]"]

Constructors

Instance Method Summary

Instance methods inherited from module Latch::Extractor

extract(uploaded_file : Latch::UploadedFile, metadata : MetadataHash, **options) : MetadataValue | Nil extract

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def extract(uploaded_file, metadata, **options) : Nil #

Extracts the dimensions of a file using ImageMagick's magick command.


[View source]
def initialize #

[View source]