Search found 3 matches

by MrHamster
2017-02-26T23:21:35-07:00
Forum: IMagick
Topic: How to subtract one image from another?
Replies: 8
Views: 20690

Re: How to subtract one image from another?

snibgo wrote: 2017-02-26T19:30:35-07:00 The command calculates:

Code: Select all

D = (R - S.Sa) / (1-Sa)
Thanks!*-*
I think now I will be able to make it in PHP

In console it works great, I just should add some transparent white layer to original to avoid artefacts like in attachment.
by MrHamster
2017-02-26T18:55:49-07:00
Forum: IMagick
Topic: How to subtract one image from another?
Replies: 8
Views: 20690

Re: How to subtract one image from another?

I suggest you put it inside an "exec()". The command you showed uses Windows BAT syntax (eg line-ends are "^") and may need adjusting for PHP. Of course I don't want to make PHP do all of this for one command. Instead of '^' I can use number of commands. Instead of images in mem...
by MrHamster
2017-02-26T08:16:41-07:00
Forum: IMagick
Topic: How to subtract one image from another?
Replies: 8
Views: 20690

How to subtract one image from another?

Hello! My goal is to subtract one transparent image from another (like delete watermark when I have this watermark as a picture) I found ImageMagick script, but I don't know how to translate it to IMagick PHP code. Can you help me with understanding this script or with translating it? convert ^ imag...