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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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