Sticker automatization

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?".
Post Reply
derivates
Posts: 2
Joined: 2019-10-15T15:48:42+00:00
Authentication code: 1152

Sticker automatization

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-03T00:14:51+00:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Sticker automatization

Post 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.
derivates
Posts: 2
Joined: 2019-10-15T15:48:42+00:00
Authentication code: 1152

Re: Sticker automatization

Post by derivates »

fmw42 wrote: 2019-10-15T16:37:01+00: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?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-03T00:14:51+00:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Sticker automatization

Post by fmw42 »

Nothing else that comes to mind for other purposes. What are you looking for?
Post Reply