Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
I'm trying to blur a picture except a region in the middle. Something like this:
I only see options to do the opposite, i.e. blur a region and I need the inverse.
Can it be done?
Right now I'm trying to solve this by croping out the region in the middle, blurring the complete image and then merging the cropped region on top of the blurred image; quite messy!
The obvious way would be to use "+region", which would be like "-region" but allow changes outside the rectangle. Sadly, there is no "+region".
Instead, we can compose a blurred version over a non-blurred version, using a mask that is a black rectangle on a white background. In this Windows script, b.png is a test image.