4 ms·
Unless you mean the client should transcode before upload (which they can, mind) that mostly makes the server exploitable.
by masklinn 3y ago
Unless you mean the client should transcode before upload (which they can, mind) that mostly makes the server exploitable.
- mortehu 3y agoYou'd set up the server so that it's okay if it gets exploited. For example, maybe its only job is decoding images.
- jiofj 3y agoThen transcode in a different server. Not transcoding user-uploaded files is borderline negligent.
- account42 3y agoTranscoding images is why all old pictures on the web a a blocky mess of unholy JPEG.
- londons_explore 3y agoThere are ways to transcode images in such a way that if they're downloaded and reuploaded to your service you don't lose any further quality in your re-upload.
- kroltan 3y agoAs someone who shared a good deal of Spore creations over the internet, I disagree. (The game would generate a "card" with a visual preview, but would stuff the XML encoding of the creation into some PNG metadata field so the image could be dragged onto someone else's game.)
- dns_snek 3y agoThe server is usually processing the images anyway, at the very least to remove EXIF metadata, but also to resize and compress the images for different resolutions.