Skip to main content

A python package for extracting images from PDF/TIF files

Project description

imgextract

imgextract v0.0.1

This python package can be used for extracting pages from PDF and TIF/TIFF files.

This packages uses poppler for reading pdf files, for windows platform it has been included in package but for linux we have to install it manually.

How to get poppler

Download poppler from poppler

Install poppler in linux stackoverflow

How to use

pdf page extraction

from imgextract.imgext import ImgExtractor

if __name__ == "__main__":
    ss = ImgExtractor()
    # input files path, out put files path and file type
    ss.extract("/home/user/pdf_files", "/home/user/image_files", "pdf")

tif/tiff image extraction

from imgextract.imgext import ImgExtractor

if __name__ == "__main__":
    ss = ImgExtractor()
    # input files path, out put files path and file type
    ss.extract("/home/user/tif_files", "/home/user/image_files", "tif")

GUI for Image extraction

GUI for Image extraction

from imgextract.imggui import GuiExtractor

if __name__ == "__main__":
    ss = GuiExtractor()
    ss.openwindow()

Installation

$ pip install imgextract

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imgextract-0.0.1.tar.gz (10.9 MB view details)

Uploaded Source

File details

Details for the file imgextract-0.0.1.tar.gz.

File metadata

  • Download URL: imgextract-0.0.1.tar.gz
  • Upload date:
  • Size: 10.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for imgextract-0.0.1.tar.gz
Algorithm Hash digest
SHA256 82db06c5d57b6f555de1fed2aef31c694ed95864a2c90f6e1b978c2790000898
MD5 616e3fb37bd403eb7e64d2089f34ae9d
BLAKE2b-256 6da6f6a100cae1aefb52df42e28e6468733c7cf47a8a625a5448275da076a26c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page