3 ms·
This happens all the time, all over the web. It's because interns or non-webdev staff often don't know they should resize a file before uploading it and attachi
by MiguelHudnandez 14y ago
This happens all the time, all over the web. It's because interns or non-webdev staff often don't know they should resize a file before uploading it and attaching it to a post. So they'll upload a JPG right from a camera's memory card and use the WYSIWYG editor to set its dimensions. The worst are when images like this are referenced within broadcast e-mail messages. Luckily you can swap the file out on disk without inconveniencing future readers.
I wrote an image API at my place of work to take a file by name and accept dimensions in the query string. It resizes the image, caches the file on disk, at and serves the smaller file. However, it's tough to integrate that API with every little WYSIWYG editor we have, so sometimes we still serve up large files in this way.
Usually, intentional retina-quality images have plenty of telltale signs (like the @2x naming convention).
- anigbrowl 14y agodon't know they should resize a file before uploading it and attaching it to a post That's a job for a computer, not a human. It's a waste of an editor's time to dwell on such details, just as it's a waste of a newspaper editor's time to worry about the ink in the printing machines.
- mike-cardwell 14y agoGoogles mod_pagespeed for Apache does dynamic resizing of images.
- alexchamberlain 14y agoAny real evidence that interns are any worse than full-time employees?
- Calamitous 14y agoThey're easier to get rid of, for a start, and that makes it harder to establish firm relationships and long-term projects.
- shock3naw 14y agoSeriously not impressed by the generalization that interns are the ones responsible for "making the web a terrible place." So as soon as that same developer takes a position as a full-timer they're magically imbued with all the best practices and knowledge required to run a great website? Also, you just admitted that your own place of work serves large images. Let's not throw blame around that we're not willing to take ourselves.
- MiguelHudnandez 14y agoYou're right, generalizations are not impressive. > you just admitted that your own place of work serves large images. Let's not throw blame around that we're not willing to take ourselves. Yes, it happens at my place of work, and that is where my generalization came from. I intended to indicate that even when taking steps to mitigate the issue, it still crops up because it's a hard problem to fix. Eventually, work gets delegated to people that don't know everything they should. It is not a big deal as long as people are learning from it. It happens when we assign web tasks to interns "and non-webdev staff" without proper education/training. So if you follow Toyota's "five whys" rule, it is not the interns' fault at all.