module CrImage::Format

Overview

Provides a convenience method for saving image files to the filesystem. Currently supports:

image.save("image.jpg")

See Open for a convenience method to read images from the filesystem

Defined in:

cr-image/format/save.cr

Constant Summary

SUPPORTED_FORMATS = [{extension: ".ppm", method: "ppm"}, {extension: ".png", method: "png"}, {extension: ".jpeg", method: "jpeg"}, {extension: ".jpg", method: "jpeg"}, {extension: ".png", method: "png"}, {extension: ".webp", method: "webp"}] of Nil