Skip to content

Instantly share code, notes, and snippets.

View pattersonrptr's full-sized avatar
🏠
Working from home

Patterson pattersonrptr

🏠
Working from home
View GitHub Profile
@pattersonrptr
pattersonrptr / main.py
Last active April 18, 2024 15:00
Extract info about images and pdf files
import os
import sys
from PIL import Image
from PyPDF2 import PdfReader
def evaluate_image(image_path):
try:
image = Image.open(image_path)
image_format = image.format