use magick instead of legacy convert
This commit is contained in:
parent
6995a4cc46
commit
6e31a068ee
@ -11,7 +11,7 @@ import subprocess
|
||||
|
||||
ROOT = os.path.dirname(os.path.abspath(__file__))
|
||||
imagecompare = f'{ROOT}/imagecompare'
|
||||
convert = f'convert' # set path for imagemagick convert if need
|
||||
magick = f'magick' # set path for imagemagick if need
|
||||
WORKDIR = f'{ROOT}/work'
|
||||
REPORT_ROOT = f'{ROOT}' # FIXME should be workdir?
|
||||
|
||||
@ -192,8 +192,8 @@ def command_png():
|
||||
image_test = f'{screenshot_base}/{image_base}.tga'
|
||||
image_new_gold = f'{new_gold_base}/{image_base}.png'
|
||||
|
||||
print(f'convert to {image_new_gold}')
|
||||
executor.submit(subprocess.run, [convert, "-auto-orient", image_test, image_new_gold], check=True)
|
||||
# TODO if verbose: print(f'convert to {image_new_gold}')
|
||||
executor.submit(subprocess.run, [magick, image_test, '-auto-orient', image_new_gold], check=True)
|
||||
|
||||
def command_run():
|
||||
compile()
|
||||
|
Loading…
x
Reference in New Issue
Block a user