Page 1 of 1

fill area with animated gif

Posted: 2007-06-09T08:48:37-07:00
by defied
Hello,

I am looking to fill a specific area (an area with similar colors) with an animated gif.
For example: I would like to fill the hair of a person with animated stars.

I thought this would work, but it didn't:

Code: Select all

convert person.jpg -fuzz 10% -opaque "#ecb396" null: disco.gif -layers Composite test.gif
If someone knows the answer to this, please let me know.

Thank you

Re: fill area with animated gif

Posted: 2007-06-09T15:21:34-07:00
by defied
I'm actually trying to build a tool which would be able to output this kind of stuff:

Image
http://blingee.com/blingee/view/5722313 ... ?offset=14

so I need something to detect the background, similar pixels. I'll try to use the GD library in PHP for that. Then I will transfer the coordinates to flash through xml, once in flash people can add animations (like put stars in their hair). When they click generate, the coordinates with the corresponding animations will be sent to a php file where imagemagick would need to add the animations.

I don't know if it's the right way, but I'll try to see how far I can get.

Re: fill area with animated gif

Posted: 2007-06-11T18:46:46-07:00
by anthony
I talk about this in my 'star generator' for IM Examples advanced
http://www.imagemagick.org/Usage/advanced/#stars
Also see a example of its use in...
http://www.imagemagick.org/Usage/anim_basics/

But the code for this has not been created. People however are welcome to try to do this and submit there scripts to add stars, or sparkles to a 'masked' area.

For finding masked areas, I have been looking at using -segment (doesn't work properly) and reduced color sets... -blur 0x3 +dither -color 3 from which the area to seed for stars can be pulled out, or user selected.

ASIDE: This method of finding 'areas' or image segments, is currently in development by my for the purposes for finding image metrics in comparing thousands of images. Basically because the current IM implementation of -segment is so usless, and extremely slow.