3 ms·
He basically said himself why it's like this: It's a good idea to remove some metadata and/or re-encode images that users upload, but it's not so easy to selec
by pornel 14y ago
He basically said himself why it's like this:
It's a good idea to remove some metadata and/or re-encode images that users upload, but it's not so easy to selectively preserve metadata.
Re-encoding (with side-effect of removal of all metadata) stops several attacks that are based on embedding executable code in specially crafted images (browser filetype sniffing leading to XSS, unsanitized filenames causing execution of PHP-in-GIF, etc.)
It helps performance: some users will have images that are encoded incredibly poorly, have massive ICC profiles embedded (which are also a compatibility problem) and almost never have the specific pixel size you want.
And most common tools make it incredibly easy to lose all metadata, but to preserve only specific bits you need to go extra mile.
So the default is drop creator information.