Skip to main content

Crops unnecessary white background from images. Meant to be for 3D models previews.

Project description

whitecrop3d

Description

  • Crops unnecessary white background from images. Meant to be for 3D models previews.
  • Whitecrop3d was developed as temporary solution for problem of 3D graphics that was time expensive to solve. We worked on solving problem properly after this temporary solution was implemeneted.

Usage

  • Install globaly: $ sudo pip install whitecrop3d
  • Use: $ whitecrop3d path/to/your/pngs

Preview

Preview

How it works

Do this for all images in path specified:

  1. Loads image
  2. Crops the image based on white background
  3. Adds background to match original 1024x768 resolution
  4. Saves image (inplace)

Notes for Developers

  • for further github actions

Upload new version to PYPI

  • increment version in setup.py file
  • run publish_to_pypi.sh, or manualy run:
    • $ rm dist/*
    • $ python3 -m build
    • $ python3 -m twine upload dist/*
  • note: github secret must be provided to authorize upload (not added to github repo yet)

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

whitecrop3d-0.3.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

whitecrop3d-0.3.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file whitecrop3d-0.3.1.tar.gz.

File metadata

  • Download URL: whitecrop3d-0.3.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for whitecrop3d-0.3.1.tar.gz
Algorithm Hash digest
SHA256 4a44269d51f8631f755f0c2f0d0debf68c3b1144e906e19b5c202e1013b17c02
MD5 4268d138d33325a1b6d15721029e259a
BLAKE2b-256 8252bcaf523bda3beb86ba7bcdc20de5c0b531045274d9f4c61099f4440e19f0

See more details on using hashes here.

File details

Details for the file whitecrop3d-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: whitecrop3d-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for whitecrop3d-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f9ef3e431d606ec59a5be89d55c0dd7a5133f95d9bd4e7472ffaa65d94abfd6
MD5 335170755a06333aec6e8b01c7a009f8
BLAKE2b-256 e80262fe0f9aee2c5ff834abdc6408dc450278e09e490e3c929c06fe8b52643e

See more details on using hashes here.

Supported by

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