{"id":"ddr-densho-2-42-mezzanine-7a4bc7cdd9","model":"file","collection_id":"ddr-densho-2","links":{"html":"https://ddr.densho.org/ddr-densho-2-42-mezzanine-7a4bc7cdd9/","json":"https://ddr.densho.org/api/0.2/ddr-densho-2-42-mezzanine-7a4bc7cdd9/","img":"https://downloads.densho.org/ddr-densho-2/ddr-densho-2-42-mezzanine-7a4bc7cdd9-a.jpg","thumb":"http://ddrmedia.local/media/ddr-densho-2/ddr-densho-2-42-mezzanine-7a4bc7cdd9-a.jpg","download":"https://downloads.densho.org/ddr-densho-2/ddr-densho-2-42-mezzanine-7a4bc7cdd9.tif","parent":"https://ddr.densho.org/api/0.2/ddr-densho-2-42-mezzanine/"},"parent_id":"ddr-densho-2-42","organization_id":"ddr-densho","signature_id":"","title":"Front","description":"","breadcrumbs":[{"id":"ddr-densho-2","model":"collection","idpart":"cid","label":"2","api_url":"https://ddr.densho.org/api/0.2/ddr-densho-2/","url":"https://ddr.densho.org/ddr-densho-2/"},{"id":"ddr-densho-2-42","model":"entity","idpart":"eid","label":"42","api_url":"https://ddr.densho.org/api/0.2/ddr-densho-2-42/","url":"https://ddr.densho.org/ddr-densho-2-42/"},{"id":"ddr-densho-2-42-mezzanine-7a4bc7cdd9","model":"file","idpart":"sha1","label":"7a4bc7cdd9","api_url":"https://ddr.densho.org/api/0.2/ddr-densho-2-42-mezzanine-7a4bc7cdd9/","url":"https://ddr.densho.org/ddr-densho-2-42-mezzanine-7a4bc7cdd9/"}],"role":"mezzanine","links_children":"ddr-densho-2-42-mezzanine-7a4bc7cdd9","backblaze":true,"_fields":["id","external","role","sha1","sha256","md5","size","basename_orig","access_rel","mimetype","public","rights","sort","label","digitize_person","tech_notes","xmp","external_urls","links"],"sha256":"f12d054ef06f109e3b90beeabac4f2f77765ea294493cfb3df87e174cc7d8db4","md5":"f2f9f0d9d8080ea8a9e0c5fee5de0d1e","size":2513260,"basename_orig":"ddr-densho-2-42-mezzanine-1914d20772-fixed.tif","access_rel":"files/ddr-densho-2-42/files/ddr-densho-2-42-mezzanine-7a4bc7cdd9-a.jpg","mimetype":"image/tiff","public":"1","rights":"pcc","sort":1,"digitize_person":"Unknown","tech_notes":"Original file found corrupted on June 17, 2024 by Micah Merryman. What follows are the steps take to correct the corruption on June 28, 2024\r\nran TiffUtil (built into MacOS in commandline)  \r\n$TiffUtil -verboseinfo \r\nSanity checked info returned by command – metadata meshes with what observed in photo\r\nUsed an editor (MS Paint) that could load corrupted file to identify what pixel the corruption started on\r\nUsing the rows per strip value (in the output of TiffUtil) \r\nDivide vertical pixel number by rows per strip to find the index of the corrupted strip (651 [pixel]/3 [strip value] = 217 – means it’s the 218 value/row in the strip offset dump given to us in the TiffUtil verboseinfo output)\r\nOnce we identified which TIFF strip was the corrupted one, I wrote this one-off python script to go through every bit in that strip and output a copy of the file with that bit flipped. Because MaC OS was treating an error in decompressing that one strip as cause for blacking out the entire thumbnail, I then went through the 21,000+ thumbnails, scanning for any that weren't black and checking them.\r\nThe script is not general-purpose and is hacked together to handle exactly this one file with the known values that we gathered through examining it with tiffutil but here it is for reference.","download_large":"ddr-densho-2-42-mezzanine-7a4bc7cdd9-a.jpg","download_fullsize":"ddr-densho-2-42-mezzanine-7a4bc7cdd9.tif"}