On Thu, 30 Sep 2010 21:45:42 +1000 [email protected] (Matt Oates) wrote: | Matt Oates <[email protected]> sent the following | comment to "anthony", about "bg_removal no -sparse-color". | You are reading it:- | ------------------------------------------------------------ | Dear Anthony, | | I recently tried out your useful bg_removal script wrapping the `convert` command. However, my build of IM doesnt appear to have the necessary -sparse-color option. Is there a work around for this? No worries if not, or you are too busy to take a look. Thanks for sharing your nifty command all the same, I will work through your helpful tutorials in hope of my own solution :)
Actually YES See IM Examples, Shepards Alternative http://www.imagemagick.org/Usage/canvas/#sparse_blur In particular the one that uses resize to generate a pyrimid of blured images really fast. My own 'hole filling' script I created last weekend http://www.imagemagick.org/Usage/scripts/hole_fill_shepards is a wrapper around that same method. It is VERY fast, even for very large images. Just make an image that is transparent, excapt where you want to specify special colors (or an edge of colors), and then feed it to that script. It is actually designed to 'fill holes' but can really fill any transparent area according to the colors around the edge of the area. I use it to let me quickly remove text and spam logos from images. I load the image in gimp, add transparency layer, erase or cut out the unwanted stuff and save it. I then use the script to 'fill the hole'. It works well for areas of smooth gradients, not so well when backgrond is textured. It also has the color 'leakage' problem of shepards which make multi-hole filling more difficult. I hope to have a Diffusion method (boundary limited) method built into IM some time soon, but have no ETA, and it is not at the top of the ToDo list. Anthony Thyssen ( System Programmer ) <[email protected]> -------------------------------------------------------------------------- The UNIX Project was the last best hope of defeating Microsoft. It Failed. But in the Year of the Platform Wars, it became something greater... Users last best hope for a open Operating System The year is 1998. The place: Linux 5 -- Anthony Thyssen -------------------------------------------------------------------------- Anthony's Castle http://www.cit.griffith.edu.au/~anthony/ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
