Skip to main content

Bulk center-crop and resize images to a square in one command.

Project description

squarepix

Bulk center-crop images to a square and resize them — from the command line or from Python.

Install

pip install squarepix

Usage (command line)

squarepix "D:\InputImages" "D:\OutputImages"
squarepix "D:\InputImages" "D:\OutputImages" --size 512 512

Usage (Python)

from squarepix import process_folder

process_folder("D:/InputImages", "D:/OutputImages", output_size=(640, 640))

Supported formats

.jpg .jpeg .png .bmp .tif .tiff .webp

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

squarepix-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

squarepix-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file squarepix-0.1.0.tar.gz.

File metadata

  • Download URL: squarepix-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for squarepix-0.1.0.tar.gz
Algorithm Hash digest
SHA256 76c2762b5b798513593931a72fbeade3ddf7c0652f25824d8d3378b9fd23f1d3
MD5 cea24b303997e6669a9cecafd050efcf
BLAKE2b-256 16389129bcead737bf2d52b925500fe68cc7789dc3fbd4b3883621c3437ab59a

See more details on using hashes here.

File details

Details for the file squarepix-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: squarepix-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for squarepix-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c33d80c4eae908d19185422e7eecd84af07ce59b32fafb813717bb569df189b1
MD5 516f65ef7e9d04e39b60b03c1bcf2ab0
BLAKE2b-256 757fbff8afc582d5bfc69fc334d634979bbb841b565b4ab0f9684fa223d25c19

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