Question

I need to clean my images of watermark. I know that I can do it using Photoshop or other soft with the same functionality, but I'm interested in automating this feature.

I know that watermark is just logo on added to image layer. I know that ruby language have many gems, which works with images. For example, rmagik, paperclip and other.

I try to Google information about how delete watermark from image using Ruby, and don't found any positive answers. I read rmagik and paperclip gems wiki and as I understand, I can't delete watermark from image using it.

I know, that using carrierwave gem I can put watermark on image:


    img.write('composite.gif')

For example, I cat put image with watermark to Google image search, parse results of search and get this image without watermark. It will be very bad hardcore-style way answer, but it will be answer! and this answer will give me some results.

Maybe I there is some methods for deleting watermark? Does other gem exists with this functionality? Maybe I don't understand something right in rmagik and paperclip gems wikis? Maybe someone have the same problem? So, that's why I am asking for help.

P.S.1: My question demonstrate understanding of the problem being solved. I don't ask for recommend or find a tool, library or favorite off-site resource. I ask: how can I resolve my problem programmatically and using ruby ( see title of question if you don't understand ). But sometimes using some tool or library can resolve some problem!

P.S.2: And if I need to repeat: I don't violate any ownership rights. It's just scientific question.

Was it helpful?

Solution

Generally watermarks will not be in a separate layer, they are be merged before saving image in image editing software such as Photoshop or Gimp.

There is no way you can clean it using Ruby/Imagemagick libraries.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top