Hugo van Kemenade
2ae55ccbda
Improve exception traceback readability
2022-12-30 00:07:52 +02:00
Hugo van Kemenade
d1cb81976c
Run Bandit on CI via pre-commit
2022-12-14 21:40:44 +02:00
Andrew Murray
aabb964de1
Show all frames in ImageShow
2022-09-23 20:14:05 +10:00
Andrew Murray
4f7f5470b1
Fixed typo
2022-07-06 08:30:24 +10:00
Andrew Murray
527eecae80
Fallback to python3
2022-07-05 20:55:56 +00:00
Santiago Castro
a0b22d2203
Fix when sys.executable
is empty or null
2022-07-04 09:50:47 -07:00
Alex Tedeschi
4279c74289
Increase wait time of temporary file deletion
...
Increase wait time to 4 seconds from 2 seconds for the deletion of the temporary file made from .show(). The Windows default image viewer at times can take longer than 2 seconds to open and display an image causing the image to never display for the user.
2022-04-18 16:23:50 -04:00
Hugo van Kemenade
4cb8e4b3fa
Add deprecations helper
2022-04-06 13:19:52 +03:00
Andrew Murray
f3b7ee2d3e
Do not pass None to subprocess
2022-03-15 08:31:17 +11:00
Andrew Murray
35cdcdc65d
Added ImageShow.register examples
2022-02-21 20:32:21 +11:00
Andrew Murray
993bb23ce0
Do not manually remove temporary files on Unix in get_command()
2022-02-14 09:33:58 +11:00
Andrew Murray
e19447cbbb
Do not manually remove temporary files on Unix
2022-02-12 08:04:40 +11:00
Andrew Murray
7f8df9d712
Use "title" argument for display
2022-02-12 07:49:27 +11:00
Andrew Murray
70a17080e4
Updated return values to match docstring
2022-02-12 07:49:20 +11:00
Andrew Murray
10c4f75aaa
Added delay after opening image with xdg-open
2022-02-03 08:58:12 +11:00
Andrew Murray
143032103c
Updated formatting
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-02-03 08:48:43 +11:00
Andrew Murray
8da80130db
In show_file, use os.remove to remove temporary images
2022-02-03 08:48:36 +11:00
Andrew Murray
1d91f6dce5
Document when file argument will be removed
2022-01-26 09:08:41 +11:00
Andrew Murray
5df83a57ff
Documented deprecation
2022-01-16 11:38:34 +11:00
Andrew Murray
86944abbab
Deprecated show_file "file" argument in favour of "path"
2022-01-15 16:08:37 +11:00
mihail
5cca90a37c
Add: XDGViewer which uses xdg-open
...
Synopsis
xdg-open { file | URL }
xdg-open { --help | --manual | --version }
Use 'man xdg-open' or 'xdg-open --manual' for additional info.
2021-12-20 12:09:07 +03:00
Ondrej Baranovič
954baa1e73
document #5788
2021-10-23 10:51:46 +02:00
Andrew Murray
b3e690a270
Use title for display
2021-10-23 15:53:08 +11:00
Andrew Murray
515314b85c
Updated capitalization
2021-10-02 09:50:27 +10:00
Michael Constant
5c8aa277ce
Avoid race condition when displaying images with eog
...
Image.show() expects its display command to run synchronously, but eog
is asynchronous if there's another instance already running -- it just
asks the other instance to open the file and then immediately exits.
This causes intermittent failures where the file gets deleted before
the running eog instance manages to open it.
Fix this by using the -n option, so eog starts a new instance each time
instead of trying to reuse an existing one.
2021-05-23 01:10:41 -07:00
Andrew Murray
3795772187
Use python3
2021-05-08 12:37:06 +10:00
Latosha Maltba
bb88d8d017
Add support to use GraphicsMagick's "gm display" as viewer
2021-03-21 14:36:18 +00:00
Andrew Murray
7b09463809
Added IPythonViewer docstring
2021-03-04 08:56:49 +11:00
Andrew Murray
f067fe4c05
Added import alias for clarity
2021-03-04 08:56:03 +11:00
Andrew Murray
346bfc9537
Added IPythonViewer
2021-03-04 08:55:24 +11:00
Andrew Murray
5f92636bd0
Removed comment
2021-02-27 00:33:23 +11:00
Hugo van Kemenade
10615a7da7
Upgrade Python syntax for 3.6+
...
Co-authored-by: nulano <nulano@nulano.eu>
2020-07-30 10:09:18 +03:00
Andrew Murray
e1ae9a50cb
Do not convert I;16 image when format is PNG
2020-06-29 22:14:40 +10:00
nulano
2f3deef8c5
update wording for #4706
2020-06-20 13:10:10 +02:00
nulano
23b771973d
Merge remote-tracking branch 'upstream/master' into docs-imageshow
2020-06-20 13:08:47 +02:00
Andrew Murray
6ad98ba3c0
Do not ignore viewer if order is zero when registering
2020-06-18 21:40:38 +10:00
nulano
4a9afc79bf
improve ImageShow docs
2020-06-14 13:55:19 +02:00
Andrew Murray
dd8b0de666
Close excusively opened images
2020-02-18 20:49:05 +11:00
Hugo
3dac6e2c62
Replace ImageShow.which() with stdlib
...
Co-Authored-By: Jon Dufresne <jon.dufresne@gmail.com>
2019-10-12 21:40:11 +03:00
Hugo
538d9e2e5d
Upgrade Python syntax with pyupgrade --py3-plus
2019-10-07 14:30:59 +03:00
Hugo
af770a6c55
Drop support for EOL Python 2.7
2019-10-07 14:30:59 +03:00
Andrew Murray
82f4a0d8f2
Changed WindowsViewer format to PNG
2019-09-21 09:11:32 +10:00
Andrew Murray
108512eae2
Cleaned up strings
2019-08-15 20:41:48 +10:00
Jon Dufresne
d50445ff30
Introduce isort to automate import ordering and formatting
...
Similar to the recent adoption of Black. isort is a Python utility to
sort imports alphabetically and automatically separate into sections. By
using isort, contributors can quickly and automatically conform to the
projects style without thinking. Just let the tool do it.
Uses the configuration recommended by the Black to avoid conflicts of
style.
Rewrite TestImageQt.test_deprecated to no rely on import order.
2019-07-06 16:11:35 -07:00
Hugo
f338eae128
Merge pull request #3869 from radarhere/imageshow
...
Do not down-convert if image is LA when showing with PNG format
2019-06-19 09:26:15 +03:00
Andrew Murray
b262378632
Added mode descriptors for all I;16 modes
2019-06-12 20:33:00 +10:00
Andrew Murray
848a629784
Do not down-convert if image is LA when showing with PNG format
2019-06-12 20:17:23 +10:00
Andrew Murray
1ecabd83d5
Changed Preview application path so that it is no longer static
2019-06-12 02:17:07 +10:00
Hugo
53a7e35004
Format with Black
2019-06-10 18:22:46 +03:00
Andrew Murray
bc3925ead5
Fixed writing to temporary file
2018-12-31 08:27:07 +11:00