Page 1 of 1
how to find the hidden text in an image
Posted: 2012-05-09T07:13:26-07:00
by msenger
Unfortunately, I am very new to any graphics - therefore, my question may be either too trivial or I may not have enough information to formulate the question properly. Sorry for that, I will try and you will judge: I have a picture (
http://www.archaebacteria.net/geocaching/sifrovaci4.png) and I know that it has a hidden text (showing some geographical coordinates). The text I am looking for is written in white color (and is also a bit distorted to make its reading less straightforward but it should still be recognizable). Is it possible to use ImageMagic (preferably its command-line interface) to create a new image with the hidden text readable?
Many thanks, indeed.
Martin
Re: how to find the hidden text in an image
Posted: 2012-05-09T10:33:42-07:00
by fmw42
You would have to know the "key" to extract such information. There are many ways to hide the text. What is the reason you want to do this? We certainly don't want to help someone break into some other system or use some unlicensed data.
IM has one function for doing the hiding in any image? I cannot recall the function and the options page is currently down for me to look to find its name.
This image is a random noise image and you would probably need at least the seed value if not more to be able to create the same noise pattern and diff it.
Re: how to find the hidden text in an image
Posted: 2012-05-09T10:57:55-07:00
by Bonzo
-encipher and -decipher
Re: how to find the hidden text in an image
Posted: 2012-05-09T13:11:08-07:00
by fmw42
Thanks bonzo. That was it. I could not remember and options page was down at the time.
Re: how to find the hidden text in an image
Posted: 2012-05-09T15:12:51-07:00
by glennrp
It depends how it's encoded. In this case, only displaying the pure white
pixels yields the message.
There are various ways to do that. I used
convert sifrovaci4.png -colorspace gray -negate -threshold 0 gnt0.png
Re: how to find the hidden text in an image
Posted: 2012-05-09T15:13:37-07:00
by glennrp
Now I wonder what's at those coordinates besides trees. A geocache perhaps?
Re: how to find the hidden text in an image
Posted: 2012-05-09T15:19:44-07:00
by fmw42
good thinking glenn!
(Occam's razor: It is a principle urging one to select among competing hypotheses that which makes the fewest assumptions and thereby offers the simplest explanation of the effect.)
This works also and shows white on black
convert sifrovaci4.png -fill black +opaque white sifrovaci4_proc.png
and dilating may make it easier to read
convert sifrovaci4.png -fill black +opaque white -morphology dilate disk:5 sifrovaci4_proc2.png
Re: how to find the hidden text in an image
Posted: 2012-05-09T16:33:13-07:00
by anthony
glennrp wrote:It depends how it's encoded. In this case, only displaying the pure white
pixels yields the message.
There are various ways to do that. I used
convert sifrovaci4.png -colorspace gray -negate -threshold 0 gnt0.png
To make it easier to read add
-morphology Erode Disk after the threshold, before the implicit write filename.
Opps. Looks like Fred beat me to it
Though adding a .3 to the radius improves the 'disk' shape. EG: use Disk:5.3
Octagons are good for integer radii EG: Octagon:7
So where is this location? Google Maps is not much good with GPS locations any more. Used to be fantastic!
Re: how to find the hidden text in an image
Posted: 2012-05-10T04:58:13-07:00
by msenger
fmw42 wrote:You would have to know the "key" to extract such information. There are many ways to hide the text. What is the reason you want to do this? We certainly don't want to help someone break into some other system or use some unlicensed data.
Thanks for your answer. The reason is not anything evil. It is a puzzle from the geocaching game, precisely this one:
http://www.geocaching.com/seek/cache_de ... wp=GC3CYNW. The puzzle description is only in Czech; translated it says: "Inside this picture, there are coordinates written using the white color. I left there only roughly 1.5% of points but the coordinates should still be readable." So, it seems that I do not have any additional key; I do not think that it is encrypted. I just thought that if I change all pixels written in anything else than white color to a single color (e.g. black) I will see what remain and that will be the hidden text. But I am not sure how to do it, being really a dummy in the graphics world.
Martin
Re: how to find the hidden text in an image
Posted: 2012-05-10T05:12:36-07:00
by msenger
Many thanks to all of you. The result is, indeed, a place where a geocache (a hidden "treasure") is hidden - and I am going to try to "bag" it next time I will be in Prague (hopefully the next week). ImageMagic (and its community!) is wonderful.
Re: how to find the hidden text in an image
Posted: 2012-05-10T16:26:36-07:00
by anthony
Well as it was published, better make it quick!
Location is indeed in the northern suburbs of Prague.
Re: how to find the hidden text in an image
Posted: 2014-04-08T10:44:07-07:00
by lion369
msenger wrote:Many thanks to all of you. The result is, indeed, a place where a geocache (a hidden "treasure") is hidden - and I am going to try to "bag" it next time I will be in Prague (hopefully the next week). ImageMagic (and its community!) is wonderful.
Hi.
How did u solve the problem? I had almost the same problem, but I can't figure out the hidden message... Can you share the solution with me?
Re: how to find the hidden text in an image
Posted: 2014-04-21T16:24:31-07:00
by anthony
First all the answers are in the thread already. And yes it still works, I just tested.