toast/gimp_passport.git
10 months agoAdd further checks in test_main.
Philipp Spitzer [Thu, 27 Jun 2019 20:41:33 +0000 (22:41 +0200)]
Add further checks in test_main.

10 months agoAdd an example image.
Philipp Spitzer [Thu, 27 Jun 2019 20:09:44 +0000 (22:09 +0200)]
Add an example image.

11 months agoNow gimp_passport is used by gimp_passport_plugin.
Philipp Spitzer [Tue, 25 Jun 2019 21:56:36 +0000 (23:56 +0200)]
Now gimp_passport is used by gimp_passport_plugin.

11 months agoCheck first whether a selection exists before doing anything else (thanks Gregor).
Philipp Spitzer [Tue, 25 Jun 2019 21:04:50 +0000 (23:04 +0200)]
Check first whether a selection exists before doing anything else (thanks Gregor).

11 months agoConvert exception to message box.
Philipp Spitzer [Fri, 21 Jun 2019 21:47:10 +0000 (23:47 +0200)]
Convert exception to message box.

11 months agoChange command line program to accept face dimensions as arguments, not transparency.
Philipp Spitzer [Fri, 21 Jun 2019 21:42:07 +0000 (23:42 +0200)]
Change command line program to accept face dimensions as arguments, not transparency.

11 months agoError is shown if nothing is selected.
Philipp Spitzer [Thu, 20 Jun 2019 21:43:17 +0000 (23:43 +0200)]
Error is shown if nothing is selected.

11 months agoThe new image now has only one layer.
Philipp Spitzer [Thu, 20 Jun 2019 21:35:44 +0000 (23:35 +0200)]
The new image now has only one layer.

11 months agoNow using PIL to process GIMP image.
Philipp Spitzer [Thu, 20 Jun 2019 21:23:11 +0000 (23:23 +0200)]
Now using PIL to process GIMP image.

11 months agoAdd scaffold GIMP plugin.
Philipp Spitzer [Thu, 20 Jun 2019 19:22:18 +0000 (21:22 +0200)]
Add scaffold GIMP plugin.

11 months agoNow "mm" is shown in usage message for length arguments.
Philipp Spitzer [Thu, 20 Jun 2019 18:12:08 +0000 (20:12 +0200)]
Now "mm" is shown in usage message for length arguments.

11 months agofix a typo in the docstring
gregor herrmann [Tue, 11 Jun 2019 20:24:05 +0000 (22:24 +0200)]
fix a typo in the docstring

11 months agoWork in progress...
Philipp Spitzer [Tue, 11 Jun 2019 07:19:22 +0000 (09:19 +0200)]
Work in progress...

11 months agoCreate function num_tiles_xy().
Philipp Spitzer [Fri, 7 Jun 2019 21:08:40 +0000 (23:08 +0200)]
Create function num_tiles_xy().

11 months agoCreate function num_tiles().
Philipp Spitzer [Fri, 7 Jun 2019 20:47:28 +0000 (22:47 +0200)]
Create function num_tiles().

11 months agoSupport parameter --photo-spacing in main() and command line.
Philipp Spitzer [Wed, 5 Jun 2019 04:35:08 +0000 (06:35 +0200)]
Support parameter --photo-spacing in main() and command line.

11 months agoAdd parameter spacing_mm to function tile().
Philipp Spitzer [Wed, 5 Jun 2019 04:26:26 +0000 (06:26 +0200)]
Add parameter spacing_mm to function tile().

11 months agoMake more use of function mm_to_pixel.
Philipp Spitzer [Wed, 5 Jun 2019 04:12:41 +0000 (06:12 +0200)]
Make more use of function mm_to_pixel.

11 months agoUse img.width instead of img[0]; same for hight.
Philipp Spitzer [Wed, 5 Jun 2019 04:12:25 +0000 (06:12 +0200)]
Use img.width instead of img[0]; same for hight.

11 months agoCreate test for make_passport.
Philipp Spitzer [Tue, 4 Jun 2019 21:18:23 +0000 (23:18 +0200)]
Create test for make_passport.

11 months agoAdd command line arguments; main() now tiles.
Philipp Spitzer [Tue, 4 Jun 2019 21:09:15 +0000 (23:09 +0200)]
Add command line arguments; main() now tiles.

11 months agoCreate function tile().
Philipp Spitzer [Tue, 4 Jun 2019 21:04:11 +0000 (23:04 +0200)]
Create function tile().

11 months agoCreate function mm_to_float().
Philipp Spitzer [Tue, 4 Jun 2019 20:33:22 +0000 (22:33 +0200)]
Create function mm_to_float().

11 months agoAdd DPI to output image.
Philipp Spitzer [Mon, 3 Jun 2019 21:28:26 +0000 (23:28 +0200)]
Add DPI to output image.

11 months agoCreate unittest for gimp_passport.py.
Philipp Spitzer [Mon, 3 Jun 2019 21:22:12 +0000 (23:22 +0200)]
Create unittest for gimp_passport.py.

11 months agomake_passport() now takes an Image instance instead of a filename.
Philipp Spitzer [Mon, 3 Jun 2019 21:12:26 +0000 (23:12 +0200)]
make_passport() now takes an Image instance instead of a filename.

11 months agoNow using argparse.
Philipp Spitzer [Mon, 3 Jun 2019 20:57:13 +0000 (22:57 +0200)]
Now using argparse.

11 months agoInitial version creating a passport image from a .png with tranparency.
Philipp Spitzer [Mon, 3 Jun 2019 20:20:51 +0000 (22:20 +0200)]
Initial version creating a passport image from a .png with tranparency.