Read and Write PNG Files with Configurable Decoder/Encoder Options

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 < https://github.com/randy408/libspng/>.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("fastpng")

0.1.9 by Mike Cheng, 3 months ago


https://github.com/coolbutuseless/fastpng


Report a bug at https://github.com/coolbutuseless/fastpng/issues


Browse source code at https://github.com/cran/fastpng


Authors: Mike Cheng [aut, cre, cph] , Randy408 [aut, cph] (Author of bundled libspng) , The PNG Reference Library Authors [aut, cph] , Cosmin Truta [cph] (SSE2 optimised filter functions , NEON optimised filter functions , NEON optimised palette expansion functions) , Glenn Randers-Pehrson [cph] (SSE2 optimised filter functions) , Andreas Dilger [cph] , Guy Eric Schalnat [cph] , Mike Klein [ctb] (SSE2 optimised filter functions) , Matt Sarett [ctb] (SSE2 optimised filter functions) , James Yu [ctb] (NEON optimised filter functions) , Mars Rullgard [ctb] (NEON optimised filter functions) , Arm Holdings [cph] (NEON optimised palette expansion functions) , Richard Townsend [ctb] (NEON optimised palette expansion functions)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports colorfast

Suggests knitr, png, rmarkdown, testthat

Linking to colorfast


Suggested by nara.


See at CRAN