class

Tremolite::ImageResizer

Inherits Reference / Object

Constants

Log = ::Log.for(self)
PROCESSED_IMAGES_PATH = File.join(["images", "processed"])
PROCESSED_IMAGES_PATH_FOR_WEB = File.join(["/", "images", "processed"])

Constructors

Class methods

copy_image(source : String, output : String)
Source
download_image(source : String, output : String)

deprecated

Source
processed_path_for_post(processed_path : String, post_year : Int32, post_month : Int32, post_slug : String, prefix : String, file_name : String) : String

Use this method for all processed images paths

Source

Instance methods

resize_all_images_for_post(post : Tremolite::Post, overwrite : Bool)
Source
resize_for_post(post : Tremolite::Post, overwrite : Bool, name = "header.jpg")
Source
resize_image(path : String, width : Int32, height : Int32, output : String, overwrite : Bool, quality = 70)
Source