@@ -83,6 +83,10 @@ def __init__(self):
8383 """ [0,1000000] Error threshold for the `stats` mode, 0 is no error. When specified a
8484 difference bigger than the indicated value will make the diff fail.
8585 KiBot will return error level 29 and the diff generation will be aborted """
86+ self .dpi = 150
87+ """ [72,600] Resolution (Dots Per Inch) for the diff images.
88+ Be careful to flush any cached images if you change it.
89+ Also be careful with the values, images can become huge """
8690 self .add_link_id = False
8791 """ When enabled we create a symlink to the output file with a name that contains the
8892 git hashes involved in the comparison. If you plan to compress the output don't
@@ -464,7 +468,8 @@ def do_compare(self, old, old_type, new, new_type, name, name_ori):
464468 cmd = [self .command , '--no_reader' , '--new_file_hash' , new_hash , '--old_file_hash' , old_hash ,
465469 '--cache_dir' , self .cache_dir , '--output_dir' , dir_name , '--output_name' , file_name ,
466470 '--diff_mode' , self .diff_mode , '--fuzz' , str (self .fuzz ), '--no_exist_check' ,
467- '--added_2color' , self .color_added , '--removed_2color' , self .color_removed ]
471+ '--added_2color' , self .color_added , '--removed_2color' , self .color_removed ,
472+ '--resolution' , str (self .dpi )]
468473 self .add_zones_ops (cmd )
469474 if self .incl_file :
470475 cmd .extend (['--layers' , self .incl_file ])
0 commit comments