Learn R Programming

fastpng (version 0.1.7)

Read and Write PNG Files with Configurable Decoder/Encoder Options

Description

Read and write PNG images with arrays, rasters, native rasters, numeric arrays, integer arrays, raw vectors and indexed values. This PNG encoder exposes configurable internal options enabling the user to select a speed-size tradeoff. For example, disabling compression can speed up writing PNG by a factor of 50. Multiple image formats are supported including raster, native rasters, and integer and numeric arrays at color depths of 1, 2, 3 or 4. 16-bit images are also supported. This implementation uses the 'libspng' 'C' library which is available from .

Copy Link

Version

Install

install.packages('fastpng')

Monthly Downloads

179

Version

0.1.7

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Mike Cheng

Last Published

January 14th, 2025

Functions in fastpng (0.1.7)

get_png_info

Get information about a PNG file
test_image

Test images in various R formats
write_png

Write PNG
read_png

Read a PNG
raw_spec

Create a specification for how raw bytes should be interpreted when passed to write_png()
spng_decode_flags

Flags for decoding