{"id":346,"date":"2010-05-18T09:03:59","date_gmt":"2010-05-18T09:03:59","guid":{"rendered":"http:\/\/esferas.org\/msqlu\/2010\/05\/18\/arreglando-imagenes-png\/"},"modified":"2010-05-18T09:03:59","modified_gmt":"2010-05-18T09:03:59","slug":"arreglando-imagenes-png","status":"publish","type":"post","link":"https:\/\/esferas.org\/msqlu\/2010\/05\/18\/arreglando-imagenes-png\/","title":{"rendered":"Arreglando im\u00e1genes PNG"},"content":{"rendered":"<p>A\u00fan no s\u00e9 qu\u00e9 provoca que las im\u00e1genes PNG que crea <a href=\"\/dotclear\/index.php?post\/2010\/05\/18\/feed2imap\">SnapShot est\u00e9n corruptas<\/a>, pero he descubierto c\u00f3mo arreglarlo.<\/p>\n<p><!--more--><\/p>\n<p>Buscando el tipo de error me he encontrado un registro en la p\u00e1gina oficial de las librer\u00edas PNG donde <a href=\"http:\/\/www.libpng.org\/pub\/png\/libpng.html\">cuentan<\/a> que es posible que versiones antiguas de la librer\u00eda creen esta condici\u00f3n.<\/p>\n<p>Bueno, el caso es que he instalado el paquete <a href=\"http:\/\/pmt.sourceforge.net\/pngcrush\/\">pngcrush<\/a> porque en la rama estable de Debian no est\u00e1 lo bastante actualizado <a href=\"http:\/\/www.libpng.org\/pub\/png\/apps\/pngcheck.html\">pngcheck<\/a> y no incluye la utilidad de reparaci\u00f3n directa. Se lo he pasado al pantallazo recibido por correo para arreglarlo:<\/p>\n<pre><ol><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">$ pngcrush -fix  <span style=\"color: #000000\">100518102247<\/span>.png arreglado.png<\/div><\/li><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">   Recompressing <span style=\"color: #000000\">100518102247<\/span>.png<\/div><\/li><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">   Total length of data found <span style=\"color: #000000;font-weight: bold\">in<\/span> IDAT chunks    =    <span style=\"color: #000000\">53806<\/span><\/div><\/li><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">unknown chunk handling <span style=\"color: #000000;font-weight: bold\">done<\/span>.<\/div><\/li><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">   IDAT length with method   <span style=\"color: #000000\">1<\/span> <span style=\"color: #7a0874;font-weight: bold\">&#040;<\/span>fm <span style=\"color: #000000\">0<\/span> zl <span style=\"color: #000000\">4<\/span> zs <span style=\"color: #000000\">0<\/span><span style=\"color: #7a0874;font-weight: bold\">&#041;<\/span> =    <span style=\"color: #000000\">49637<\/span><\/div><\/li><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">   IDAT length with method   <span style=\"color: #000000\">2<\/span> <span style=\"color: #7a0874;font-weight: bold\">&#040;<\/span>fm <span style=\"color: #000000\">1<\/span> zl <span style=\"color: #000000\">4<\/span> zs <span style=\"color: #000000\">0<\/span><span style=\"color: #7a0874;font-weight: bold\">&#041;<\/span> =    <span style=\"color: #000000\">53076<\/span><\/div><\/li><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">   IDAT length with method   <span style=\"color: #000000\">3<\/span> <span style=\"color: #7a0874;font-weight: bold\">&#040;<\/span>fm <span style=\"color: #000000\">5<\/span> zl <span style=\"color: #000000\">4<\/span> zs <span style=\"color: #000000\">1<\/span><span style=\"color: #7a0874;font-weight: bold\">&#041;<\/span> =    <span style=\"color: #000000\">53147<\/span><\/div><\/li><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">   IDAT length with method   <span style=\"color: #000000\">4<\/span> <span style=\"color: #7a0874;font-weight: bold\">&#040;<\/span>fm <span style=\"color: #000000\">0<\/span> zl <span style=\"color: #000000\">9<\/span> zs <span style=\"color: #000000\">1<\/span><span style=\"color: #7a0874;font-weight: bold\">&#041;<\/span> =    <span style=\"color: #000000\">45422<\/span><\/div><\/li><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">   IDAT length with method   <span style=\"color: #000000\">7<\/span> <span style=\"color: #7a0874;font-weight: bold\">&#040;<\/span>fm <span style=\"color: #000000\">0<\/span> zl <span style=\"color: #000000\">9<\/span> zs <span style=\"color: #000000\">0<\/span><span style=\"color: #7a0874;font-weight: bold\">&#041;<\/span> =    <span style=\"color: #000000\">42911<\/span><\/div><\/li><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">   Best pngcrush method = <span style=\"color: #000000\">7<\/span> <span style=\"color: #7a0874;font-weight: bold\">&#040;<\/span>fm <span style=\"color: #000000\">0<\/span> zl <span style=\"color: #000000\">9<\/span> zs <span style=\"color: #000000\">0<\/span><span style=\"color: #7a0874;font-weight: bold\">&#041;<\/span> <span style=\"color: #000000;font-weight: bold\">for<\/span> arreglado.png<\/div><\/li><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">     <span style=\"color: #7a0874;font-weight: bold\">&#040;<\/span><span style=\"color: #000000\">20.25<\/span><span style=\"color: #000000;font-weight: bold\">%<\/span> IDAT reduction<span style=\"color: #7a0874;font-weight: bold\">&#041;<\/span><\/div><\/li><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">     <span style=\"color: #7a0874;font-weight: bold\">&#040;<\/span><span style=\"color: #000000\">20.23<\/span><span style=\"color: #000000;font-weight: bold\">%<\/span> filesize reduction<span style=\"color: #7a0874;font-weight: bold\">&#041;<\/span><\/div><\/li><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">&nbsp;<\/div><\/li><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">   CPU <span style=\"color: #000000;font-weight: bold\">time<\/span> used = <span style=\"color: #000000\">0.430<\/span> seconds <span style=\"color: #7a0874;font-weight: bold\">&#040;<\/span>decoding <span style=\"color: #000000\">0.010<\/span>,<\/div><\/li><li style=\"font-family: 'Courier New', Courier, monospace;color: black;font-weight: normal;font-style: normal\"><div style=\"font-family: 'Courier New', Courier, monospace;font-weight: normal\">          encoding <span style=\"color: #000000\">0.400<\/span>, other <span style=\"color: #000000\">0.020<\/span> seconds<span style=\"color: #7a0874;font-weight: bold\">&#041;<\/span><\/div><\/li><\/ol><\/pre>\n<p>&#8230; y todo bien y todos felices.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A\u00fan no s\u00e9 qu\u00e9 provoca que las im\u00e1genes PNG que crea SnapShot est\u00e9n corruptas, pero he descubierto c\u00f3mo arreglarlo.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","webmentions_disabled_pings":false,"webmentions_disabled":false,"footnotes":""},"categories":[2],"tags":[268],"class_list":["post-346","post","type-post","status-publish","format-standard","hentry","category-software","tag-png"],"_links":{"self":[{"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/posts\/346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/comments?post=346"}],"version-history":[{"count":0,"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/posts\/346\/revisions"}],"wp:attachment":[{"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/media?parent=346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/categories?post=346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/tags?post=346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}