From 2826b47c4d6988ec0d613af85449199e4a5072b9 Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Sun, 29 Sep 2013 22:42:30 +0300 Subject: [PATCH] Color info added --- image_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_list.py b/image_list.py index 42a0d96..e0467c0 100755 --- a/image_list.py +++ b/image_list.py @@ -242,7 +242,7 @@ def find_color_nearest(sqlfile,src): return def get_colors(filename): - small_args=['convert',filename+'[0]','-resize','10x10!','TEXT:-'] + small_args=['convert','-define','jpeg:size=64x64',filename+'[0]','-resize','10x10!','TEXT:-'] p=subprocess.Popen(small_args,stdout=subprocess.PIPE) img, err = p.communicate() mean_args=['convert','-','-format','"%[fx:mean.r],%[fx:mean.g],%[fx:mean.b]"','info:-']