Skip to main content

tl.gcrop: Introduction and usage

The goal of this program is to allow cropping an image using the mouse and having visual feedback while at the same time applying various mathematical constraints such as maintaining a given aspect ratio or ensuring minimal values for the crop margins.

The current state of implementation does visual cropping but doesn’t yet take into account constraints. Also, the output of the program is only the crop coordinates; the cropped image cannot be saved yet.

tl.gcrop requires pygtk to be installed.

Key bindings:

Ctrl-O:

Open a new image, replacing the previous one without warning.

Mouse actions inside the image window:

Left button:

Change crop margins if the mouse is outside the crop area (one if it’s outside an edge, two if it’s outside a corner), otherwise move the crop area without changing its size.

Scroll wheel:

Zoom the image up or down by factors of 2.

Widgets on the right panel:

  • A line describing the current crop area (left and top margin, width and height) that can be copied using mouse selection.

  • Input fields that allow setting all crop parameters to exact pixel values.

  • Two preview windows that show the cropped image and the crop area relative to the total image.

About tl.gcrop

Author:

Thomas Lotze (thomas@thomas-lotze.de, http://thomas-lotze.de/)

PyPI page:

http://pypi.python.org/pypi/tl.gcrop/

Issue tracker:

https://bitbucket.org/tlotze/tl.gcrop/issues/

Source code:

https://bitbucket.org/tlotze/tl.gcrop/src/

Current change log:

https://bitbucket.org/tlotze/tl.gcrop/src/tip/CHANGES.txt

Release files for tl.gcrop 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tl.gcrop 0.1
File Size Uploaded
tl.gcrop-0.1.tar.gz 12.0 kB Details

Release files / tl.gcrop-0.1.tar.gz

Download URL tl.gcrop-0.1.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
82589fda449882be0e3e2f8caa05dc8be8881ac922d0de66653af32ebc9518af
BLAKE2b-256 checksum
How to use checksums
ff421a327259c349f575e0e88b7c1f66090fda4aa79e213fba4d6f3454c74d3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page