Page 1 of 1

Sticker automatization

Posted: 2019-10-15T09:06:25-07:00
by derivates
Hello, I'm new to this this forum and overall a newb to imagemagick. I've digged around a bit and I was able to use imagemagick to crop some pictures and and transparent background to later on make some WhatsApp stickers.

Everything works just as intended but I'm pretty sure there's a more effective way of a accomplishing what I'm doing.

Let's put some context:

For images like this:
Image
it's pretty easy to do

Code: Select all

convert image.png -fuzz 10% -transparent white tmp.png
And that's mostly it in many cases; but sometimes there's no white background:
Image

In scenarios like the one shown above, I literally just open GIMP and use the free select tool and do all the common alpha layer, blah, blah. I really don't like this because I'm trying my best to stick to the terminal and make scripts later on with this...

Later on I transfer the files to my phone to open an android app called "Wemoji" to be able to add the stickers to WhatsApp. I'm pretty sure there's some professional/experienced sticker makers out there with scripts or more efficient ways to accomplish all this process.

Hope I made myself clear, I'm really looking forward to make a lot of sticker memes with this as I've seen many pals making awful ones haha.

Thanks for the help.

Re: Sticker automatization

Posted: 2019-10-15T09:37:01-07:00
by fmw42
With non-constant color background, there is little that I know that you can do automatically in Imagemagick other than manual tracing as you have.

But there are some online tools that will help, such as https://www.remove.bg and https://clippingmagic.com. OpenCV has grab cut. I have seen some deep learning/AI that can do it, but it needs training on lots of similar and dissimilar images.

I just tried remove.bg and it processed your Robert Downey Jr. photo automatically when dropped in their window.

Re: Sticker automatization

Posted: 2019-10-15T09:46:15-07:00
by derivates
fmw42 wrote: 2019-10-15T09:37:01-07:00 With non-constant color background, there is little that I know that you can do automatically in Imagemagick other than manual tracing as you have.

But there are some online tools that will help, such as https://www.remove.bg and https://clippingmagic.com. OpenCV has grab cut. I have seen some deep learning/AI that can do it, but it needs training on lots of similar and dissimilar images.

I just tried remove.bg and it processed your Robert Downey Jr. photo automatically when dropped in their window.
wow, those website are doing the job perfectly. I almost feel bad because I spent a lot of time with other images at the terminal haha, anyways it's good for practice I guess.

any other useful tools like this?

Re: Sticker automatization

Posted: 2019-10-15T09:58:22-07:00
by fmw42
Nothing else that comes to mind for other purposes. What are you looking for?