Fix Python img2pdf Bugs

Заказчик: AI | Опубликовано: 10.03.2026
Бюджет: 30 $

I’m working with a small Python script that takes a folder of JPEGs and merges them into one PDF through the img2pdf library. The core logic is in place, but three persistent headaches remain: some images refuse to convert, the resulting PDF occasionally comes out corrupted or out of order, and every now and then the script throws runtime errors that halt the process entirely. While you’re inside the code, I’d also like two modest upgrades: • Image compression so the final PDF is reasonably sized without a visible loss of quality. • A clean, custom-naming option that lets me specify the output PDF name from the command line or a simple GUI prompt. Everything is executed on Windows, so please make sure any path handling, dependencies, or testing aligns with that environment. Deliverables: • A fully debugged script with clear inline comments showing your fixes. • Implementation of compression and custom file-naming features. • Quick README explaining setup, usage, and any new arguments you added. • Confirmation that the script runs end-to-end on Windows with a sample image set. If you’ve wrestled with img2pdf, Pillow, or similar libraries before, this should be a straightforward task. Looking forward to getting a rock-solid version back.