Extract/render an image from a zipfile into a bittermelon pixmap object
Source:R/zip_extract_bm_pixmap.R
zip_extract_bm_pixmap.Rdzip_extract_bm_pixmap() extracts/renders an image from a zipfile into a bittermelon::bm_pixmap() object.
Arguments
- zipfile
Path to a zip file
- filename
Filename within zip file
- ...
If
filenameis a pdf file then passed topdf_render_bm_pixmap()
Value
A bittermelon::bm_pixmap() object.
Examples
if (FALSE) { # \dontrun{
# "https://boardgamegeek.com/filepage/279177/packvelopes-storage-boxes"
zipfile <- "Everdeck_Packvelopes.zip"
bm <- zip_extract_bm_pixmap(zipfile, "Red and Black.pdf")
# https://boardgamegeek.com/filepage/62704/cards-in-png-format
zipfile <- "decktet_cards_PNG.zip"
bm <- zip_extract_bm_pixmap(zipfile, "PNG/a_card_cover3.png")
} # }