News for hackers. Stuff that matters.
Re:Ask HN: What was your best passive income in 2016? by vladdanilov on Sunday December 11, 2016 @04:10AM (#13150273)
Optimage – a visually lossless image optimization tool

http://getoptimage.com

Released this week. Came unnoticed on HN but somehow got featured on PH. 1200+ downloads of free version and a few sales.

Not sure if that'll change. In that case, the best of 2016 will be one of the plugins for Sketch https://news.ycombinator.com/item?id=12319286.

Re:Ask HN: What was your best passive income in 2016? by Pharaoh2 on Sunday December 11, 2016 @04:49AM (#13150372)
How is it different from ImageOptim?

https://github.com/ImageOptim/ImageOptim

Also are you going to support and fix the frequent bugs that png optimizers run into with esoteric color space/alpha combinations beyond the best effort...?

Re:Ask HN: What was your best passive income in 2016? by vladdanilov on Sunday December 11, 2016 @05:13AM (#13150423)
Sorry for copypasting, I get this question a lot.

Optimage can do automatic lossy (visually lossless) optimizations on JPEGs and PNGs. It means you don't have to manually tune JPEG quality for each image and can get some PNGs quantized to 256 colors if visual differences are negligible.

It uses a modified quality metric based on Contrast Sensitivity Function (CSF) and contrast masking of DCT coefficients for JPEGs, and a custom one for color-quantized PNGs (major difference is sensitivity to noticeable gradients).

Optimage has a lot of tweaks to compression algorithms to squeeze some more bytes (Pareto principle here). But much more bytes are saved by exhaustively trying all possible image data representations, e.g. fast brute forcing of PNG delta filters, dirty alpha, palette sorting.

There's a good PNG test corpus at http://css-ig.net/images/png-test-corpus/png-test-corpus-201.... Optimage – 276 058 bytes, ImageOptim – 297 561 bytes. But this is just a lossless test.

> Also are you going to support and fix the frequent bugs that png optimizers run into with esoteric color space/alpha combinations beyond the best effort...?

At some stage, yes. Right now I'm focused on things like losslessly rotating JPEGs according to Orientation meta in Exif, adding CMYK to RGB convertion when Convert to sRGB is ON, supporting container formats like ICO and ICNS, more tweaks to compressors for performance and smaller output, GUI improvements, etc.

Re:Ask HN: What was your best passive income in 2016? by kusha on Monday December 12, 2016 @01:08AM (#13155970)
Just a small suggestion, clicking to see the difference on the demo images wasn't clear at first. Maybe you should use one of those sliders that they use for before/after images. I think that would be better UX.
Re:Ask HN: What was your best passive income in 2016? by vurpo on Monday December 12, 2016 @04:48AM (#13156886)
I think that kind of drives the point home. Maybe it's my display or my vision, but I still can't tell a difference between the "Before" and "After" pictures. That's very impressive to me, looking at the compression ratios.
Re:Ask HN: What was your best passive income in 2016? by vladdanilov on Monday December 12, 2016 @07:32AM (#13157584)
The only way I could make it fairer is to add a magnifying area zooming to 100% but that would be too much work. Hoping that links to images is enough.
Re:Ask HN: What was your best passive income in 2016? by vladdanilov on Monday December 12, 2016 @06:48AM (#13157382)
I discarded the idea of using a sliding divider because it cannot switch images fast enough to notice tiny compression artifacts, if any.

But thanks for your feedback. I have a couple of ideas how to make it more clear.

Re:Ask HN: What was your best passive income in 2016? by benmarks on Sunday December 11, 2016 @07:21AM (#13150765)
Any thoughts about delivering this as a webservice? Lots of catalog images out there are managed by merchants and need hands-off processing. Happy to chat further about this.
Re:Ask HN: What was your best passive income in 2016? by vladdanilov on Sunday December 11, 2016 @07:49AM (#13150851)
CLI is cross platform. I'm certainly planning a server license with an option to spin it on AWS.

I have some performance updates planned making it 2-3 times faster. Probably worth waiting.

Email is in the HN profile.

Re:Ask HN: What was your best passive income in 2016? by nkkollaw on Sunday December 11, 2016 @05:59AM (#13150534)
Saw that on PH, looks good.

May I ask what percentage of sales did you get?

I'm going to launch my product soon, and I'd like to know what I can expect.

Re:Ask HN: What was your best passive income in 2016? by vladdanilov on Sunday December 11, 2016 @07:51AM (#13150854)
Thanks. Literally a few. Contact me if you need specifics.
Re:Ask HN: What was your best passive income in 2016? by monkeywork on Sunday December 11, 2016 @09:36AM (#13151212)
What is PH?
Re:Ask HN: What was your best passive income in 2016? by akwaryo on Sunday December 11, 2016 @10:33AM (#13151446)
Re:Ask HN: What was your best passive income in 2016? by Guyag on Sunday December 11, 2016 @10:19AM (#13151388)
Re:Ask HN: What was your best passive income in 2016? by Romajashi on Sunday December 11, 2016 @04:42AM (#13150357)
what's PH?
Re:Ask HN: What was your best passive income in 2016? by disillusioned on Sunday December 11, 2016 @04:47AM (#13150370)
Re:Ask HN: What was your best passive income in 2016? by nonsince on Sunday December 11, 2016 @05:56AM (#13150527)
Pornhub
Re:Ask HN: What was your best passive income in 2016? by Infinitesimus on Sunday December 11, 2016 @06:53AM (#13150683)
To be fair porn sites do need all the video/image optimization they can get due to the sheer amount of data they hold
Re:Ask HN: What was your best passive income in 2016? by brettz on Sunday December 11, 2016 @01:28PM (#13152329)
Yes, Pornhub uses a mix of JPEGmini and our own image optimization.
Re:Ask HN: What was your best passive income in 2016? by fpgaminer on Monday December 12, 2016 @03:26AM (#13156525)
@brettz, not sure if you work for PornHub or not, but if you do and this question isn't weird for here: do you know if PornHub would be interested in a video superresolution service tuned specifically for pornographic content? i.e. upscale SD to HD or HD to UHD, but with state-of-the-art algorithms that go far beyond "dumb" upscaling. My friend and I are tinkering with the idea of starting a small service to do that, filling specifically the adult video niche so we can focus the algorithm for improved performance (versus a more general superresolution technology).

Sorry if this isn't in your wheelhouse or it's inappropriate to ask in a HN comment.

Re:Ask HN: What was your best passive income in 2016? by brettz on Tuesday December 20, 2016 @11:57AM (#13221581)
Sounds interesting can you email me more info
Re:Ask HN: What was your best passive income in 2016? by vladdanilov on Sunday December 11, 2016 @02:30PM (#13152680)
Ahem… are you fully satisfied with your current solution?
Re:Ask HN: What was your best passive income in 2016? by sean_patel on Sunday December 11, 2016 @03:17PM (#13152944)
Correct. P0rnHub also uses Redis for blazing performance.

Source: http://blog.devtool.com.ar/2012/04/how-does-pornhub-use-redi...

Re:Ask HN: What was your best passive income in 2016? by bertjk on Sunday December 11, 2016 @04:45AM (#13150365)
Product Hunt