Make PDF of this image.
mkdir -p /home/daytona/workspace/img-to-pdf && curl -s -o /home/daytona/workspace/img-to-pdf/IMG_0070.jpg "https://d361swluvexzqs.cloudfront.net/chats-attachments/IMG_0070-1779856520349-lrddr3.jpg" && echo "Downloaded"
python3 -c " from PIL import Image import os img_path = '/home/daytona/workspace/img-to-pdf/IMG_0070.jpg' out_path = '/home/daytona/workspace/img-to-pdf/IMG_0070.pdf' img = Image.open(img_path) # Convert to RGB if needed (in case of RGBA or other modes) if img.mode != 'RGB': img = img.convert('RGB') img.save(out_path, 'PDF', resolution=150) print(f'PDF created: {out_path}') print(f'Size: {os.path.getsize(out_path)} bytes') "
IMG 0070
PDF Document · PDF