Color info added
This commit is contained in:
@@ -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:-']
|
||||
|
||||
Reference in New Issue
Block a user