Color banding with high blur values
Posted: 2019-10-15T01:06:35-07:00
Hi all, I'm experiencing some faint color banding when blurring an image with high values - might be hard to see see but they are noticeable, especially in the center:
I read that image magick automatically performs the blur operation at a bit depth of 16 so this shouldn't happen. I tried forcing this by adding to the output - it's a .png, correctly identified at but I still get that banding.
The command I'm using is a slight modification of fred's surroundblur script (http://www.fmwconcepts.com/imagemagick/ ... /index.php) to make it work in a python script on windows:
Thanks!
I read that image magick automatically performs the blur operation at a bit depth of 16 so this shouldn't happen. I tried forcing this by adding
Code: Select all
depth -16
Code: Select all
16-bit sRGB 2099910B 0.016u 0:00.001
The command I'm using is a slight modification of fred's surroundblur script (http://www.fmwconcepts.com/imagemagick/ ... /index.php) to make it work in a python script on windows:
Code: Select all
"magick", "convert", f"\"{input_file}\"", "-write mpr:img +delete",
f"( mpr:img -resize {bg_size}! -crop {bg_size}+0+0 +repage -blur 0x{bg_blur} )",
f"( mpr:img -resize {cover_size} -bordercolor {border_color} -border {border} )",
f"( +clone -background black -shadow {shadow_darkness}x{shadow_fade}+{shadow_extent}+{shadow_extent} )",
"( -clone 2,1 -background none -layers merge +repage )",
"-delete 1,2 -gravity center -compose over -composite",
f"\"{output_file}\""