News for hackers. Stuff that matters.
Re:Pillow-SIMD – Fast, production-ready image resize for x86 by gfody on Thursday July 06, 2017 @04:05PM (#14713449)
> I wasn’t building it for fun: I work for Uploadcare and resizing images has always been a practical issue with on-the-fly image processing.

you ever consider pushing the work entirely to the client with a resize implemented in javascript? that would cut down on bandwidth as well.

Re:Pillow-SIMD – Fast, production-ready image resize for x86 by igordebatur on Thursday July 06, 2017 @04:22PM (#14713610)
Uploadcare supports shrinking images before uploading, https://uploadcare.com/documentation/widget/#image-shrink (I'm one of co-founders)
Re:Pillow-SIMD – Fast, production-ready image resize for x86 by homm on Thursday July 06, 2017 @05:15PM (#14714036)
It's exactly what my previous article "Image resize in browsers is broken" is about )

https://blog.uploadcare.com/image-resize-in-browsers-is-brok...

It originally was written two years ago, so some things have changed. But in general, it is still correct: for most browsers, you need to combine several ugly technics to get suitable results. Though, the quality will have nothing common with quality when you have direct access to hardware.

Re:Pillow-SIMD – Fast, production-ready image resize for x86 by MichaelGG on Thursday July 06, 2017 @05:41PM (#14714188)
Why not use asm.js instead of relying on canvas and hacking around browser problems?
Re:Pillow-SIMD – Fast, production-ready image resize for x86 by homm on Thursday July 06, 2017 @05:50PM (#14714248)
1. asm.js is dead in favor of WebAssembly 2. I need a solution for most browsers on most platforms, not for some very recent and most popular
Re:Pillow-SIMD – Fast, production-ready image resize for x86 by nneonneo on Thursday July 06, 2017 @04:12PM (#14713514)
He's scaling images down, not up. Think taking an uploaded smartphone picture (multiple megapixels) and scaling it down to thumbnail-sized images for various screens.
Re:Pillow-SIMD – Fast, production-ready image resize for x86 by gfody on Thursday July 06, 2017 @04:18PM (#14713583)
ic - I thought it was just the usual image-downsample-and-upload thing you see everywhere.

even so, if the service is hosting your images in multiple resolutions you could do it all client side at upload time. they'd be trading bandwidth for cpu time.

Re:Pillow-SIMD – Fast, production-ready image resize for x86 by striking on Thursday July 06, 2017 @04:47PM (#14713809)
Bandwidth is more valuable than CPU time when communicating across the wider internet.