12-29-2024, 12:22 AM
at line 55
The plug_in_gauss will crash if the 'blur_radius' exceeds 500, so I would check for overflow.
Code:
# blur background
blur_radius = bg_height * bg_width / 35000
pdb.plug_in_gauss(image, background, blur_radius, blur_radius, 0)
The plug_in_gauss will crash if the 'blur_radius' exceeds 500, so I would check for overflow.
Code:
# blur background
blur_radius = min(500., bg_height * bg_width / 35000)
pdb.plug_in_gauss(image, background, blur_radius, blur_radius, 0)