Slashdot Mirror


Recovering Blurred Text Using Photoshop and JavaScript

An anonymous reader writes "There's been a lot of talk about recovering blurred or pixelated text, but here's an actual implementation using nothing but Photoshop and a little JavaScript. Includes a Hollywood-esque video showing the uncovered letters slowly appearing."

157 comments

  1. Interesting by Captain+Splendid · · Score: 4, Funny

    From TFA:

    The most important feature is the JavaScript scripting environment built into Photoshop, which is far more powerful than the AppleScript environment (and a much nicer language, in my opinion).

    Hey Timothy, are you trying to get the mac fans riled up?

    I'd try this myself, but I stopped pirating PS at version 6. Be interesting to see what other Slashdotters make of this.

    --
    Linux, you magnificent bastard, I read the fucking manual!
    1. Re:Interesting by gardyloo · · Score: 2, Informative

      Note that the study was done on a Mac, by a Mac-user, so your point is partially moot.

    2. Re:Interesting by Anonymous Coward · · Score: 0

      I don't think Applescript being crap is too contentious a point for many people, including most Mac user.

    3. Re:Interesting by caffeinemessiah · · Score: 5, Funny

      There's another easy way to recover blurred text in Photoshop: Ctrl+Z.

      --
      An old-timer with old-timey ideas.
    4. Re:Interesting by DreadPiratePizz · · Score: 4, Funny

      I'm on a mac you insensitive clod! It's command-z for us!

    5. Re:Interesting by Anonymous Coward · · Score: 0

      Is there any way to change that? I use a mac at school, but I'm not dropping $1000 on a laptop with 1 gig of ram.

    6. Re:Interesting by WillyDavidK · · Score: 1

      Or Apple + z for the old guys

      --
      For lack of a better signature...
    7. Re:Interesting by justo · · Score: 1
    8. Re:Interesting by SanityInAnarchy · · Score: 2, Informative

      I don't think so:

      known as the open-Apple key (as well as just "Apple") in documentation prior to the Apple Macintosh family of computers

      However, you get pedantry points for trying.

      --
      Don't thank God, thank a doctor!
    9. Re:Interesting by commodoresloat · · Score: 2, Funny

      Is there any way to change that? I use a mac at school, but I'm not dropping $1000 on a laptop with 1 gig of ram.

      Nope there's no way to change it but you cheapskates can just use Ctrl-Z instead.

    10. Re:Interesting by Anonymous Coward · · Score: 1, Interesting

      FWIW, de-blurring "like it's done in the movies" is quite possible.

      http://refocus-it.sourceforge.net/ with samples.

    11. Re:Interesting by treeves · · Score: 1

      No Windows version. Four years old. No wireless. Lame.

      --
      ...the future crusty old bastards are already drinking the Kool-Aid.
    12. Re:Interesting by DaVince21 · · Score: 1

      What do you mean, "no Windows version"? It's a platform-independent GIMP plugin for crying out loud.

      --
      I am not devoid of humor.
  2. Oblig by Anonymous Coward · · Score: 5, Funny

    Now for all of the other pixellated stuff...

    Bwahahahaha.

    1. Re:Oblig by Anonymous Coward · · Score: 5, Funny

      I'm off to ebay to try it on all those XP serial numbers.

    2. Re:Oblig by Anonymous Coward · · Score: 0, Interesting

      Posting to undo mistaken moderation.

    3. Re:Oblig by DrPeper · · Score: 0

      kudos in the style of a Guinness commercial - "Brilliant!"
      kudos in the style of ZeroPunctuation - "Stonking Great!"

    4. Re:Oblig by Anonymous Coward · · Score: 0

      um... doncha have to be non-anon to do that?

    5. Re:Oblig by Anonymous Coward · · Score: 1, Funny

      Nah, he modded as AC, too.

    6. Re:Oblig by rhyder128k · · Score: 1

      I wonder if a technique for faces, for example, could be developed? It could work like the photofit technique used in criminal investigations. A region of a face would be compared to a sequence of pixelated images of typical features until a match is found.

      --
      Michael Reed, freelance tech writer.
    7. Re:Oblig by Mgccl · · Score: 1

      I thought of Japan.

  3. Computer... magnify and enhace by Anonymous Coward · · Score: 2, Funny

    20x zoom. Mr. Data, what does that look like to you?

    1. Re:Computer... magnify and enhace by gardyloo · · Score: 5, Funny

      BIG squares.

    2. Re:Computer... magnify and enhace by Yvan256 · · Score: 1

      Very good. Now, Mr. La Forge, what does that look like to you?

    3. Re:Computer... magnify and enhace by Nick+Number · · Score: 1

      Kids, unblurring text opens up a whole new world of whimsy and wonder.

      Big blocky butterfly in the skyyyyyyyy...

      --
      Promote proofreading. Don't mod up sloppy posts.
  4. OSX-style dock on website. by siphonophore · · Score: 0

    Well done, sir. Well done indeed.

    --
    Dance like you're hurt, Love like you need money, and work when somebody's watching.
    -Scott Adams
    1. Re:OSX-style dock on website. by sexconker · · Score: 3, Interesting

      Neat.
      *takes picture*

      I hate the dock, and I hate transparency.
      I think it's even worse on a website.
      But I'm half-tempted to look at the code.

    2. Re:OSX-style dock on website. by fred+fleenblat · · Score: 1

      Steve Jobs won't get upset by this at all. No sirree!

      http://yro.slashdot.org/article.pl?sid=08/10/08/1224224

    3. Re:OSX-style dock on website. by pushing-robot · · Score: 2, Informative

      Here's the source. Interestingly enough, it was referred to earlier today.

      --
      How can I believe you when you tell me what I don't want to hear?
    4. Re:OSX-style dock on website. by sexconker · · Score: 1

      Half-tempted.
      Half.

      Hell I looked anyway.

      Neat.

    5. Re:OSX-style dock on website. by cheesy9999 · · Score: 4, Interesting

      Actually the one on my site was written myself, and is located at http://tlrobinson.net/projects/js/jsdock.php It was written back in my early days of JavaScript, so it's probably not the prettiest code...

      --
      -tom
    6. Re:OSX-style dock on website. by SanityInAnarchy · · Score: 1

      Looks like crap when your browser doesn't support transparency, though.

      --
      Don't thank God, thank a doctor!
  5. Just ovveride? by Dreen · · Score: 5, Insightful

    I never understood why people use pixel mis-mashing when they want to obfuscate something in an image.

    drawing a big black rectangle is 10x faster and there is no way you can de-obfuscate that

    1. Re:Just ovveride? by fbjon · · Score: 4, Interesting

      It may stand out too much in the layout. What would be interesting (maybe even useful) is developing a formula that determines the minimum mosaic size for a given font style/complexity and size that makes reversing it produce ambiguous results, one extreme being a black rectangle, the other no mosaic at all.

      --
      True confidence comes not from realising you are as good as your peers, but that your peers are as bad as you are.
    2. Re:Just ovveride? by Anonymous Coward · · Score: 0

      ... Except when you leave the black rectangle as a separate layer.

      Or draw the black rectangle using Word's image drawing tools, or in a vector image file, and leave the actual text underneath.

    3. Re:Just ovveride? by Anonymous Coward · · Score: 0

      Unless the document you are trying to obfuscate is a PDF:

      http://it.slashdot.org/it/06/06/22/138210.shtml

    4. Re:Just ovveride? by Zadaz · · Score: 4, Interesting

      Why not make a "secure" mosaic filter that does one or more of the following:

      - Randomizes the pixel data before applying the mosaic (Keeping the original colors so the mosaic looks natural.)

      - Applies noise to the area before applying the mosaic (Could use intensity noise rather than hue to retain the color scheme that is being obfuscated.)

      - Requires the user to drag the smudge tool across the area by a pre-determined amount to randomize the data before the mosaic.

      - Apply noise to the mosaic pixels, (1:1 with the mosaic size) after it has been applied.

      These would all retain the look of the mosaic but would defeat the reverse engineering tactics displayed here.

      Heck, forget the plugin, these would be pretty simple to automate these within Photoshop.

    5. Re:Just ovveride? by Jabbrwokk · · Score: 4, Insightful

      Absolutely agree.

      Plus TFA says the original image was blurred using the Photoshop "mosaic" filter. So this approach, while interesting for text blurred using that exact filter, is probably useless in most real-world approaches, such as trying to recover text obliterated with the rubber-stamp tool, or like you suggest, a black box.

    6. Re:Just ovveride? by Tumbleweed · · Score: 4, Informative

      drawing a big black rectangle is 10x faster and there is no way you can de-obfuscate that

      Just make sure you're not saving in a file format that has a preview, where the preview doesn't have the obfuscation updated. :)

    7. Re:Just ovveride? by GFree678 · · Score: 1

      A big black rectangle is UGLY. Since blurring things looks a lot nicer, the media tends to prefer it. Image is everything, even in the modification of such. :)

    8. Re:Just ovveride? by Anonymous Coward · · Score: 1, Insightful

      Better is to blur something completely different from the original. Then if someone decodes it all they will get is a funny message about them wasting their time (or maybe a big "fuck you" or something).

    9. Re:Just ovveride? by DrPeper · · Score: 0

      What about a big Pink rectangle, with opaque purple smiley faces?

    10. Re:Just ovveride? by Dreen · · Score: 1

      Oh please
      I honestly cant think of a situation where I have an image I want to post somewhere, but I need to obfuscate some part of it but Im too damn pedantic to use a solid-colour cover. It doesnt even have to black, nor a rectangle.

    11. Re:Just ovveride? by fbjon · · Score: 1

      Yes, I didn't say it must necessarily be useful. :)

      --
      True confidence comes not from realising you are as good as your peers, but that your peers are as bad as you are.
    12. Re:Just ovveride? by larry+bagina · · Score: 5, Funny

      Heck, forget the plugin, these would be pretty simple to automate these within Photoshop.

      This is gimp country. On a quiet night, you can hear adobe squeal like a pig.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    13. Re:Just ovveride? by functor0 · · Score: 1

      My personal favourite for taking out such information in Photoshop is to use the Patch tool. Copying over a piece of the background over the letters/numbers erases them in such a way that looks like they never existed before.

    14. Re:Just ovveride? by More_Cowbell · · Score: 4, Insightful

      Not quite sure if that is funny or disturbing... :)

      --
      Experience teaches only the teachable. -AH
    15. Re:Just ovveride? by lostmongoose · · Score: 5, Funny

      I'm gonna go with 'funsturbing'

    16. Re:Just ovveride? by Anonymous Coward · · Score: 1, Insightful

      disturbunny is disturbed.

    17. Re:Just ovveride? by lysergic.acid · · Score: 1

      while i agree that this has few practical applications, it's still a pretty novel method of countering mosaic'd text. the author's not going to make any money off of this idea, but you have to give him credit for ingenuity. the most impressive part is that he slapped this together using a single popular off-the-shelf program and a few lines of JavaScript code.

    18. Re:Just ovveride? by Anonymous Coward · · Score: 0

      You mean something close to this: http://johnbokma.com/mexit/2007/01/09/make-part-screenshot-unreadable.html

    19. Re:Just ovveride? by mrdarreng · · Score: 2, Informative

      I think you have confused squealing with laughing.

    20. Re:Just ovveride? by noidentity · · Score: 1

      drawing a big black rectangle is 10x faster and there is no way you can de-obfuscate that

      ...unless someone saves that as a separate layer. PNG or JPG only!

    21. Re:Just ovveride? by Yvan256 · · Score: 1

      No need to be that complicated.

      Just replace the text you want to hide before applying the mosaic.

      Which text? Oh, I dunno. Something like "Ha-ha! You just lost time decrypting this sentence! /Nelson".

    22. Re:Just ovveride? by Anonymous Coward · · Score: 0, Troll

      That is, you can hear it when the gimp users stop crying over all they had to leave behind.

    23. Re:Just ovveride? by Anonymous Coward · · Score: 0

      Here is a simple solution:

      blur a completely unrelated set of words (say for instance the words "slashdot: news for nerds") and c&p the resulting image on top the the text to hide. You get blurred text, and you completely hide the real one.

    24. Re:Just ovveride? by martin_dk · · Score: 1

      Randomizes the pixel data before applying the mosaic

      Mosaic is used to

      A) Remove a certain level of information from the originial picture

      B) AND keep a certain level of information recognizable.

      The standard example is a picture of some person where we can sense a face, but not recognize the person. To randomize pixel data before applying the mosaic is a misunderstanding of the concept.

      I see two seperate strategies:

      1) Apply the mosaic with sufficently large blocks so the informationloss is irreversible

      2) Apply pixel noise with sufficiently level so the informationloss is irreversible

      Any combination is unnessesary complicated and fails in terms of security, aestetics and simplicity. This also applies to other steps like playing with contures, levels, hue etc.

      The problem should be reduced to a way of determining the mosaic size (or noiselevel) to satisfy A AND B

    25. Re:Just ovveride? by Anonymous Coward · · Score: 0

      <sarcasm>Yeah, as all cryptologists know, all you need to do to make a one-way function is devise something really really complicated. No way anyone could invert something complicated.</sarcasm>

      Blurring was believed to be secure. It's clearly not, as multiple attacks have shown. Don't try to fix a broken mechanism. Just abandon it.

    26. Re:Just ovveride? by jack2000 · · Score: 0

      WHAT? Mods come on now, parent is 100% correct.

    27. Re:Just ovveride? by plover · · Score: 1

      It doesnt even have to black, nor a rectangle.

      How about a pair of red stars with the words "Girls Gone Wild" written on them?

      --
      John
    28. Re:Just ovveride? by thepotoo · · Score: 2, Funny

      Yeah, I'm really crying over not having to track down a keygen every time I reinstall my photo editor.

      --
      Obligatory Soundbite Catchphrase
    29. Re:Just ovveride? by MLease · · Score: 1

      If you click on the score, you'll see there's no moderation on this comment. It's his karma score that's making it come out at -1.

      -Mike

      --
      I'm sorry; I don't know what I was thinking!
    30. Re:Just ovveride? by NeoSkandranon · · Score: 1

      Heed this advice. I once got a guy in a lot of trouble with his girlfriend over this.

      --
      If you can't see the value in jet powered ants you should turn in your nerd card. - Dunbal (464142)
    31. Re:Just ovveride? by Anonymous Coward · · Score: 0

      How often do you reinstall your photo editing software?

      I'd reinstall weekly if it meant keeping CMYK color space, color profiling, and perfect integration with my cintiq. Of course, I have all that and I don't haven't needed to reinstall yet since I'm using a stable professional peice of software.

      For the record I've used both, and if you plan on doing any professional work, I don't think the two are comparable (of course, that's why one costs $$$ and the other one is free)

      On an aside, I like the anti-photoshop post was modded funny, and the anti-gimp post was modded troll, even though The Gimp clearly lacks many of the features required by professionals.

    32. Re:Just ovveride? by Jabbrwokk · · Score: 1

      the most impressive part is that he slapped this together using a single popular off-the-shelf program and a few lines of JavaScript code.

      Oh, I totally agree. Imagine what he could do if he had access to the algorithms that drive the mosaic filter.

    33. Re:Just ovveride? by Anonymous Coward · · Score: 0

      >It may stand out too much in the layout.

      Then use the background color that was in place.

    34. Re:Just ovveride? by HTH+NE1 · · Score: 1

      ... Except when you leave the black rectangle as a separate layer.

      Or draw the black rectangle using Word's image drawing tools, or in a vector image file, and leave the actual text underneath.

      Or you forget to delete the embedded unaltered EXIF thumbnail data.

      --
      Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?
    35. Re:Just ovveride? by HTH+NE1 · · Score: 1

      ...unless someone saves that as a separate layer. PNG or JPG only!

      I don't know about PNG, but I believe JPG can also contain more image pixels than are actually displayed. I know for certain GIF can. Simply put, the image can be bigger than the viewport in which it is displayed, or even simpler, the image is overscanned. Some image views can expand the viewport revealing the cropped data. (A certain small underscanned GIF can crash some browsers when they fail to allocate memory for it.)

      There's even easier ways on television. First, in standard definition programming, often the censors don't bother pixellating content in the overscan area of the image (within 5% of the edges of the frame, usu. the bottom edge), and they also tend to miss instances where the even and odd fields are of different content (changes to another camera angle). The former revealed nudity on an episode of C|NET in its early years airing on USA Network. The latter revealed nudity of a guest (topless bartender) on Unscrewed with Martin Sargent on G4-TechTV who was otherwise pixelated.

      --
      Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?
    36. Re:Just ovveride? by HTH+NE1 · · Score: 1

      How about a pair of red stars with the words "Girls Gone Wild" written on them?

      Make sure what you're obscuring isn't also reflected in the chrome grill of the semi cab behind her. (They actually missed that for months.)

      --
      Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?
    37. Re:Just ovveride? by Anonymous Coward · · Score: 0

      So why not just replace the text with a sequence of characters directly from the alphabet and then blur that?

  6. Alot of the Lesbian sites I visit put stars on nip by Anonymous Coward · · Score: 0

    Maybe some day there will be like a way to overblend a sacrificial nipple or clit onto anything that was tarnished with the censorship "star." On second thought, that sounds like doublspeak censorware -- like downloading a DRM'd song and the wrong key to decrypt will give you a song sung by Hillary Rosen, same lyrics and sinstruments an' all. *SHIVERS

  7. something out of nothing by postmortem · · Score: 0

    Never works, regardless of details. In this case, creation of information from nothing.

    In this case, text was already recognizable, before the change. By encoding it in different format that is not readable by humans it doesn't mean that information was not there. Think of it as a cipher.

  8. General case != this by Empiric · · Score: 4, Insightful

    Is it not the case that the reason this works is because you're running the -same blur algorithm- with the -same input- (the unblurred letters/pixels) and simply iterating through the letters and looking for equivalent output?

    Presumably, the blur algorithm output could resolve such that multiple unblurred letters resolve to the same blurred pixels, but even if it is not this trivial to map the input state to output state, it still wouldn't seem to me to approach solving the general case of letters "blurred" by any arbitrary means, which is the real-world capability implied by the article.

    What am I missing here?

    --
    ~ Whence do you come, slayer of men, or where are you going, conqueror of space?
    1. Re:General case != this by sexconker · · Score: 4, Informative

      You're not missing anything.
      This guy tried to read some blurred text on his friend's site, so he decided to mess around in photoshop.

      He got over zealous and did some javascript stuff in photoshop, based on blurring known text and attempting to reblur and match that text 1 letter at a time.

      He was then disappointed that he couldn't use the thing to unblur assumed text of unknown font, font settings, color, language, character set, and blurring algorithm after unknown layers of image alteration after the text was rendered, and after unknown compression.

    2. Re:General case != this by nog_lorp · · Score: 1

      He then tried to make it worth his while by posting to slashdot.

    3. Re:General case != this by Anonymous Coward · · Score: 0

      It's really a simple thing - there's two ways I'd do it.

      Blurring is simply low pass filtering (usually, it could also involve smudging, and that would make it more difficult). Pixelation is just burring with quantisation into blocks afterwards.

      One solution is super resolution. If you have a lot of frames that have been blurred similarly and the object is moving a bit then it's pretty easy to take all those blurred bits and put all the information back together to fill in the holes. Over a series of frames you'll get back an almost complete representation of the original and you can then reconstruct it. Eventually you'll have enough information to reconstruct a Fourier series for the bit you're interested. At this point just take the inverse transform and bam there's your information.

      If the image is a single frame and the pixelation is based on the image data (rather than random jibberish) but with small block size then there may be enough frequency information left over to reconstruct a legible form of the original, even if your eyes can't see it without the extra filtering that's applied.

      A good algorithm I wrote to pixellate was to take a block of image data, work out its mean colour then just create random squares near to the mean colour. That produces a useful enough mosaic that doesn't rely on any information other than a single mean colour => all you can infer from a reconstruction is that the mean colour of the block was something. You'd need a shitload of frames to reconstruct the original, if you were able to at all.

    4. Re:General case != this by Anonymous Coward · · Score: 0

      Woah, lets be fair... at least "part" of the text he was trying to recover wasn't blurred. A little trial/error should produce the correct font, size, color, language, and character set. He seems convinced the blurring algorithm was "mosaic" from photoshop. That makes it a bit more realistic.

    5. Re:General case != this by MadKeithV · · Score: 2, Funny
      The ????? is finally revealed!
      1. - Get frustrated at blurred text
      2. - Fail to write unblur filter
      3. - Post to slashdot
      4. - PROFIT!!!!
    6. Re:General case != this by Anonymous Coward · · Score: 0

      Thank you. I've lurked around here for several years trying to see if this
      "slashdot" gig was really worth it, and now that you've shown me that it
      really isn't just some scam, I'm going to sign up right away!

      - A. Coward

    7. Re:General case != this by Anonymous Coward · · Score: 0

      Yeah, this is exactly what I was thinking after I read the first few sentences where he described the tightly controlled conditions that made his little experiment feasible:

      "This just in: Computers found to be really good at quickly comparing and matching small digital patterns. News at 11."

      It's a cute experiment but would need a lot of work before it could be applied to anything other than the exact font setup he started out with. For random text they already make other software that works as well as possible. It's called Optical Character Recognition software.

      This article was pointless.

  9. Captcha? by DrPeper · · Score: 0

    I wonder if this technique is anything similar to how some of the recent captchas have been recently cracked?

    1. Re:Captcha? by glwtta · · Score: 1

      It's not.

      --
      sic transit gloria mundi
  10. Ideal conditions by Itninja · · Score: 5, Interesting

    The article mentions the authors 'cheating a little' by de-blurring the image under 'ideal conditions'. From what I can gather, he is using a source Photoshop file (PSD) as the sample. If he already had access to the source PSD file, wouldn't it be easier to just click undo a few dozen times? Can this be reproduced to a raster image at all?

    --
    I judt got a nre Kinesis keybiartf so please excusr ant egregiou typos.
    1. Re:Ideal conditions by X0563511 · · Score: 2, Insightful

      I imagine the "cheating" aspect of using a PSD file is that you are working with a lossless image. There's no JPEG/MPEG compression going on etc. Working with another lossless format like BMP, or PNG, would probably work just as well.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    2. Re:Ideal conditions by nobodymk2 · · Score: 2, Informative

      Once I hit "save" in photoshop and exit I can't undo. Although in a layered image the rasterized text (must be rasterized before we can liquify/blur it) would probably be on a separate layer, but it's generally much more incriminating to replace text and not unblur text and it's probably not layered like that.

    3. Re:Ideal conditions by petermgreen · · Score: 2, Interesting

      What is more significant is knowing exactly which font and which blur filter was used. Also having the filter applied evenly is going to make things far easier than if someone grabs the blur tool and scribbles over the area with it.

      --
      note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
    4. Re:Ideal conditions by Anonymous Coward · · Score: 0

      I used essentially this technique to code a barcode reader. Shoot the barcode on a webcam and it would decode it with reasonable reliability, even if the picture was so blurred you couldn't even see the individual bars (which it was - I targetted really crappy webcams).

      This worked under non-ideal conditions (although the source data is pretty ideal to begin with).

      When I tested it under ideal conditions, the amazing fact was that I was able to decode the barcode when there were fewer than 1 pixels per barcode stripe. That seems impossible but in fact it doesn't bust any mathematical laws. It's certainly quite surprising.

  11. OR Japanese pr0n? by DrPeper · · Score: 2, Funny

    Wouldn't it be cool if you could use this technique to clear up the fuzzies on censored Japanese pr0n?!

    1. Re:OR Japanese pr0n? by moderatorrater · · Score: 4, Funny

      You're on the wrong forum for that line of reasoning. You'll want to find a site that's either anti-censorship or pro-porn. Good luck finding something like that on the internet.

    2. Re:OR Japanese pr0n? by DrPeper · · Score: 0

      Well an de-censorship video filter for Japanese pr0n could be a viable commercial product. Thereby creating jobs, and consequently helping the economy. Well that's my spin and I'm stickin' with it!

      Granted it's not exactly how most googleplexion-aires get started.

    3. Re:OR Japanese pr0n? by Anonymous Coward · · Score: 0

      That software already exists, and is freeware.

    4. Re:OR Japanese pr0n? by Anonymous Coward · · Score: 0

      Just buy ("buy") the uncensored version.

      I had a long, more-detailed post typed up, but I hit cancel by accident.

      Basically, they sell the censored version in Japan because legally, all porn has to be censored in Japan. They sell the uncensored version in the US and Europe.

      Some porn stars only do censored (and NO releases are uncensored), though that's like saying a western porn star only does softcore - just wait a few years and they'll be doing anything and everything.

      Within Japan, there is a fairly large underground market for the uncensored cuts, and it's not unusual for a censored-only star's work to be leaked, or for them to change their mind later (when they want more money).

    5. Re:OR Japanese pr0n? by Dogtanian · · Score: 1

      Wouldn't it be cool if you could use this technique to clear up the fuzzies on censored Japanese pr0n?!

      Uh, those "fuzzies" are what are known as pubic hair. You might be unfamiliar with it as American porn stars have razor rash down there instead :)

      <sarcasm>Wasn't it ingenious of them to grow hair down there to cover up all that unsightly stubble?</sarcasm>

      --
      "Slashdot - News and Chat Sites Deviant". (Click "homepage" link above for details).
    6. Re:OR Japanese pr0n? by DrPeper · · Score: 0

      Ahhh but don't you see? The de-censorship filter levels the playing field because all video is de-censorable. Thus providing a clear and level playing field for all the actors/actresses. And it helps to clean up that nasty underground market!

    7. Re:OR Japanese pr0n? by Anonymous Coward · · Score: 0

      But if they're clean and smooth, you can't floss while you're down there.

    8. Re:OR Japanese pr0n? by Anonymous Coward · · Score: 0

      You wouldn't need to, as much. Hair stuck between teeth = not fun.

    9. Re:OR Japanese pr0n? by Anonymous Coward · · Score: 0

      Pulling out hair that's between teeth = flossing

    10. Re:OR Japanese pr0n? by Bat+Country · · Score: 1

      Actually, they're called mosaic patterns.

      --
      The land shall stone them with the bread of his son.
  12. Old tech by Glith · · Score: 5, Funny

    Jeez. Hasn't anyone seen CSI?

    1. Re:Old tech by mpaulsen · · Score: 5, Funny

      I was going to watch it online, but they created a GUI interface in Visual Basic to track my IP. http://www.youtube.com/watch?v=Ni_rAamVP2s

    2. Re:Old tech by sexconker · · Score: 1

      Gooey.

    3. Re:Old tech by offrdbandit · · Score: 1

      That's hardcore...

    4. Re:Old tech by cheesy9999 · · Score: 2, Funny

      If you want to learn how to be leet like that CSI chick, just head on over to StackOverflow: http://stackoverflow.com/questions/177541/how-do-i-create-a-gui-interface-using-visual-basic-i-need-to-track-an-ip-addres

      --
      -tom
    5. Re:Old tech by guyminuslife · · Score: 4, Funny

      Writer: Hey, how would you find someone over the Internet?
      IT Guy: You mean, like, track their IP address?
      Writer: IP address. That sounds good. Okay, how would you do it?
      IT Guy: Well, working here, my dumbass manager would insist that I write a stupid GUI interface in Visual Basic, but---
      Writer: Awesome! We'll put that down. *click*

      --
      I don't believe in time. It's a grand conspiracy designed to sell watches.
  13. Failure by sexconker · · Score: 5, Insightful

    "While my original goal of recovering the censored text on my friendâ(TM)s page was never achieved, the project was a success."

    I wouldn't call that a success...

    Good execution of a basic concept, but the fact remains that this shit is infeasible in practice. You have all the font issues (the typeface, the spacing, the color, the size, etc.), and you've got all the source issues - Are you sure that's text? Is it English? Was it obfuscated in other ways? Has the image been altered after the text was rendered? How has compression affected it?

    The biggest fucking issue, of course, is that you're assuming the text was obfuscated using photoshop, or at least very similar blurring/pixelating algorithms.

    It's a great project in terms of using javascript and photoshop to do something neat but basic in concept (essentially brute forcing, as the author says).

    But unless you have inside info about how the text was rendered and obfuscated, you're better off taking a step back and squinting.

    I think I see a duck.

    1. Re:Failure by finiteSet · · Score: 3, Funny

      But unless you have inside info about how the text was rendered and obfuscated, you're better off taking a step back and squinting.

      Little Girl: "Wow! It's a schooner!"
      Willam: "You dumb bastard! That's not a schooner, it's a sailboat!"
      Little Boy: "A schooner is a sailboat, stupidhead!"
      Willam: "Well you know what? THERE IS NO EASTER BUNNY! OVER THERE, THAT'S JUST A GUY IN A SUIT!!"

      --
      If we start buying CDs then the terrorists have already won.
  14. So... by GFree678 · · Score: 1, Flamebait

    Where's the comments complaining about how they didn't find a similar way to do this in GIMP?

    Or maybe they did, but it's not here. Not that I can tell from a 500 sever error. :)

    1. Re:So... by sexconker · · Score: 2, Funny

      You can do the exact same thing in GIMP rather easily.

      Get some image with blurred text.
      Try blurring some letters to match up with the blurred text.
      Fail.

      See? You've already done what this guy did with javascript, photoshop, and who know how much wasted time.

    2. Re:So... by Anonymous Coward · · Score: 1, Funny

      And thus began GFree678's spiral to trolldem.

      At first, it was a mistake: "Hey, that wasn't flamebait!" Yet, through a series of bad moderations and various other mistakes he was modded down, further and further. His karma sank to unfathomable depths, his soul crushed with defeat.

      But then, one day in the not to distant future, the final straw snapped. He became unstoppable . "AARGGGGGHH GNAA" he bellowed. Entire cities crushed beneath his ever growing girth. "GGGOOOOAAATTTSSSEEEEEEE," he raged.

      Mods, you have no idea what you have unleashed on the world.

  15. Coral Link by mrbene · · Score: 3, Informative

    I'm getting a 500 status connecting to the original, but it seems that Coral CDN has a decent cache.

  16. Just squint by drmofe · · Score: 1

    "The easy way to read numbers"

  17. Short version by rabtech · · Score: 4, Interesting

    If you know the blur algorithm, you can run each character through it to produce the blurred output, then compare that result to the image you are trying to unscramble and pick the closest match.

    This assumes the blurring doesn't cause pixels to overlap their neighbors too much, that the algorithm produces deterministic output (isn't random), and that there are few possible inputs resulting in the same blurred output.

    If the letters overlap because the blur blends with its neighbors then it just becomes a computational complexity problem where you have to try words instead of letters. A lot harder, but not totally impossible.

    A blurring algorithm that used some large mosaic effect prior to bluring or used randomized input would produce a similar looking blur effect, but without disclosing much about the input.

    Personally, I'd prefer examining the blur area for the predominant background color and create a gradient/mosaic around that color to fill the area. Then there is absolutely no chance of recovering information, but the effect on video wouldn't be too horribly jarring (as a black box might be).

    --
    Natural != (nontoxic || beneficial)
    1. Re:Short version by zippthorne · · Score: 1

      Pfft. If you're going to go to that much effort, just blur up some alternate text and stitch that in instead. The pixelation will hide the edge artifacts.

      Then you can taunt them a second time-a

      --
      Can you be Even More Awesome?!
    2. Re:Short version by 4D6963 · · Score: 1

      If the letters overlap because the blur blends with its neighbors then it just becomes a computational complexity problem where you have to try words instead of letters.

      Yeah, or you could learn a bit about signal processing and simply just cross-correlate each "blurred" letter with the image to decipher. Why would take only as many cross correlations as there are characters in the alphabet, because it would detect all the occurrences of a letter in the entire image in one pass, if it's good enough to detect anything.

      And you're right, they should just use the same sort of algorithm as some video rippers use to hide channel logos on TV shows and such. The best way to make sure some information cannot be recovered is to make sure you get rid of it.

      --
      You just got troll'd!
  18. "The easy way to email multimedia" by Fred+Ferrigno · · Score: 1

    Sounds like your typical "we're going to revolutionize a decades-old standard" start up.

  19. Re:slashdotted after 9 posts by Spy+der+Mann · · Score: 2, Funny

    He's ****, Jim

    There. Fixed that for you.

  20. Yes, you can de-obfuscate black rectangles. by IdahoEv · · Score: 5, Interesting

    drawing a big black rectangle is 10x faster and there is no way you can de-obfuscate that

    That's not entirely true. There was an article a couple years back about a technique for recovering redacted text with pretty high reliability.

    It used the fact that most standard fonts have variable spacing, and that once you've determined the font you can model that only certain combinations of letters will actually fit in the space of the redacted word or words. Combined with a dictionary and bayesian matching based on nearby words, you can often figure out what words would have fit into a redacted rectangle. Or at least limit it to a fairly small pool of possibilities.

    They demonstrated it on a redacted government document, and pulled out some places where the redacted words had to be "Iran" and "Ahmedinejad" etc., because nothing else both fit and made sense. If it's a monospaced font, you know the exact number of letters of the redacted text.

    I can't find the original link, but here's a paper that describes some of the techniques available for "cracking" blackout redaction. (some apply only to magic-marker-type redaction, but others apply even to electronic black-rectangle redaction).

    --
    I stole this sig from someone cleverer than me.
    1. Re:Yes, you can de-obfuscate black rectangles. by Dreen · · Score: 2, Interesting

      Thats pretty interesting. The document lists some good countermeasures but still, the more you obfuscate, the harder it becomes to "brute-force" it back. For whole long-ish sentences it would probably be impossible.

      Plus, if you are obfuscating an important, scanned document, and its cruicial you hide stuff in it, the best option is to OCR it, and simply delete the snippets you dont want.

    2. Re:Yes, you can de-obfuscate black rectangles. by WK2 · · Score: 1

      Wow! You a smart mother----er. I would have never thought to -- that.

      Seriously, that's kind of obvious. A lot of us have seen redacted government documents, and it's usually pretty obvious what words go where. I've seen one where they left the bottom few pixels of a line, and it was simple to figure out what it said.

      The only way redacting a document has a chance of working is if you are redacting numbers, or entire paragraphs, and there is no way you are going to recover an account number that has been blacked out. Redacting words in a sentence is just silly.

      --
      Write your own Choose Your Own Adventure. http://www.freegameengines.org/gamebook-engine/
    3. Re:Yes, you can de-obfuscate black rectangles. by davolfman · · Score: 1

      Personally I always thought the scariest thing was the technology that recovered text from the sound of a person typing.

    4. Re:Yes, you can de-obfuscate black rectangles. by TheLink · · Score: 1

      "is no way you are going to recover an account number that has been blacked out"

      Unless you saved it in layers - where the blacked out part is on top and the stuff underneath it is still there.

      Hilarious when other people do that. Not so funny if it's your people ;).

      --
    5. Re:Yes, you can de-obfuscate black rectangles. by noidentity · · Score: 1

      Fascinating; I hadn't imagined black rectangles wouldn't eliminate all information. I'd really like to read the original paper you mentioned but didn't find. Any more information about its title or authors?

    6. Re:Yes, you can de-obfuscate black rectangles. by Anonymous Coward · · Score: 0

      Cryptologists decipher a term censored in a CIA "memo" to George Bush (2004)

      Sometimes I wonder if they're sloppy on purpose when blacking out text. In the given example you can still see the i-dot of "Egyptian". The attack could easily be defeated by lengthening/shortening the black bar by a random amount and moving the rest of the line accordingly. A simple script can do this. Maybe it doesn't matter enough and all they need is to show they tried to hide the words.

    7. Re:Yes, you can de-obfuscate black rectangles. by Anonymous Coward · · Score: 0

      You can make that BBR (big black rectangle) well... you know, bigger.

    8. Re:Yes, you can de-obfuscate black rectangles. by bumby · · Score: 1

      So, you make your rectangle a (random) couple of pixels wider than the text you want to cover - problem solved.

      --
      Hey! That's my sig you're smoking there!
    9. Re:Yes, you can de-obfuscate black rectangles. by bumby · · Score: 1

      I just realized that I totally forgot about the fact that you normally censor text inside a block of text, so it's of course possible to figure out the width of the censored text by its surroundings. Guessing the best way would be to simply remove the text you want to censor and replace it with [censored] or something...

      --
      Hey! That's my sig you're smoking there!
    10. Re:Yes, you can de-obfuscate black rectangles. by malignant_minded · · Score: 1

      Or you could type in Courier...

    11. Re:Yes, you can de-obfuscate black rectangles. by Anonymous Coward · · Score: 0

      They can claim they never wrote it!
      That's the point I guess

    12. Re:Yes, you can de-obfuscate black rectangles. by hesaigo999ca · · Score: 1

      We are talking about images though, where the procedure would not know where the original image pixels started and where the rectangle image ended etc.

      I agree most apps that crack the black rectangle do what you say, but technically the image being
      obfuscated does not have fonts.

    13. Re:Yes, you can de-obfuscate black rectangles. by JSBiff · · Score: 1

      Umm, in the case where a single word is being obfuscated, there is no way around the technique you mentioned. Heck, you can often do what you are talking about without a computer. Just read the text, and you can often guess what a missing word is by context.

      Assume, for a moment, that 2 or 3 lines of text have been 'blacked-out', and it suddenly gets extremely challenging for either human or computer to guess the missing text. Or, let the redacted text be something like a telephone number, password, social security number, etc, and again, just knowing the number of characters missing doesn't help you, because of the huge possibility-space in that case.

      If you think a black, or mono-colored box, is ugly, then as someone else said, randomize the pixels, don't just re-arrange them according to a fixed algorithm (unless that algorithm uses randomness to determine which two pixels to swap per-pass, that might work out ok, since the randomness would make it nearly impossible to figure out what order to swap back the pixels in).

    14. Re:Yes, you can de-obfuscate black rectangles. by dkf · · Score: 1

      There was an article a couple years back about a technique for recovering redacted text with pretty high reliability.

      It used the fact that most standard fonts have variable spacing, and that once you've determined the font you can model that only certain combinations of letters will actually fit in the space of the redacted word or words.

      The Big Black Box approach works really well with numbers, as digits are often all the same width even in variable-width fonts. Add to that the fact that most often you could reorder the digits and still have something equally plausible, and you've got no way to recover; the information is gone.

      --
      "Little does he know, but there is no 'I' in 'Idiot'!"
  21. Actually, there are programs to do that... by Anonymous Coward · · Score: 0

    > Wouldn't it be cool if you could use this technique to clear up the fuzzies on censored Japanese pr0n?!

    You jest, but if you spend a bit of time on Wikipedia, you'll find that some of the mosaics are created in a special way precisely so that people CAN undo the censorship and there are, in fact, programs to automate this.

    Basically, they created this scheme as a way to get around the law and there are several mosaic/decoder pairs, so not everyone uses the same scheme and not all mosaics were made to be decoded.

    1. Re:Actually, there are programs to do that... by DrPeper · · Score: 0

      I did NOT know that. That is wacky weird wild stuff. -Johny Carson

  22. What about nipples? by vodevil · · Score: 5, Insightful

    I think people would be more interested if this removed the blur from nipples.

  23. dontreallyhavetimeforcodingathome by mqduck · · Score: 1

    I'll bite. What the hell is this a reference to?

    --
    Property is theft.
    1. Re:dontreallyhavetimeforcodingathome by Anonymous Coward · · Score: 0

      I've been wondering that also. WTF?

    2. Re:dontreallyhavetimeforcodingathome by Skrapion · · Score: 1

      I have no idea; I clicked on it to see if anything else had the same tag, but that really didn't do what I expected! Now I've apparently "voted" for the tag, and I have no idea if there's any way I can remove my vote.

      Anyway, no other stories have received the same tag, if you're curious.

      --
      The details are trivial and useless; The reasons, as always, purely human ones.
    3. Re:dontreallyhavetimeforcodingathome by Ant+P. · · Score: 1

      I guess it's a reference to they way normal people turn into complete dickheads when given the chance to do something retarded online with complete anonymity.

    4. Re:dontreallyhavetimeforcodingathome by Anonymous Coward · · Score: 0

      I completely agree. How dare someone not use an existing tag. I'm leaving /. for digg. Get off my lawn!

  24. In other news... by DerCed · · Score: 1

    Mr. Robinson was indicted for violating a recent patent owned by Apple, Inc...

    (take a look at the website)

  25. Simple way to make believable mosaics: by Anonymous Coward · · Score: 1, Insightful

    Remove the text you want hidden and replace it with some lipsum of believable length and general consistency. Apply standard mosaic filter. Simple, relatively quick, no special software needed.

    1. Re:Simple way to make believable mosaics: by RMH101 · · Score: 1

      Woah there! You expect us to listen to you when you come up with a simple solution, applicable on all systems, and with zero cost? This is slashdot! C'mon, we need an enormously over-complicated code solution - preferably with some OS zealotry thrown in to keep it interesting.

  26. randomize after by pikine · · Score: 2, Insightful

    If you randomize pixel in any way before applying mosaic, adding noise or just randomly permute the pixels around, then what you get in the mosaic is going to be the same colored blocks that look like a solid colored strip. That's because mosaic computes the average of the pixel values that fall under the block, which would be the same for all blocks if randomness is evenly distributed. However, if you apply mosaic first and then randomize the blocks after, then the result looks much more like mosaic and yet is irreversible.

    --
    I once had a signature.
  27. javascript dock? by Eil · · Score: 2, Interesting

    Holy cow, I thought I had seen all possible ways to crapify a web page via Javascript, but today I have learned of another: Adding a partially transparent Mac OS dock to it. So that when you scroll down (as you normally do with web pages), the thing jumps around like a monkey on amphetamines. And you presume that it doesn't get any worse than that, wouldn't you? You would, but then you'd be wrong because it also does the magnification thing and it does it about as well as you'd expect Javascript to do it.

    Now if you'll excuse me, I'm heading out to abuse my 2nd Amendment rights.

    1. Re:javascript dock? by crapdot · · Score: 1

      What browser are you using? For me, IE6 & IE7 are completely broken and fail to show anything sensible. FF works flawlesly.

  28. What's interesting about this? by LostMyBeaver · · Score: 1

    Great, ecmascript is wonderful! Software automization is always cool.

    But here's the problem with the problem being solved.

    1) The font size is known
    2) The application which rendered the font is known (different apps render a little differently than others)
    3) There is no background image or pattern to distort the pixelization

    I can go on, but these points are the real issues, I guess it would be possible, with enough resources to build a database containing all characters from all fonts rendered at all interesting sizes and through all interesting applications. But even then, the background image would have to be recovered in order to apply this technique as it will greatly impact the colors of the pixelization.

    Either way... nice presentation of ecmascript in Photoshop :)

  29. All right!!! by Lord+Flipper · · Score: 1

    Yulia Nova's boogie, here we come!

  30. 1. FocusMagic.com; 2. chnge all redactd words to 3 by Anonymous Coward · · Score: 0

    1. Focus Magic can unblur stuff like you wouldn't believe.
    http://www.focusmagic.com/index.htm

    I found out about it when some guy from Canon put up a blurred photo of the 5D Mk II, and someone /else/ unblurred it to show the "5D". That freaked him out, and he suggested that Canon integrate the software into the camera itself...

    2. change all redacted words to 3 chars, before black-boxing 'em ( in audio, replace all redacted portions with 1 sec of digital silence, and if there's no background noise that gives away the real duration, you should be good to go ).

    There:

    1 method for unredacting stuff, and 1 method for redacting stuff.

    (:

  31. Replace obfuscated text with noise by gknoy · · Score: 1

    Why not make a "secure" mosaic filter that does one or more of the following:

    - Randomizes the pixel data before applying the mosaic (Keeping the original colors so the mosaic looks natural.)

    - Applies noise to the area before applying the mosaic (Could use intensity noise rather than hue to retain the color scheme that is being obfuscated.)

    Better yet, replace the text with the blurred values of "lorem ipsum ...", or some other random text. That way, it still will have the white/black balance of text-that's-been-obscured, but will be unintelligible.

    Like others, I don't understand why simply white/grey/blacking out a block of text on an image is something people are averse to doing.

  32. King Dead by HTH+NE1 · · Score: 1

    Space Ghost: Wait a minute! Computer, zoom in.
    [Control monitor zooms in on painting of Golden Gate Bridge on Space Ghost's wall, forming two big blocks]
    Automated Voice: Enhancing.
    [Image becomes one big yellow block]
    Automated Voice: Enhancing complete.
    Space Ghost: That's the bridge I painted. It's like they filmed this tape recording in an exact replica of my apartment. Wait a minute! They must be in my apartment! But wait a minute...
    Automated Voice: Yellow.
    Space Ghost: How'm I gonna get in there?
    Automated Voice: Block.
    Space Ghost: Wait a minute. I have the keys. Perfect!

    --
    Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?
  33. Secure and pretty way of blurring by Handlarn · · Score: 1

    Just replace the text you wish to blur with some other random text of the same size and then blur it.

  34. obligatory by Anonymous Coward · · Score: 0

    If they would have did it MATLAB (http://www.mathworks.com/products/image/), it could be done using a beowulf cluster!