summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-04-18 19:02:28 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-04-18 19:07:34 +0900
commit5ab3bd7b7da4aa91164cf95a87fe0836adee19ff (patch)
tree1620f0adb22ec7270245724bc49a37b15123ac1e
parente120d42742b583dbe797170dd8f64022b2d11ea8 (diff)
ecore_evas_convert: Fix default quality setting
Quality should not default to 100 unless specified in the command line. In particular, we don't want to save ETC1 at high quality by default since it can take hours (literally).
-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 78c8d3c..8ba05fa 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);