Learn Before
Concept

Reading From a tar Archive (Pillow)

Pillow contains a TarIO module that allows for reading an image contained in a tar archive. The TarIO() function takes a tar file path and the name of the desired image inside the tar as arguments. The returned object can then be passed into Pillow's open() function.

fp = TarIO.TarIO(tarfile, file) image = Image.open(fp)

0

1

Updated 2021-08-08

Contributors are:

Who are from:

Tags

Python Programming Language

Data Science