Skip to content

Commit b0fc89e

Browse files
committed
0.20180524
Zoom+plus Version
0 parents  commit b0fc89e

File tree

11 files changed

+1262
-0
lines changed

11 files changed

+1262
-0
lines changed

CHANGE.log

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package: python-cropper-tk
2+
author: zvezdochiot [https://github.com/zvezdochiot]
3+
4+
0.20180524
5+
Function Plus rectangle
6+
7+
Plus mode -> function Plus
8+
9+
0.20180105
10+
Clean margin crop images
11+
12+
Clean margin crop images
13+
+ToolTips
14+
15+
0.20180102
16+
Normalizing rectangles
17+
18+
Normalizing the size of rectangles
19+
20+
0.20180101
21+
Plus mode + Divide Factor
22+
23+
Plus mode (unification-expanding areas, effective with Zoom mode)
24+
Divide Factor (reduced resolution of illustrations)
25+
+Verify input parameters
26+
27+
0.20171230
28+
Fix offset
29+
30+
Fix offset in clip
31+
32+
0.20171229
33+
Zoom version
34+
35+
Zoom version
36+
+Crop the image and creates a PDF with the same size

LICENSE

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Zlib License
2+
3+
/* zlib.h -- interface of the 'zlib' general purpose compression library
4+
version 1.2.8, April 28th, 2013
5+
6+
Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
7+
8+
This software is provided 'as-is', without any express or implied
9+
warranty. In no event will the authors be held liable for any damages
10+
arising from the use of this software.
11+
12+
Permission is granted to anyone to use this software for any purpose,
13+
including commercial applications, and to alter it and redistribute it
14+
freely, subject to the following restrictions:
15+
16+
1. The origin of this software must not be misrepresented; you must not
17+
claim that you wrote the original software. If you use this software
18+
in a product, an acknowledgment in the product documentation would be
19+
appreciated but is not required.
20+
2. Altered source versions must be plainly marked as such, and must not be
21+
misrepresented as being the original software.
22+
3. This notice may not be removed or altered from any source distribution.
23+
24+
Jean-loup Gailly Mark Adler
25+
jloup@gzip.org madler@alumni.caltech.edu
26+
27+
*/
28+
29+
Last modified 28 April 2013
30+
31+
Send all questions about zlib or its license to zlib@gzip.org

README.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
What is it
2+
==========
3+
4+
This is a copy of Greg Lavino's awesome `photo_splitter.py`, with some
5+
minor adjustments by myself.
6+
7+
Greg published his original code in a `ubunutuforums.org thread
8+
<http://ubuntuforums.org/showthread.php?t=1429439&p=8975597#post8975597>`_.
9+
10+
`photo_splitter.py` is very useful if you need to crop a large amount
11+
of images very quickly. Simply select the areas in the image that you
12+
want to crop, click "Go" and photo_splitter will create one image file
13+
for each crop area for you, in the same folder as the original image.
14+
15+
Here's a screenshot from the `StackOverflow question
16+
<http://askubuntu.com/questions/31250/fast-image-cropping>`_ which
17+
features `photo_splitter.py` as the solution:
18+
19+
.. image:: http://i.stack.imgur.com/CS2io.png
20+
21+
CropperTktoPDF
22+
23+
.. image:: https://raw.githubusercontent.com/zvezdochiot/python-cropper-tk/master/croppertktopdf-sample.jpg
24+
25+
Installation
26+
============
27+
28+
Before you can run `photo_splitter.py`, you'll need to install these
29+
libraries::
30+
31+
sudo apt-get install python-tk python-imaging python-imaging-tk python-reportlab
32+
33+
Run
34+
===
35+
36+
An example::
37+
38+
./cropper-tk.py dog.jpg
39+
40+
or::
41+
42+
./cropper-tk.py
43+
44+
Make a for loop to process a bunch of images::
45+
46+
for img in ~/images/*; do ./cropper-tk.py $img; done

0 commit comments

Comments
 (0)