Read and Write PNG Files with Configurable Decoder/Encoder Options
Overview
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/.
- Address
rchkissues on CRAN
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-19
- WARNING12 OK, 1 WARNING2026-07-16
- OK14 OK2026-03-10
Documentation
- Help pages
- 6
- Examples that run
- 100%4 run in a plain check
- Exported functions with examples
- 80%
- Documented parameters
- 88%
- Return-value docs
- 80%
- Help pages citing references
- 0%
- Overview HTML
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 96
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Issues over time
Commits over time
5 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/coolbutuseless/fastpng on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing fastpng adds 1 package (1 with compiled code, 38 KB of source tarballs). Heaviest: colorfast 38 KB.
Code & Tests
Datasets
People & History
Package metadata
- First published
- 2024-09-04
- Total releases
- 4 / 2 yrs
- License
- MIT + file LICENSE OSI
- Copyright
- The included 'libspng' code is Copyright (c) 2018-2023, Randy <randy408@protonmail.com>. Sections within the 'libspng' code are derived from 'libpng' and copyright attributed to those authors. See 'COPYRIGHTS' for license information and full attribution of all copyrighted sections of code.
- Minimum R
- ≥ 4.1.0
- Bundled data
- 2.2 MB / 1 file
- Download size
- 2.8 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("fastpng")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.