3 ms·
I dealt with this problem on a photo site 15 years ago where people were embedding RAR pieces in their JPGs to use us as a distribution repository. The bandwidt
by dexterdog 8y ago
I dealt with this problem on a photo site 15 years ago where people were embedding RAR pieces in their JPGs to use us as a distribution repository. The bandwidth increase was a giveaway so I just wrote an incoming processor that re-compressed everything that had more than X bytes per pixel. I can't believe Twitter doesn't have similar logic given its scale.
- nickspacek 8y agoMaybe they will just deal with it as you did: fix it when it becomes a problem.
- Sargos 8y agoTwitter does re-compress everything. This method survives re-compression.
- dexterdog 8y agoThen it's not recompression. Recompression is pulling (let's say) a JPG into memory so it becomes a bitmap and writing it back out to a JPG. If you want to keep metadata you only keep a specific set and you cap the value lengths.