TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Impact of metadata on Image Performance

45 pointsby inianover 8 years ago

5 comments

sbierwagenover 8 years ago
<p><pre><code> On an average, this kind of metadata occupies 16% of size of the JPEG file. </code></pre> Ho ho. You think that&#x27;s bad? Back in 2011, Tumblr didn&#x27;t strip metadata from <i>avatar</i> images. That results in some funny files, like this one: <a href="http:&#x2F;&#x2F;28.media.tumblr.com&#x2F;avatar_c5ee131b70d0_40.png" rel="nofollow">http:&#x2F;&#x2F;28.media.tumblr.com&#x2F;avatar_c5ee131b70d0_40.png</a><p>That PNG has a 3325 byte IDAT chunk, and a 106022 iCCP chunk. The metadata is 3188% bigger than the image itself.<p>Personally, I think websites <i>should</i> strip metadata from thumbnails and resized images, but should <i>also</i> let you download the original, unmodified image, complete with original filename. Why?<p>Instagram and others always recompress and strip metadata when you submit an image. This results in shitpics-- images so mangled by recompression that they look like visual gravel: <a href="https:&#x2F;&#x2F;theawl.com&#x2F;the-triumphant-rise-of-the-shitpic-e25d8e5af9bc#.bkxh5tln3" rel="nofollow">https:&#x2F;&#x2F;theawl.com&#x2F;the-triumphant-rise-of-the-shitpic-e25d8e...</a> This is a complete own goal, there&#x27;s no technical reason this has to happen. Digital files aren&#x27;t supposed to decay!<p>And, of course, stripping authorship tags would make the dream of automated attribution impossible: <a href="https:&#x2F;&#x2F;eev.ee&#x2F;blog&#x2F;2016&#x2F;08&#x2F;15&#x2F;attribution-on-the-web&#x2F;" rel="nofollow">https:&#x2F;&#x2F;eev.ee&#x2F;blog&#x2F;2016&#x2F;08&#x2F;15&#x2F;attribution-on-the-web&#x2F;</a>
评论 #12437321 未加载
评论 #12438140 未加载
soamvover 8 years ago
From my experience hosting a bunch of user-provided images:<p>1. Strip all metadata but provide downloads of originals somewhere<p>2. Keep it simple, just use imagemagick&#x27;s convert to remove profiles (but don&#x27;t use imagemagick for file type detection)<p>3. If the image has orientation exif tags, rotate the image to the right orientation (-auto-orient) before removing the exif profile.<p>4. Don&#x27;t remove image profile data. Or convert to sRGB first.
huphturover 8 years ago
ImageOptim is a handy little tool to strip all the metadata <a href="https:&#x2F;&#x2F;imageoptim.com&#x2F;mac" rel="nofollow">https:&#x2F;&#x2F;imageoptim.com&#x2F;mac</a>
laurent123456over 8 years ago
There&#x27;s some use to this metadata, for example gps coordinates to locate where it was taken, author info, camera parameters, etc. It might not be needed all the time, but it probably also shouldn&#x27;t be stripped off all the time.
评论 #12436650 未加载
steaminghackerover 8 years ago
Does Google index the metadata within images?
评论 #12436590 未加载