output as TXT, not sure why TEXT doesnt always work
This commit is contained in:
@@ -482,7 +482,7 @@ def find_color_nearest_file(opts):
|
||||
|
||||
|
||||
def get_colors(filename):
|
||||
small_args=['convert','-define','jpeg:size=64x64',filename+'[0]','-resize','10x10!','TEXT:-']
|
||||
small_args=['convert','-define','jpeg:size=64x64',filename+'[0]','-resize','10x10!','TXT:-']
|
||||
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:-']
|
||||
@@ -534,7 +534,7 @@ def append_fingerprints(opt):
|
||||
|
||||
def get_fingerprint(filename):
|
||||
small_args=['convert','-define','jpeg:size=256x256',filename+'[0]','-resize','160x160!',
|
||||
'-colorspace','Gray','-blur','2x2','-normalize','-equalize','-resize','16x16','-depth','1','TEXT:-']
|
||||
'-colorspace','Gray','-blur','2x2','-normalize','-equalize','-resize','16x16','-depth','1','TXT:-']
|
||||
p=subprocess.Popen(small_args,stdout=subprocess.PIPE)
|
||||
img, err = p.communicate()
|
||||
values=''
|
||||
|
||||
Reference in New Issue
Block a user