Ubuntu 16.04
PHP 7.2

We use Imagick to place a transparent png image of a vehicle over a jpg background. The watermark from the company we purchase the images from appears at the bottom right of the vehicle image and sometimes appears on our final image. How do we ignore the bottom right of the transparent vehicle PNG when we create the final image?


How can I trim 25px from the top and 25 px from the bottom of the original vehicle png?

enter image description here

  • 1
    If you're buying the images you should be able to negotiate for pictures without a watermark. Otherwise you may find that removing their mark is breaking the terms of your contract. – roaima Dec 7 '19 at 9:00
  • I am well within my rights to do as I please with these images. Thanks for your concern. – Curious Sam Dec 7 '19 at 12:01
  • Pleased to hear it. Nevertheless it may be worth seeing if you can avoid the pain of removing a watermark by asking for images that don't have one in the first place. – roaima Dec 7 '19 at 21:01
  • What pain are you referring to? It's a line of code, nothing more :) – Curious Sam Dec 8 '19 at 0:48
  • GANs can do it automatically these days, not sure if some photo editing tool has some kind of GAN plugin. – simonzack Dec 8 '19 at 1:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.