-4

How do you insert a watermark/copyright/author inside the sourcecode of the file, without making the file corrupt? Not the layer on layer method.

I have seen this on multiple videos, audios and images before so it must be possible.

Disclaimer: I already know how to put a watermark on videos and images with layer on layer method, but that is not what I am after this time.

Ohtacaro
  • 1
  • 4
  • What exactly do you mean by "layer on layer method"? A watermark applied on a video or JPG/PNG bitmap isn't easily retouchable. Those formats don't support layers. – Pekka Jun 23 '13 at 09:06
  • http://php.net/manual/en/image.examples-watermark.php – sybear Jun 23 '13 at 09:08
  • @Pekka: It is retouchable even if it is not easy. View the source of an image, video or audio, that is where I have seen the watermark, I wan't to replicate that. – Ohtacaro Jun 23 '13 at 09:17
  • @Jari: Not what I am looking for, please read further before answering. – Ohtacaro Jun 23 '13 at 09:21
  • There is no way to build a watermark that is not retouchable at all, apart from killing every person on the planet who has the necessary skills, or destroying all photo retouching tools. Please clarify what you are trying to do. Make examples - what does a "layered" watermark look like and how is it different from what you want to do? Are we talking about a *visual* watermark at all here? – Pekka Jun 23 '13 at 09:23
  • @Pekka: On my phone at the moment, will re-create the problem in a moment. Meanwhile, please view the source of an image. You'll see a lot of random text. In there you also might see clear text. But adding it yourself will make the file corrupt since it is not done properly. – Ohtacaro Jun 23 '13 at 09:28

1 Answers1

1

Meanwhile, please view the source of an image. You'll see a lot of random text. In there you also might see clear text. But adding it yourself will make the file corrupt since it is not done properly.

That information called "Metadata". You can add Metadata to many video/audio formats. However, this data is extremely easy to remove, much easier than a visual watermark that requires retouching work. A simple re-encoding or "Open" / "Save as..." in your editor of choice will often destroy any metadata that there was.

A proper visual watermark is usually the much, much more reliable option.

If you want to continue on this path anyway, here are some related links:

For images:

For video:

Community
  • 1
  • 1
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
  • I have been testing that method before but is not exactly what i want to replicate. but it is close. The files that I viewed some time ago did not have this watermark information in Meta-Data but it was still written into the file. it is a step further in what I want, but not giving the results i am after. – Ohtacaro Jun 23 '13 at 09:42
  • @Ohtacaro what you're looking for isn't possible. Any information that you put into a file has to conform to the file format somehow. And even if you manage to cram some string into the file, *it'll be lost when it's saved or re-encoded.* As a means of copy protection, this is a completely pointless endeavour. – Pekka Jun 23 '13 at 09:44
  • I will be looking further into this. Thanks! – Ohtacaro Jun 23 '13 at 09:53