Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Watermarking an image using java

Name: Anon 2007-05-06 19:15 ID:0fQWsS+8

hey, im trying create a program with java that will watermark an image with a second picture, but i dont want the watermark to be visible, but at the same time, i want to be able to take an image with a watermark and extract the watermark to make sure that it is right.  Any pointers that could get me started would be greatly appreciated.

Name: Anonymous 2007-05-06 19:19 ID:1MElnWgp

NO EXCEPTIONS

Name: Anonymous 2007-05-06 19:47 ID:Heaven

hey, im trying create a program with java

i've stop'd reading there.

You're a dumb fuck, you want a watermark that is not visible?
hint: that's not a watermark.
That's steganography.
You can either
1) append to the image
2) read about the images format and use it for your evil purposes
...
>_>

Name: Anonymous 2007-05-06 19:52 ID:yHWR1ZBP

You could use the least significant bits of your colour channels to encode your second image. If your main image is varied enough, the effect will be imperceptible.

Some links for you too:

http://www.codeproject.com/csharp/steganodotnet.asp
http://www.guillermito2.net/stegano/jsteg/index.html

Name: Anonymous 2007-05-06 19:56 ID:yHWR1ZBP

>>3

There's nothing wrong with calling it a watermark. Many real life watermarks on paper aren't visible without holding them up to the light.

Name: Anonymous 2007-05-06 19:58 ID:jP/mHL6m

The problem with the popular implementations of steganography (e.g.: lower bits) is that the information is destroyed in a lossy medium (e.g.: JPEG).

However, why you'd want to reinvent the wheel is beyond me. Google.

Name: Anonymous 2007-05-06 20:14 ID:Rxo5j5zI

>>1
Stop hiding CP from the feds

Name: Anon 2007-05-06 20:53 ID:0fQWsS+8

>>6
its not so much that i need to reinvent the wheel as much as i need to implement said algorithm in a language that i understand.  >>3
no evil plans here, just a project for a class

If this is too complex, can anyone give alternative ideas for an an algorithm that is easy, but not too easy to implement, but has   practical use?

Name: Anonymous 2007-05-06 21:02 ID:yHWR1ZBP

>>8

It's not complex

Name: Anon 2007-05-06 21:05 ID:0fQWsS+8

>>9
i'm just having a tough time understanding how java works with images and how to hide information in one.  so yes it would be steganography

Name: Anonymous 2007-05-06 21:58 ID:Heaven

>>1
just write a brainfuck interpreter and write the code to do the image manipulation in brainfuck. it'll be much easier.

Name: Anon 2007-05-06 23:28 ID:0fQWsS+8

>>11
hey thanks, maybe then ill go rewrite all of the drivers for my linux partition for fun.

Name: Anon 2007-05-07 9:15 ID:US8qC7vO

>>3
the purpose of having a watermark that is not visible is that in case some fag site like ebaums takes an image and puts their watermark on the front, i could prove that i was the original creator by having my sig in the picture after i take the two apart.

Name: Anonymous 2007-05-07 10:13 ID:6WtueWAl

>>13
>>3 HERE
PROTIP:
READ THE FILE FORMATS.
IT'S POSSIBLE TO PUT COMMENTS AT YOUR GODAMN IMAGES.
also it is possible to append text to the image without destroying it.

Are you on *nix ? try this

echo leethacker >> image.jpg
strings image.jpg | tail

Name: Anonymous 2007-05-07 10:21 ID:BRWettan

>>14
somehow i woudln't expect the appended string or comment to be preserved when someone edits the image and saves it as jpeg again

Name: Anonymous 2007-05-07 10:32 ID:6WtueWAl

>>15
you cannot hide a message if someone edits your image you FUCKING IDIOT.
GOD.FUCKING.DAMN.
DO YOU EVEN KNOW HOW IMAGE SOFTWARE WORKS? IMAGE SOFTWARE KEEPS ONLY THE VISIBL--- GODAMN FUCK THAT GO FUCK YOURSELF

Name: Anonymous 2007-05-07 11:53 ID:6w/+1ku3

Using JAVA you say? Well, that makes it all NEXT TO TRIVIAL. I've been to a JAVA class, you see! And in that JAVA class (I just made a clever, deep, involved PUNE, or PLAY ON WORDS, there!) they taught us that JAVA can solve all problems with but seven or eight hundred lines of code!

So your problem is virtually solved already, thanks to JAVA!

Name: Anonymous 2007-05-07 15:51 ID:bzREV/bx

>>16
Uh, that's what he's saying.

Name: Anonymous 2007-05-07 15:55 ID:6WtueWAl

>>18
you're a fag look at his first post (>>1)
go fuck yourself
fuck

Name: Anonymous 2009-01-14 13:20

SICP

Name: ​​​​​​​​​​ 2010-10-24 3:20

Name: Sgt.Kabu悝肧kiman렊祇 2012-05-29 1:19

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List