{"id":12323,"date":"2015-09-22T08:48:26","date_gmt":"2015-09-22T12:48:26","guid":{"rendered":"http:\/\/scruss.com\/blog\/?p=12323"},"modified":"2015-09-22T08:48:26","modified_gmt":"2015-09-22T12:48:26","slug":"svgo-silently-destroying-creators-rights-since-whenever","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2015\/09\/22\/svgo-silently-destroying-creators-rights-since-whenever\/","title":{"rendered":"svgo: silently destroying creators&#8217; rights since whenever"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/svg\/svgo\">svgo<\/a> is, on the face of it, pretty neat: it takes those huge vector graphic files and squozes them down to something more acceptable. Unfortunately, though, the authors have seen too many files with junk machine-generated <strong>&lt;metadata&gt;<\/strong> sections, and decided that it&#8217;s all worthless.<\/p>\n<p>Metadata isn&#8217;t junk; it&#8217;s provenance. Your <a href=\"https:\/\/www.w3.org\/RDF\/\">RDF<\/a>? Gone. Your diligently researched and carefully crafted <a href=\"http:\/\/dublincore.org\/\">Dublin Core<\/a> entries? Blown away. The <a href=\"https:\/\/creativecommons.org\/licenses\/\">licence<\/a> you agonized over? teh <em>g0ne<\/em>, man. svgo does this by default. It would be very easy to use this tool to take someone else&#8217;s graphic, strip out the ownership information, and claim it as your own. It would be wrong to do that, but the original creator would have to find your rip-off and go to the effort of challenging your use of it. All so much work, all so easily avoided.<\/p>\n<p>You can make svgo do the right thing by calling it this way:<\/p>\n<pre>svgo\u00c2\u00a0 --disable=removeMetadata -i infile.svg -o outfile.svg<\/pre>\n<p>There&#8217;s apparently a config option to make this permanent, but the combination of javascript, no docs and YAML brings me out in hives. Given that the metadata section of a complex file is typically a couple of percent of the total, it&#8217;s worth keeping. Software passes; but data lives forever, so be kind to it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>svgo is, on the face of it, pretty neat: it takes those huge vector graphic files and squozes them down to something more acceptable. Unfortunately, though, the authors have seen too many files with junk machine-generated &lt;metadata&gt; sections, and decided that it&#8217;s all worthless. Metadata isn&#8217;t junk; it&#8217;s provenance. Your RDF? Gone. Your diligently researched [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[2795,1741,1855,1287],"class_list":["post-12323","post","type-post","status-publish","format-standard","hentry","category-computers-suck","tag-github","tag-javascript","tag-svg","tag-xml"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-3cL","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/12323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=12323"}],"version-history":[{"count":2,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/12323\/revisions"}],"predecessor-version":[{"id":12325,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/12323\/revisions\/12325"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=12323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=12323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=12323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}