We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b88ec4 commit a0e557bCopy full SHA for a0e557b
src/Resizer.vala
@@ -68,6 +68,20 @@ namespace Resizer {
68
69
public async void resize_images() {
70
state = State.RESIZING;
71
+
72
+ try {
73
+ debug ("Check convert's availability");
74
+ string[] command = new string[] { "convert", "-version" };
75
+ Subprocess subprocess = new Subprocess.newv (command, SubprocessFlags.NONE);
76
+ if (yield subprocess.wait_check_async ()) {
77
+ debug ("Found convert");
78
+ }
79
+ } catch (Error e) {
80
+ var message = _("Resizer requires Imagemagick");
81
+ MessageCenter.get_default().add_error(message);
82
+ return;
83
84
85
numFiles = files.length;
86
numFilesResized = 0;
87
foreach (var file in files) {
0 commit comments