6ff0996771
Merge pull request #130 from jepler/deadcode
...
remove unused code added by mistake
2024-09-24 10:34:36 -05:00
8367ff6b5b
remove unused code added by mistake
...
Closes #129
2024-09-24 10:33:10 -05:00
41ca4c9c07
Merge pull request #125 from jepler/issue11
...
Return nonzero if no image was cropped
2024-09-24 09:14:27 -05:00
70e68bc770
Merge pull request #126 from beling/main
...
Update README.md: libjpeg-progs seems to be not present in stable debian
2024-07-23 10:14:14 -05:00
Piotr Beling
280c336621
Update README.md: libjpeg-progs is not present in stable debian
2024-07-22 19:48:16 +02:00
92ce71ff8f
nextPowerOf2: rewrite to use bit_length()
...
bit_length, added in 3.1, avoids the need to explicitly loop in Python
code to find the bit length of the number
2024-06-30 10:10:39 -05:00
c232a28f6f
Return nonzero if no image was cropped
...
Closes #11
2024-06-30 10:09:49 -05:00
cc470ea416
Merge pull request #124 from jepler/issue123
...
Fix 'NoneType' has no attribute 'lower'
2024-06-30 09:58:10 -05:00
7f46e7f4f1
defend in depth against image.format being None
...
.. by treating it as a png file, so that the result will be a
losslessly compressed version of the original
2024-06-30 08:25:29 -05:00
cd8617b0a0
Fix 'NoneType' has no attribute 'lower'
...
It's a mystery to me how this passed my local testing. `thumbnail`
is an image copy which is [documented](https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.format )
to be None in that case.
Retrieve the format property from the originally opened image instead.
Closes #123
2024-06-30 08:24:22 -05:00
8138638587
Merge pull request #121 from jepler/issue113
...
Avoid deprecated get_pointer
2024-06-07 11:16:58 -05:00
faecb421de
Merge pull request #122 from jepler/issue115
...
Remove use of deprecated imghdr
2024-06-07 11:16:42 -05:00
cea0688da1
Remove use of deprecated imghdr
...
Closes : #115
2024-06-07 11:16:03 -05:00
a774fb7a73
Avoid deprecated get_pointer
...
Closes : #113
2024-06-07 11:08:57 -05:00
0b051455f0
Merge pull request #120 from jepler/issue119
...
cropgtk: properly parse the commandline with argparse
2024-06-07 10:37:47 -05:00
6e15a78a5a
Merge pull request #118 from Ndolam/main
...
Implement a "poor man's" zoom feature. (The image gets bigger and sm…
2024-06-07 10:37:19 -05:00
3410356e2c
cropgtk: properly parse the commandline with argparse
...
Closes : #119
2024-06-07 10:31:35 -05:00
Jim Diamond
8e736f9dee
Implement a "poor man's" zoom feature. (The image gets bigger and smaller
...
as expected, but the window size increases when zooming in, rather than
there being a scrollable window. Not perfect, but far better than nothing.)
2024-05-10 16:00:30 -03:00
468b82aae8
Merge pull request #116 from Ndolam/main
...
Implement a command-line option to force JPEG bottom and right edges to be on iMCU boundaries.
2024-04-15 07:48:09 -05:00
Jim Diamond
f8c06f7a5d
# Please enter the commit message for your changes. Lines starting
...
# with '#' will be ignored, and an empty message aborts the commit.
#
# Committer: Jim Diamond <zlists+github@jdvb.ca>
#
# On branch main
# Your branch is up to date with 'origin/main'.
#
# Changes to be committed:
# modified: cropgtk.py
# modified: cropgui.py
# modified: cropgui_common.py
#
(1) Add an option ("-round-rb") whose ensures that the right and bottom
edges of the cropped images are on boundaries which are multiples
of the iMCU (this only does something for JPEG and MPO files).
(2) Don't allow keyboard commands to move the crop region into empty space.
(3) Fix misspellings of iMCU.
2024-04-02 18:35:56 -03:00
f39e6f7a86
Merge pull request #112 from jepler/crop-palette-image
...
fix cropping of palette images
2023-09-23 11:12:49 -05:00
b9ac03fcd7
fix cropping of palette images
2023-09-23 11:11:54 -05:00
8cbf8f62f7
Merge pull request #110 from Maxr1998/pil-fix-2
...
🐛 Fix error due to Image.Resampling missing in PIL < 9.1
2023-09-23 10:43:46 -05:00
3a5adc1230
Take pepalogik's suggestion
...
Co-authored-by: pepalogik <pepalogik@seznam.cz>
2023-09-23 10:43:36 -05:00
7d1f42f077
Merge pull request #111 from Maxr1998/remove-thumbnail
...
👀 Remove thumbnail from cropped image
2023-09-22 09:10:57 -05:00
Maxr1998
e461f38abd
👀 Remove thumbnail from cropped image
2023-09-21 23:29:52 +02:00
Maxr1998
ebcc2ff184
🐛 Fix error due to Image.Resampling missing in PIL < 9.1
2023-09-21 23:22:53 +02:00
54937caadb
Merge pull request #109 from Maxr1998/size-fix
...
🐛 Fix not being able to include last row and column
2023-09-20 15:12:31 -05:00
a59d7f0390
Merge pull request #108 from Maxr1998/pil-10-fix
...
🐛 Replace Image.ANTIALIAS which was removed in Pillow 10
2023-09-20 15:12:09 -05:00
Maxr1998
672b414a73
🐛 Fix not being able to include last row and column
...
Fixes #106 .
2023-09-19 21:02:06 +02:00
Maxr1998
ebbccc80e6
🐛 Replace Image.ANTIALIAS which was removed in Pillow 10
...
The replacement, Image.Resampling.LANCZOS has been around since version 1.3.3, and ANTIALIAS has long been deprecated.
2023-09-19 20:19:19 +02:00
cd46c9827a
Merge pull request #103 from beling/main
...
show how the current ratio differs from the closest popular format
2023-06-15 20:11:42 -05:00
Piotr Beling
ec53b418e9
Merge branch 'jepler:main' into main
2023-06-15 20:22:04 +02:00
9f4c2b0ecf
Merge pull request #104 from howff/drag-fix
...
Keep every type of drag within the image bounds
2023-05-18 10:12:49 -05:00
howff
e0e8566ec0
Keep every type of drag within the image bounds
2023-05-18 15:16:19 +01:00
Piotr Beling
b47a1393e8
show how the current ratio differs from the closest popular format
2023-05-17 09:22:02 +02:00
ef48fc2425
Merge pull request #102 from dubhater/patch-1
...
Stop using get_primary_monitor()
2023-01-12 19:06:23 -06:00
dubhater
c2ecf1071f
Stop using get_primary_monitor()
...
It doesn't work in Wayland and it is apparently deprecated.
Use get_monitor(0) instead.
Fixes the following error:
Traceback (most recent call last):
File "/tmp/./cropgtk.py", line 223, in <module>
wa = display.get_primary_monitor().get_workarea()
AttributeError: 'NoneType' object has no attribute 'get_workarea'
Fixes https://github.com/jepler/cropgui/issues/93 .
2023-01-12 21:19:57 +02:00
1340ac1de3
Merge pull request #101 from beling/main
...
use the rule of thirds and the directory of the previously chosen file
2022-09-16 08:39:00 -04:00
Piotr Beling
c7693404e7
clean-ups
2022-09-16 10:35:08 +02:00
Piotr Beling
184896a840
Merge branch 'main' of github.com:beling/cropgui
2022-09-16 10:23:20 +02:00
Piotr Beling
cce0c0e7b4
- file chooser dialog in GTK version starts with directory of the previously chosen file
...
- auxiliary lines follow the tri-division rule
2022-09-16 10:13:59 +02:00
1be7429730
Merge pull request #99 from waptaff/crop-region-fine-tune-with-keyboard
...
Allow fine-tuning of cropping area using keyboard.
2022-08-07 08:26:54 -05:00
Patrice Levesque
a537c817ec
Allow fine-tuning of cropping area using keyboard.
...
It is sometimes hard to get a precise bounding box using the mouse,
especially when the image is downscaled and thus one screen pixel is
used for more than one image pixel.
This patch adds vi-keys support to cropgui, that allows fine tuning of
the bounding box; `h`, `j`, `k`, `l` control the top-left corner while
`H`, `J`, `K`, `L` control the bottom-right corner.
2022-08-06 22:04:08 -04:00
6df535bcc4
Merge pull request #95 from jepler/division
...
Ensure only integers are passed to Image.point
2021-12-17 08:42:22 -07:00
9474e31ef8
Ensure only integers are passed to Image.point
...
Reportedly, passing a float stopped working in python 3.10.
Closes #94
2021-12-17 09:05:37 -06:00
9dbf930d0c
Merge pull request #88 from howff/fix-format-mpo
...
Treat MPO files like JPEG files
2021-04-19 07:49:22 -05:00
6bb7c01fd6
debian/changelog: Update package version
2021-04-19 07:48:39 -05:00
539d097caf
Merge pull request #90 from JoKalliauer/patch-1
...
closes #89
2021-04-19 07:33:09 -05:00
Johannes Kalliauer
a1883d683b
closes #89
...
update packages for Python3 on Fedora
2021-04-19 13:32:36 +02:00