Commit f97e3548 authored by AUTOMATIC1111's avatar AUTOMATIC1111

Merge pull request #15006 from imnodb/master

fix: the `split_threshold` parameter does not work when running Split oversized images
parent e651ca8a
...@@ -61,7 +61,7 @@ class ScriptPostprocessingSplitOversized(scripts_postprocessing.ScriptPostproces ...@@ -61,7 +61,7 @@ class ScriptPostprocessingSplitOversized(scripts_postprocessing.ScriptPostproces
ratio = (pp.image.height * width) / (pp.image.width * height) ratio = (pp.image.height * width) / (pp.image.width * height)
inverse_xy = True inverse_xy = True
if ratio >= 1.0 and ratio > split_threshold: if ratio >= 1.0 or ratio > split_threshold:
return return
result, *others = split_pic(pp.image, inverse_xy, width, height, overlap_ratio) result, *others = split_pic(pp.image, inverse_xy, width, height, overlap_ratio)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment