4 ms·
Flickr aside, I am surprised nobody (AFAIK) has come up with a way of sanitizing uploaded image files yet. I wonder if there's a way for GD/ImageMagick to dete
by ValentineC 13y ago
Flickr aside, I am surprised nobody (AFAIK) has come up with a way of sanitizing uploaded image files yet.
I wonder if there's a way for GD/ImageMagick to detect the image data and strip everything else. (And if EXIF data is needed for photographs, import all non-binary EXIF data into the system first.)
- nodata 13y agomogrify -strip imagename.jpg But it won't help. You could just make your data a real image.
- jacquesm 13y agoDecompress and subsequent recompress would do this just fine.
- nodata 13y agoWhat would do what fine? mogrify -strip removes what he asks...
- pfortuny 13y agoYou might as well change a single byte. A tiny modification and BANG! nobody notices and the service is pretty useless as a general back-up solution. They could even implement that in their TOS: "whenever you upload a photo you agree to a random byte being modified on one of the pixels on the border."
- shawabawa3 13y agoIt would be pretty easy to stick in some redundancy
- Someone 13y agoMany do, but it isn't always "sanitizing". http://www.iptc.org//site/Home/Media_Releases/IPTC_study_shows_some_social_media_networks_remove_rights_information_from_photos http://www.iptc.org//site/Home/Media_Releases/IPTC_study_sho...: "According to a study by the International Press Telecommunications Council (IPTC), major social networks like Facebook, Twitter or Flickr remove copyright information and other useful embedded data from pictures posted by their users"
- JimJames 13y agoImgur does this. It also compresses big files though so I'm not sure if it can do it without effecting the image data and format itself.
- 0x0 13y agoDoesn't Facebook already do this?