class Tremolite::ImageResizer
- Tremolite::ImageResizer
- Reference
- Object
Defined in:
tremolite/image_resizer.crConstant Summary
-
Log =
::Log.for(self)
-
PROCESSED_IMAGES_PATH =
File.join(["images", "processed"])
-
PROCESSED_IMAGES_PATH_FOR_WEB =
File.join(["/", "images", "processed"])
Constructors
Class Method Summary
- .copy_image(source : String, output : String)
-
.download_image(source : String, output : String)
deprecated
-
.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
Instance Method Summary
- #resize_all_images_for_post(post : Tremolite::Post, overwrite : Bool)
- #resize_for_post(post : Tremolite::Post, overwrite : Bool, name = "header.jpg")
- #resize_image(path : String, width : Int32, height : Int32, output : String, overwrite : Bool, quality = 70)
Constructor Detail
Class Method Detail
def self.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