Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Edris899's avatar

How to check if uploaded image has a watermark?

Hi there,

I am building a illustration & album website with Laravel 5.6. I was wondering if there is a way to check if a uploaded image has a watermark on it and do actions based upon the outcome. Because the main problem is that I don't wan't to have people uploading images that are licensed or have a watermark on it.

Any ideas?

0 likes
4 replies
Cronix's avatar

No. At least not easily. It's just an image. It's not like there are layers to the image and all it has to do is check for a "watermark" layer. If I had a picture of myself with a road sign in the background of the image, how would it be able to tell whether the text on the road sign was a watermark, or part of the actual image? There are services that can help with detection, but they aren't free and aren't 100% accurate. It's harder than facial recognition.

Edris899's avatar

Hi @Cronix I understand. I just don't want users to upload licensed images. Is there a way to check for a license? I read something about meta?

Jonjie's avatar

I think there's no solution with this. Since it is on front end part, though there is something around the internet you can use, you cannot check if it is 100% accurate. @Cronix is correct.

Please or to participate in this conversation.