News for hackers. Stuff that matters.
Re:Show HN: Instagram filters hacked and open sourced. Suppo... by hiroprot on Thursday March 01, 2012 @03:46PM (#3653953)
Yes, they had the plain text shader files embedded in their app, easily extractable. It's been like that since they first released 2.0. Path has (or had) them embedded, too.

It's still their IP though, and publishing them as "open source" is unethical and probably illegal. Just because something is feasible doesn't mean you should do it.

The GPUImage-based execution environment is fine, but you should remove these shaders ASAP.

Re:Show HN: Instagram filters hacked and open sourced. Suppo... by hiroprot on Thursday March 01, 2012 @03:56PM (#3653996)
Wanted to follow up and say that while including the proprietary Instagram shaders is wrong, the author did a nice job with this.

We're currently working on some filtering stuff using GPUImage as well, and it's nice to see this stuff progress.

One filter that is missing here BTW is Lux, which is Instagram's equivalent of the Camera+ Clarity filter. The reason (I suspect) is that the Lux "filter" is actually not implemented using shaders, but rather CoreGraphics.

Would love to hear your take on it if you know more.

Re:Show HN: Instagram filters hacked and open sourced. Suppo... by 5teev on Thursday March 01, 2012 @04:29PM (#3654138)
Having explored a lot of app bundles this way, I can report that many iOS apps have shaders and other similar files (e.g., plists, HTML files) stored as plain text in the bundle.

PNG files are obfuscated, but that's reversible:

http://www.axelbrz.com.ar/?mod=iphone-png-images-normalizer

This kind of spelunking can be a good way to learn from other developers about how to approach some problems. However, I agree with other commenters that it would be morally shaky to re-use any of another app's files in my own app.

Re:Show HN: Instagram filters hacked and open sourced. Suppo... by fennecfoxen on Thursday March 01, 2012 @03:48PM (#3653957)
To split hairs: "Free" or not, legal or not, the source is now open.
Re:Show HN: Instagram filters hacked and open sourced. Suppo... by phuff on Thursday March 01, 2012 @03:58PM (#3654010)
To split hairs even further, the source is not _open_ so much as _publicly available_. There is a big difference. "Open source" is a term of art with a specific set of legal requirements attached to it. If this code is illegally published from closed source code without permission it doesn't meet the definition of "open" that the term of art implies.

cf. http://www.opensource.org/docs/osd

Re:Show HN: Instagram filters hacked and open sourced. Suppo... by daeken on Thursday March 01, 2012 @03:46PM (#3653950)
I don't get it -- what's the point? I'm all for reversing for curiosity reasons, but releasing their source isn't cool, IMO. And what's worse is that this stuff really isn't that interesting; these sorts of filters are trivial to come up with on your own. For instance, I whipped up a set of WebGL filters for Boot2Gecko's camera app in a matter of an hour. (If you're curious, you can see a demo at http://demoseen.com/filters/ -- Firefox only, due to laziness.)

Now, a project that compiled a nice list of good filters, that'd be really cool. But this just isn't OK.

Re:Show HN: Instagram filters hacked and open sourced. Suppo... by HardyLeung on Thursday March 01, 2012 @03:40PM (#3653922)
Diwup, perhaps you want to take down your published hack ASAP. Just because Instagram did not obfuscate their code, doesn't mean that it is legal to take it as if you are granted permission. You may get into a lot of trouble for this.
Re:Show HN: Instagram filters hacked and open sourced. Suppo... by mrpollo on Thursday March 01, 2012 @03:30PM (#3653876)
How can you Hack something then open source it? thats intelectual property, if you didn't write it you dont have the right to open source it, am I right? can someone explain if this is legal, what if someone decides to use one of this filters on an app?
Re:Show HN: Instagram filters hacked and open sourced. Suppo... by pyre on Thursday March 01, 2012 @03:53PM (#3653975)
It's only 'open sourced' in the title of the HN submission. From the README:

  License

  Since it's a hack, literally. There's no way you could use those
  Instagram recipes in your project. But feel free to learn from
  them. Other than that part, you are welcome to use and distribute
  this project. I'll figour out an appropriate license and put it
  here later.
Re:Show HN: Instagram filters hacked and open sourced. Suppo... by Vivtek on Thursday March 01, 2012 @04:01PM (#3654022)
That's ... not open source. I think information wants to be free, too, but this is unethical and is not what open source is about. You can't share somebody else's knowledge - just your own.
Re:Show HN: Instagram filters hacked and open sourced. Suppo... by bootload on Thursday March 01, 2012 @07:21PM (#3654796)
"... Repository unavailable due to DMCA takedown. This repository is currently disabled. For more details please see the takedown notice ..."

didn't take long ~ https://github.com/github/dmca/blob/master/2012-03-01-instag... ... It's a bit naughty to post this here, a hacker-like thing to do but would be better appreciated at 4chan.

Re:Show HN: Instagram filters hacked and open sourced. Suppo... by Zhenya on Thursday March 01, 2012 @03:32PM (#3653881)
So these were ripped from the Instagram code , modified and opened up via GitHub?

Is this releasing proprietary Instagram info, or did I misunderstand this?

Re:Show HN: Instagram filters hacked and open sourced. Suppo... by nicw on Thursday March 01, 2012 @03:36PM (#3653906)
"Reverse-engineered" is really how this project should be worded.

EDIT: At the time I gave this author the benefit of the doubt. Looks like he pulled the actual shaders from the Instagram binaries, which is not cool.

Re:Show HN: Instagram filters hacked and open sourced. Suppo... by Zhenya on Thursday March 01, 2012 @03:46PM (#3653952)
More like intellectual property theft. Or at least just wrong.
Re:Show HN: Instagram filters hacked and open sourced. Suppo... by dpiers on Thursday March 01, 2012 @03:57PM (#3654005)
// Created by Di Wu on 2/28/12. // Copyright (c) 2012 twitter:@diwup. All rights reserved.

Nope, not theft, obviously belongs to him because he created it. It says so in every file.

Re:Show HN: Instagram filters hacked and open sourced. Suppo... by jawngee on Thursday March 01, 2012 @03:44PM (#3653940)
A couple of things:

- This is totally wack from a moral/ethical standpoint

- Why not filter the video after the fact?

Re:Show HN: Instagram filters hacked and open sourced. Suppo... by batista on Thursday March 01, 2012 @03:51PM (#3653968)
(irony) it's not stealing though, because they still have their filters, so it's ok! (/irony)
Re:Show HN: Instagram filters hacked and open sourced. Suppo... by pyre on Thursday March 01, 2012 @04:04PM (#3654034)
If you don't want to be considered a troll, then don't make these pithy comments.

1) The parent post did not use the word 'steal.'

2) The people that get up in arms about usage of 'steal' vs. 'copyright infringement' are making a semantic argument that is not really hard to understand. Whether you think that the semantic argument has merit or not is beside the point.

Your post makes it seem like you either do not understand the semantic argument (which I personally find unlikely, but I'll give the benefit of the doubt) or you are purposely acting like you don't understand it.

Re:Show HN: Instagram filters hacked and open sourced. Suppo... by azolotov on Thursday March 01, 2012 @03:57PM (#3654007)
Curious to see what Instagram will do about this.
Re:Show HN: Instagram filters hacked and open sourced. Suppo... by akx on Thursday March 01, 2012 @04:57PM (#3654253)
Looks like they just did something. Repo down due to DMCA takedown request.
Re:Show HN: Instagram filters hacked and open sourced. Suppo... by FreshCode on Thursday March 01, 2012 @04:07PM (#3654046)
They should hire him.
Re:Show HN: Instagram filters hacked and open sourced. Suppo... by untog on Thursday March 01, 2012 @04:38PM (#3654177)
Why, because he can reverse engineer an app?
Re:Show HN: Instagram filters hacked and open sourced. Suppo... by mh- on Thursday March 01, 2012 @04:40PM (#3654183)
Because he extracted resources from their app and uploaded them to Github with a misleading copyright notice..?