4 ms·
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 upsamp
by TD-Linux 11y ago
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 http://chen.imgix.net/rose.png?w=560
What other upsamplers look like: https://github.com/haasn/mpvhq-upscalers/blob/master/Rose.md 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.
- smackfu 11y agoI assume 99% of users are using downsampling, to get thumbnails.
- TD-Linux 11y agoCHROME 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_orig.png https://raw.githubusercontent.com/haasn/cms/master/rings_lg_... Downsampled with imgix: http://chen.imgix.net/rings_lg_orig.png?w=400 http://chen.imgix.net/rings_lg_orig.png?w=400 Downsampled with imagemagick: https://0x0.st/1-.png https://0x0.st/1-.png http://i.imgur.com/Nvl7tAm.png http://i.imgur.com/Nvl7tAm.png Downsampled with imagemagick, gamma correct: https://0x0.st/1i.png https://0x0.st/1i.png http://i.imgur.com/Hrm4COb.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.
- pdeuchler 11y agoJust 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
- teraflop 11y agoIronically enough, it looks like the crash only happens on OS X.
- Geee 11y agoOpening the 0x0.st image crashes Chrome on Mac. Just Googling 0x0.st causes whole browser to crash!
- ranrub 11y agoWhat about this downsampler? I think it's a bit better http://res.cloudinary.com/rancloud2/image/fetch/w_400/https://raw.githubusercontent.com/haasn/cms/master/rings_lg_orig.png http://res.cloudinary.com/rancloud2/image/fetch/w_400/https:...
- TD-Linux 11y agoThat 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.
- SeoxyS 11y agoWarning: clicking on the 3rd link in your comment repeatably crashes Chrome (the entire browser, not just the tab) for me.
- angersock 11y agoAs 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?
- listic 11y agoHow does FreeImage compare to ImageMagick?
- angersock 11y agoIt 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.
- 72deluxe 11y agoIs 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?
- angersock 11y agoSwitching between shaders is orders of magnitudes cheaper than spinning up and spinning down a process.
- acdha 11y agoUpsampling 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.
- deleted 11y ago[deleted]