summaryrefslogtreecommitdiff
path: root/src/bin/ecore_evas
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ecore_evas')
-rw-r--r--src/bin/ecore_evas/ecore_evas_convert.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/ecore_evas/ecore_evas_convert.c b/src/bin/ecore_evas/ecore_evas_convert.c
index 78c8d3c1f0..8ba05fac2f 100644
--- a/src/bin/ecore_evas/ecore_evas_convert.c
+++ b/src/bin/ecore_evas/ecore_evas_convert.c
@@ -43,7 +43,7 @@ main(int argc, char *argv[])
43 Evas *e; 43 Evas *e;
44 Evas_Object *im; 44 Evas_Object *im;
45 int arg_index; 45 int arg_index;
46 int quality = 100; 46 int quality = -1;
47 int r = -1; 47 int r = -1;
48 Eina_Bool compress = 1; 48 Eina_Bool compress = 1;
49 Eina_Bool quit_option = EINA_FALSE; 49 Eina_Bool quit_option = EINA_FALSE;
@@ -86,7 +86,10 @@ main(int argc, char *argv[])
86 goto end; 86 goto end;
87 } 87 }
88 88
89 snprintf(flags, sizeof (flags), "compress=%i quality=%i", compress, quality); 89 if (quality >= 0)
90 snprintf(flags, sizeof (flags), "compress=%i quality=%i", compress, quality);
91 else
92 snprintf(flags, sizeof (flags), "compress=%i", compress);
90 93
91 im = evas_object_image_add(e); 94 im = evas_object_image_add(e);
92 evas_object_image_file_set(im, argv[arg_index], NULL); 95 evas_object_image_file_set(im, argv[arg_index], NULL);