Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Given all of the effort spent to use Quartz's graphics operations, I was curious as to how they actually performed. I opened an account and tried out the upsampling, and was a bit disappointed.

http://chen.imgix.net/rose.png?w=560

What other upsamplers look like: https://github.com/haasn/mpvhq-upscalers/blob/master/Rose.md

Looking at the other operations available, I fail to see what is done better by Quartz than just by imagemagick.



Upsampling is a pretty unusual operation, though. A more useful comparison would be something like the common website task of scaling an image down to a thumbnail and adding a bit of sharpening and auto contrast/levels, etc.


I assume 99% of users are using downsampling, to get thumbnails.


CHROME ON MAC USERS: Use the imgur links instead of the 0x0 links, some users seem to be reporting crashes related to TLS.

The downsampling also isn't that great.

Original image: https://raw.githubusercontent.com/haasn/cms/master/rings_lg_...

Downsampled with imgix: http://chen.imgix.net/rings_lg_orig.png?w=400

Downsampled with imagemagick: https://0x0.st/1-.png http://i.imgur.com/Nvl7tAm.png

Downsampled with imagemagick, gamma correct: https://0x0.st/1i.png http://i.imgur.com/Hrm4COb.png

Note how the luminance becomes square in the center (step back a bit if you can't see it), and also the edge pixels on the imgix version.


Just FYI both of those 0x0.st images crash Chrome (Version 42.0.2311.135 (64-bit)) for me and several colleagues...

You don't even have to click the link, just simply get Chrome to load it into memory

edit: looks like something to do with Chrome's pre-fetching and https cert parsing, I think they're literally parsing the "0x0" string within the cert as a memory location


Ironically enough, it looks like the crash only happens on OS X.


Opening the 0x0.st image crashes Chrome on Mac. Just Googling 0x0.st causes whole browser to crash!


What about this downsampler? I think it's a bit better http://res.cloudinary.com/rancloud2/image/fetch/w_400/https:...


That one looks extremely close to the imagemagick one, slightly less aliasing and slighly more blur - it's down to a matter of preference.

Most importantly, it doesn't have the horrible box window that the imgix resampler has.


Warning: clicking on the 3rd link in your comment repeatably crashes Chrome (the entire browser, not just the tab) for me.


As I recall, the basic idea was for something lighter-weight than spinning up and spinning down imagemagick.

Then again, one wonders why not just use FreeImage or something?


Is running imagemagick really that intensive?

Isn't running shaders intensive as it needs to be compiled on the fly and handed off to the GPU driver?


Switching between shaders is orders of magnitudes cheaper than spinning up and spinning down a process.


How does FreeImage compare to ImageMagick?


It handles image loading, unloading, and basic manipulation options.

I imagine, especially if the traffic is mainly for downsampling, it'd be sufficient. If it's not, then writing some custom code to do the image transforms on a GPU and bring them back shouldn't be that gnarly--and if you can afford to stick a shitton of macs in a data center, you can afford a graphics programmer to get that done.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: