Merge pull request #1961 from pypeclub/bugfix/extract_jpeg_paths_with_spaces

Global: ExtractJpeg can handle filepaths with spaces
This commit is contained in:
Jakub Trllo 2021-08-31 19:11:53 +02:00 committed by GitHub
commit aac65c990f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,7 +95,7 @@ class ExtractJpegEXR(pyblish.api.InstancePlugin):
# use same input args like with mov
jpeg_items.extend(ffmpeg_args.get("input") or [])
# input file
jpeg_items.append("-i {}".format(full_input_path))
jpeg_items.append("-i \"{}\"".format(full_input_path))
# output arguments from presets
jpeg_items.extend(ffmpeg_args.get("output") or [])
@ -104,7 +104,7 @@ class ExtractJpegEXR(pyblish.api.InstancePlugin):
jpeg_items.append("-vframes 1")
# output file
jpeg_items.append(full_output_path)
jpeg_items.append("\"{}\"".format(full_output_path))
subprocess_jpeg = " ".join(jpeg_items)