I'm doing a project doing simple image processing and comparison through the use of ImageMagick
Right now, to execute my commands I'm using the python subprocess
module as such:
color_space = ...
evaluate_sequence = ...
output_file_name = ...
convert_cmd = ["magick", "convert", "-colorspace", color_space.name] + queue + \
["-evaluate-sequence", evaluate_sequence.name, output_file_name]
subprocess.call(convert_cmd)
I recently learned there are Python wrappers for ImageMagick
. In particular, I was looking into MagickWand
.
Is there a large benefit of refactoring my code to not use the subprocess module in terms of performance, security, etc?
I think the subprocess call is more readable/simple than if I used something like MagickWand
, but if there are other benefits I want to switch.