Color info added

This commit is contained in:
ville rantanen
2013-09-29 22:42:30 +03:00
parent 79f6437f78
commit 2826b47c4d

View File

@@ -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:-']