module Image

Overview

Handles image and pdf parsing and printing.

Direct including types

Defined in:

modules/image.cr

Constant Summary

HEIGHT = ARGV.size > 2 ? ARGV[2].to_i : 40
WIDTH = ARGV.size > 2 ? ARGV[1].to_i : 160

Instance Method Summary

Instance Method Detail

def image(file_name : String) : String #

Prints an image specified by file_name.


[View source]
def ql(file_name : String) : String #

Generates a preview image for a pdf specified by file_name and calls #image to print it.


[View source]