Skip to content

Instantly share code, notes, and snippets.

View Davidcparrar's full-sized avatar

David Parra Davidcparrar

View GitHub Profile
@Davidcparrar
Davidcparrar / convert2pdf.py
Created May 22, 2022 23:36
File to create a pdf from a list of images
from PIL import Image
import argparse
import sys
def process_image(file: str) -> Image:
"""Load and convert image to RGB"""
image = Image.open(file)
im = image.convert("RGB")