Skip to content

ardata-fr/minimage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Aug 21, 2021
985568c · Aug 21, 2021

History

4 Commits
Aug 21, 2021
Aug 21, 2021
Aug 21, 2021
Aug 21, 2021
Feb 26, 2021
Feb 26, 2021
Feb 26, 2021
Aug 21, 2021
Feb 26, 2021
Feb 26, 2021
Aug 21, 2021
Mar 1, 2021
Mar 1, 2021
Feb 26, 2021
Feb 26, 2021

Repository files navigation

minimage

Lifecycle: experimental R-CMD-check

The goal of minimage is to let users minify size images.

The main function allows to compress the images contained in a directory to another directory, optionally changing some compression parameters.

Installation

You can install minimage from GitHub with:

# install.packages("devtools")
devtools::install_github("ardata-fr/minimage")

Example

library(minimage)
compress_images("test-files/", "test-new-files/", verbose = FALSE)
input size_in path_out size_out percent algorithm copied
test-files/file_1.png 10386 test-new-files/file_1.png 1714 83.50 pngquant TRUE
test-files/file_2.png 10409 test-new-files/file_2.png 1825 82.47 pngquant TRUE
compress_images("test-files/", "test-new-files/", png_quality = "90-100", 
                verbose = FALSE, overwrite = TRUE)
input size_in path_out size_out percent algorithm copied
test-files/file_1.png 10386 test-new-files/file_1.png 2299 77.86 pngquant TRUE
test-files/file_2.png 10409 test-new-files/file_2.png 2288 78.02 pngquant TRUE

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published