This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |