module CrImage::Format
Overview
Provides a convenience method for saving image files to the filesystem. Currently supports:
- PPM (
.ppm
) - WebP (
.webp
) - JPEG (
.jpeg
,.jpg
) - PNG (
.png
)
image.save("image.jpg")
See Open
for a convenience method to read images from the filesystem
Defined in:
cr-image/format/save.crConstant 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