在各种约束下可视地裁剪图像。
tl.gcrop的Python项目详细描述
tl.gcrop:简介和用法
这个程序的目标是允许使用鼠标和 同时运用各种数学方法进行视觉反馈 限制,如保持给定的宽高比或确保最小 裁剪边距的值。
当前的实现状态是可视化裁剪,但还没有 考虑到约束条件。而且,程序的输出只是作物 坐标;剪切的图像还不能保存。
tl.gcrop需要安装pygtk。
密钥绑定:
Ctrl-O: Open a new image, replacing the previous one without warning.
图像窗口中的鼠标操作:
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.
右侧面板上的小部件:
- 描述当前裁剪区域的线(左边距和上边距、宽度 和高度),可以使用鼠标选择复制。
- 允许将所有裁剪参数设置为精确像素值的输入字段。
- 两个预览窗口,显示裁剪图像和裁剪区域相对 总的形象。
关于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 |