Skip to main content

Convert a file to .jpg

Project description

Uses the pdf2image library and code from this [answer](https://stackoverflow.com/questions/29760402/converting-a-txt-file-to-an-image-in-python) to convert files to jpg and returns the path

Can be imported with

`commandline import file_to_image `

Can be used with `python from file_to_image import convert_to_image path = "Where your file is" jpg_path = convert_to_image(path) `

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

ftoimage-1.1.4.tar.gz (3.6 kB view hashes)

Uploaded Source

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