This project has been archived by its maintainers, and is no longer receiving any updates.
Jaypeg
A command line tool for converting and resizing image files. Jaypeg converts an entire folder of images files to jpeg. It also lets you resize the files so that they load quickly on the web.
Jaypeg relies on filetype to detect filetypes and pillow to resize and convert the images. Gif and Tiff files are converted to jpg. Jpeg files are resized. Other image formats such as Png or Webp are not changed (but could be in future versions).
installation
pip install jaypeg
usage
$ jaypeg folder/of/files
will convert any gif or tiff file to jpg
will resize files to 2MB or less by default
files are updated in their current location
save altered files in a new directory
$ jaypeg folder/of/files --out-path new/folder
set the file size limit (ex. 4MB). All files larger than the limit will be resized to be smaller than the limit.
$ jaypeg folder/of/files --size 4000000
Arguments: PATH [required]
Options: --size INTEGER [default: 2000000] --out-path TEXT --install-completion Install completion for the current shell. --show-completion Show completion for the current shell, to copy it or customize the installation. --help Show this message and exit.
license
Copyright 2022 Andrew Paul Janco
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Metadata
Release files for jaypeg 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jaypeg-0.1.2.tar.gz | 3.6 kB | Without provenance | Details for jaypeg-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jaypeg-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for jaypeg-0.1.2-py3-none-any.whl |
Total release size: 7.5 kB
Release files / jaypeg-0.1.2.tar.gz
| Download URL | jaypeg-0.1.2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3e878ec1c783805a00dadb2c5bb2cf4a7829869f31a92261b07b788e936216a
|
|
BLAKE2b-256 checksum How to use checksums |
466cdf385c651629e011c324ab396cab15597ac5aa75056169de634c340c4958
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Linux/5.17.5-76051705-generic
|
Release files / jaypeg-0.1.2-py3-none-any.whl
| Download URL | jaypeg-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd15dfba07f6b984a1f99b11ab6a76be71427ca93fe6e673c8766514a515b975
|
|
BLAKE2b-256 checksum How to use checksums |
b7f07c88008eca8da447dc3ac1b410b736cb56b29ae609f0460b8f0fd79b7890
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Linux/5.17.5-76051705-generic
|
Security for jaypeg 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.