struct Image::Image

Overview

An image to be processed

Defined in:

image.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path) #

[View source]

Instance Method Detail

def path : Path #

[View source]
def path=(path : Path) #

[View source]
def render(prefix = "") #

Images are copied 2x: image.jpg => image.jpg (size is options.image_large) image.jpg => image.thumb.jpg (size is options.image_thumb)

prefix affects destination path: foo/bar/bat.jpg => output/#{prefix}/bar/bat.jpg


[View source]