{"id":18852943,"url":"https://github.com/stellarsand/img-pdf-convert","last_synced_at":"2026-04-09T12:36:15.574Z","repository":{"id":183490513,"uuid":"670245974","full_name":"StellarSand/img-pdf-convert","owner":"StellarSand","description":"Convert images to PDF files and vice versa.","archived":false,"fork":false,"pushed_at":"2023-09-22T15:31:15.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T17:46:30.997Z","etag":null,"topics":["image","image-conversion","image-converter","images","linux","macos","pdf","pdf-converter","pdf-generation","python","python-script","python3","script","terminal","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StellarSand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-24T15:59:01.000Z","updated_at":"2024-10-19T03:21:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"270e963c-a18a-4137-955b-75961b9d6567","html_url":"https://github.com/StellarSand/img-pdf-convert","commit_stats":null,"previous_names":["the-weird-aquarian/img-pdf-convert","stellarsand/img-pdf-convert"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StellarSand%2Fimg-pdf-convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StellarSand%2Fimg-pdf-convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StellarSand%2Fimg-pdf-convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StellarSand%2Fimg-pdf-convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StellarSand","download_url":"https://codeload.github.com/StellarSand/img-pdf-convert/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239793073,"owners_count":19697893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image","image-conversion","image-converter","images","linux","macos","pdf","pdf-converter","pdf-generation","python","python-script","python3","script","terminal","windows"],"created_at":"2024-11-08T03:42:10.558Z","updated_at":"2025-12-30T22:07:42.242Z","avatar_url":"https://github.com/StellarSand.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# img-pdf-convert\n\n**img-pdf-convert** tool allows you to convert images to PDF files and vice versa on GNU/Linux, macOS and Windows systems.\n\n\n\n## Contents\n- [Supported OS](#supported-os)\n- [Prerequisites](#prerequisites)\n- [Supported image formats for converting to PDF](#supported-image-formats-for-converting-to-pdf)\n- [Installation](#installation)\n- [Available options](#available-options)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n\n\n## Supported OS\n- GNU/Linux\n- Windows\n- macOS\n\n\n\n## Prerequisites\n- [Python3](https://www.python.org/downloads/)\n- [Pillow](https://pypi.org/project/Pillow/): Install using `pip install Pillow`\n- [pdf2image](https://pypi.org/project/pdf2image/): Install using `pip install pdf2image`\n\n\n\n## Supported image formats for converting to PDF\n- JPEG\n- PNG\n- WEBP\n- TIFF\n- BMP\n- ICO\n- ICNS\n- PBM\n- PGM\n- PPM\n\n\n\n## Installation\n**1. Clone this repo:**\n```\ngit clone https://github.com/StellarSand/img-pdf-convert.git\n```\n\n**2. Move into the project directory:**\n```\ncd img-pdf-convert\n```\n\n**3. Give executable permissions to the script (Not required for Windows):**\n```\nchmod +x img-pdf-convert\n```\n\n\n\n## Available options:\n```\n-h, --help              Show this help message and exit\n-lf, --list-formats     Show a list of supported image formats\n\n---Image(s) to PDF---\n-i, --image-files       Path to the image files\n-o, --output-file       Output file\n\n---PDF(s) to image(s)---\n-p, --pdf-files         Path to the PDF files\n-d, --directory         Output directory for extracted images (optional)\n-if, --image-format     Output format for extracted images (optional, default: jpeg)\n```\n\n\n\n## Usage\n```\npython3 img-pdf-convert -i \u003cimage\u003e -o \u003coutput file\u003e\n```\n\n```\npython3 img-pdf-convert -p \u003cPDF\u003e\n```\n\n**Examples:**\n```\npython3 img-pdf-convert -i icon.png -o icon.pdf\n```\n\n```\npython3 img-pdf-convert -i icon1.png icon2.jpg -o /home/user/Downloads/new_icon.pdf\n```\n\n```\npython3 img-pdf-convert -p document.pdf\n```\n\n```\npython3 img-pdf-convert -p document1.pdf document2.pdf -d /home/user/Downloads -if png\n```\n\n**Convert all images with a specified format to PDF file:**\n```\npython3 img-pdf-convert -i *.png *.jpg -o icon.pdf\n```\n\n**Convert all PDF files to images:**\n```\npython3 img-pdf-convert -p *.pdf\n```\n\n\n\n## Contributing\nPull requests can be submitted [here](https://github.com/StellarSand/img-pdf-convert/pulls).\n\n\n\n## License\nThis project is licensed under the terms of [GPLv3 license](https://github.com/StellarSand/img-pdf-convert/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellarsand%2Fimg-pdf-convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstellarsand%2Fimg-pdf-convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellarsand%2Fimg-pdf-convert/lists"}