Skip to main content

A command line tool for converting and resizing image files.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jaypeg-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jaypeg-0.1.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file jaypeg-0.1.2.tar.gz.

File metadata

  • Download URL: jaypeg-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.17.5-76051705-generic

File hashes

Hashes for jaypeg-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e3e878ec1c783805a00dadb2c5bb2cf4a7829869f31a92261b07b788e936216a
MD5 77f9556b0a4ba8e00aa238fa841fe1f5
BLAKE2b-256 466cdf385c651629e011c324ab396cab15597ac5aa75056169de634c340c4958

See more details on using hashes here.

File details

Details for the file jaypeg-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: jaypeg-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.17.5-76051705-generic

File hashes

Hashes for jaypeg-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd15dfba07f6b984a1f99b11ab6a76be71427ca93fe6e673c8766514a515b975
MD5 493f67b4a16d7f187fc4f5e76e4602cc
BLAKE2b-256 b7f07c88008eca8da447dc3ac1b410b736cb56b29ae609f0460b8f0fd79b7890

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page