Live data from Hacker News

The algorithm for a perfectly balanced photo gallery

crispymtn.com

81–90 of 104 posts

Re: The algorithm for a perfectly balanced photo gallery

#81

I've studied this a great deal, and developed a custom masonry type layout to mitigate the row/column bias. I believe it is a much more balanced layout than the article shows. Using it in Imagist, a paid app. Open to a few beta testers for iOS 7 as well, if you want to judge for yourself.

Yes, please?

Re: The algorithm for a perfectly balanced photo gallery

#82
post #53

Side-topic. Shooting Holi [1] without putting your camera in an airtight sealed enclosure is a good way to ruin your equipment. http://en.wikipedia.org/wiki/Holi http://www.lensrentals.com/blog/2013/05/how-to-ruin-your-gea...

If the dust is that invasive into nominally sealed lenses, I really wouldn't want to be breathing the stuff.

Re: The algorithm for a perfectly balanced photo gallery

#83
post #73
post #53

Side-topic. Shooting Holi [1] without putting your camera in an airtight sealed enclosure is a good way to ruin your equipment. http://en.wikipedia.org/wiki/Holi http://www.lensrentals.com/blog/2013/05/how-to-ruin-your-gea...

Given that that article says that the supposedly-sealed lenses were also vulnerable, do you have advice on how one would successfully enclose a lens to protect it from the dust?

You can buy underwater / splash bags for cameras that are basically very thick zip-lock bags. They're much cheaper and lighter than a true (rigid) underwater photography enclosure, but they're basically airtight above water and will keep the dust off your gear. You won't be able to change lenses, however, and zooming might be difficult or impossible, so you'd probably be limited to just putting on a 24mm lens and shooting that all the time.

http://www.bhphotovideo.com/c/product/547694-REG/DiCAPac_WPS...

Re: The algorithm for a perfectly balanced photo gallery

#84

It like how it looks, but much like Flickr I dislike how it's biased towards landscape pictures. Some of my best photos are portrait, but they get overshadowed by the landscape ones. I imagine the algorithm to cater to both is much harder, because you wouldn't be able to treat each row in isolation, can it actually be solved to a good standard?

We tried to give portrait photos more space by using column layout @ http://www.thephotoduel.com/top-photos

Re: The algorithm for a perfectly balanced photo gallery

#85

This looks like a pretty slick, mobile-compatible photo gallery, but without the code it isn't very useful. They talk about Chromatic like a real product, but "free web service" basically means "demo".

I would love for the code to be released, something similar and selfhosted with a simple static backend (or my favorite: Kirby) would live on any low end box. Please consider selling the design and assets on Themeforest.

Re: The algorithm for a perfectly balanced photo gallery

#86
post #69
post #55

This is why I always preferred vertical masonry. Sites such as VKontakte, Google Image Search, and the recent Flickr app tile things horizontally, but this sometimes means you have to crop the images to fit into your masonry. Not so with vertical masonry, which you can just resize to have constant width.

Vertical masonry doesn't work well to communicate an ordered list of items. Photos are often just that...a story of an experience that happened chronologically. The inability to read left to right on columnar data makes this really hard.

If something really happened chronologically, then perhaps it's acceptable to have a horizontal scrollbar, or not right-justify the right edge.

This particular algorithm seems to mix up the order of the photos in order to best fit them on a line, so it can hardly be said to show chronological order.

Re: The algorithm for a perfectly balanced photo gallery

#87
Anyone else in this thread think that this blog post covers a painfully trivial calculation problem? What's next - someone's going to write a full blog post to explain to me how to perfectly toast my toast using these visual sensor things that seem to be built into my head (eyes)?

Re: The algorithm for a perfectly balanced photo gallery

#89
post #51

Since I'm a CS theory person, I can offer some theoretical improvements on the running time and make the problem even more general... Instead of minimize the linear difference of partition, we might want to minimize the standard deviation, or basically any convex function, and still do it in the same time bound. One can reduce this problem to find a k-edge path of minimum weight on a complete DAG. The naive algorithm…

sounded legit until that last word. sure...

Re: The algorithm for a perfectly balanced photo gallery

#90
post #44
post #33

Earlier quoted context omitted.

Actually, you're right! It's the same picture, scaled down to around 500x500 and with a heavy gaussian blur applied to it. The trick is to have a subtle grain effect over it to eliminate gradient artifacts.

It looks really great!

[deleted]
Post reply on HN