Back in the "olden days", you dropped a large image into a desktop app, and it opened it or refused, depending on whether it had image dimensions limit or not and whether machine could actually handle it (with RAM sizes in range of up to tens of megabytes it wasn't that obvious). And developers generally knew that file size has direct relation to image dimensions if and only if it is uncompressed. Also, no sane app loaded images in one fread(), they used mmap().
Show more of this post
Fast forward to 2010+, we move to multi-layered web apps written in weakly-typed, interpreted/JITed scripting languages with complex APIs that will process a large image (having large dimensions) only if its file size is smaller than 1% of machine's total amount of RAM. Compress it little more and it eventually accepts it, but then craps out in the middle, after hogging resources for a few minutes because it didn't expect 16k image. But hey, it's a web app and you can run it on your phone! And its UI is beautiful and RESPONSIVE! Yeah, it's useless because it crashes, but IT'S MODERN and utilizes MODERN AND PORTABLE TECH STACK! *Le sigh...* #computing #moderncomputing #web #webdev
