class Greitspitz::Instructions

Overview

Parses operations, format, and quality instructions from a string.

Defined in:

greitspitz/instructions.cr

Constant Summary

CONTENT_TYPES = {"avif" => "image/avif", "jpeg" => "image/jpeg", "png" => "image/png"}

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(input : String) #

[View source]

Class Method Detail

def self.format(format) #

[View source]
def self.quality(quality) #

[View source]

Instance Method Detail

def content_type #

[View source]
def format : String | Nil #

[View source]
def format=(format : String | Nil) #

[View source]
def quality : Int32 | Nil #

[View source]
def transformations : Hash(String, String) #

[View source]