Skip to contents

zip_extract_bm_pixmap() extracts/renders an image from a zipfile into a bittermelon::bm_pixmap() object.

Usage

zip_extract_bm_pixmap(zipfile, filename, ...)

Arguments

zipfile

Path to a zip file

filename

Filename within zip file

...

If filename is a pdf file then passed to pdf_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")
} # }