{"id":283,"date":"2010-01-16T19:40:00","date_gmt":"2010-01-17T02:40:00","guid":{"rendered":"http:\/\/inkofpark.wordpress.com\/2010\/01\/16\/old-family-pictures\/"},"modified":"2024-09-01T20:33:06","modified_gmt":"2024-09-02T02:33:06","slug":"old-family-pictures","status":"publish","type":"post","link":"https:\/\/www.inkofpark.com\/?p=283","title":{"rendered":"Old Family Pictures"},"content":{"rendered":"<p>For Christmas I received a box of slides that had belonged to my grandfather. The slides were 35 mm taken between 1955 and 1961, in a mixture of black and white and color. I do not own a slide projector, and some of the film was starting to deteriorate, by yellowing or showing blotches where the emulsion had retreated. It was apparent that these slides would be much more enjoyable converted to digital, and so I scanned them. This entry is the story of that scanning, for the technical voyeur and for my own notes.<\/p>\n<p><a href=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/box_open.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"box_open\" alt=\"box_open\" src=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/box_open_thumb.jpg\" width=\"644\" height=\"474\" border=\"0\" \/><\/a><\/p>\n<p>The first step was to determine the resolution at which to scan the slides, and possibly a lower resolution for the final scan. Usually when I scan photographs I try to scan at about the resolution of the original image&#8211;usually about the scale of the &#8220;graininess&#8221; in the image. If the graininess is smaller than the blurriness in the picture I would scan to fully sample the blurriness, but no finer.<\/p>\n<p>There are some resolution choices to consider that do not require experimentation. Velvia 50, which has a reputation as an excellent film, <a href=\"http:\/\/www.fujifilm.com\/products\/professional_films\/pdf\/velvia_50_datasheet.pdf\">indicates<\/a> resolution typically coarser than 150 lines\/mm (3,810 lines\/inch). 150 lines\/mm corresponds to an equivalent of about a 20 megapixel camera. A recent era camera like the Nikon D300 has a 12.3 megapixel sensor, which corresponds to a resolution of 119 lines\/mm (3,030 lines\/inch), after adjusting to make it 35 mm equivalent.<\/p>\n<p>The following picture shows a portion of a color slide scanned at my scanner\u2019s maximum resolution,12,800 samples per inch, followed by a resampled version of the same image at 2,133 dpi (1\/6), followed by too coarse a scan at 1,067 dpi (1\/12). Notice that the correct resolution is not far from a 6 megapixel camera, about the same as my Nikon D40.<a href=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/colwideframe.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"colwideframe\" alt=\"colwideframe\" src=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/colwideframe_thumb.png\" width=\"804\" height=\"351\" border=\"0\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/col_multires.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"col_multires\" alt=\"col_multires\" src=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/col_multires_thumb.png\" width=\"917\" height=\"304\" border=\"0\" \/><\/a><\/p>\n<p>The following picture follows the pattern of the color slide, but is of a black and white slide. The resolutions are the same as with the color slide.\u00a0 For the small parts I have radically stretched the contrast.<\/p>\n<p><a href=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/bwwideframe.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"bwwideframe\" alt=\"bwwideframe\" src=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/bwwideframe_thumb.png\" width=\"804\" height=\"243\" border=\"0\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/bw_multires.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"bw_multires\" alt=\"bw_multires\" src=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/bw_multires_thumb.png\" width=\"916\" height=\"304\" border=\"0\" \/><\/a><\/p>\n<h4>Bit Depth<\/h4>\n<p>I scanned at 16 bit\/channel (48 bit color) for most slides. The reason to do this is that the slides require some significant color processing. Most of the slides are severely overexposed, and typically badly yellowed. In truth, if I were to simply fix the exposure issues and deal with the yellowing it might be OK to scan with 8 bit\/channel. However, it is not clear that this processing is the last these slides will see. While the final output of the process stream will be a JPEG (which is limited to 8 bit\/channel) I would like that JPEG to be fully utilized so that future editing does not lead to posterization or banding.<\/p>\n<p>It may be helpful to understand posterization, also called banding. The following picture shows an image with 8 bits per channel, or 16 million colors, then 256 colors, and then 16 colors. Obviously the 16 color version is totally unacceptable. The 256 color version is visibly worse than the 16 million color version, look especially at the reddish object in the lower right.<\/p>\n<p><a href=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/toofewcolors.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"tooFewColors\" alt=\"tooFewColors\" src=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/toofewcolors_thumb.png\" width=\"772\" height=\"351\" border=\"0\" \/><\/a><\/p>\n<p>The following diagram shows the image and histograms at two stages of processing, one starting with a 16 bit\/channel image, and one starting with the same image at 8 bit\/channel. Notice how the histogram in the final section of the 8 bit\/channel image has deep valleys between the peaks\u2014effectively that histogram is showing banding. Because the banding is nearly invisible in the 8 bit\/channel image I think I could reasonably scan at 8 bit\/channel; however, it would not take much more processing to produce visible posterization in the image scanned at 8 bit\/channel.\u00a0 The only two operations performed on this scene are contrast enhancement using a \u201ccurves\u201d tool and color correction using the \u201ccolor balance tool\u201d.<\/p>\n<p><a href=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/color_stretch.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"color_stretch\" alt=\"color_stretch\" src=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/color_stretch_thumb.png\" width=\"515\" height=\"393\" border=\"0\" \/><\/a><\/p>\n<h4>Corrections<\/h4>\n<p>The slides include a variety of flaws. Most of them are underexposed. Most of them have also yellowed with age. There are places on some slides where the emulsion has what appear to be crystals growing, and others where the emulsion has retreated from small sections.\u00a0 The following picture shows dark spots in some areas which are the caused by this crystalline looking deposit.<\/p>\n<p><a href=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/crystals.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"crystals\" alt=\"crystals\" src=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/crystals_thumb.png\" width=\"704\" height=\"242\" border=\"0\" \/><\/a><\/p>\n<p>The following slide has clear parts, where the emulsions appear to have retreated.\u00a0 On most slides this is only near the edge and the best solution is cropping.\u00a0 However, on some slides it affects a subject\u2019s face and must be hand painted.<\/p>\n<p><a href=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/emulsion_retreat.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"emulsion_retreat\" alt=\"emulsion_retreat\" src=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/emulsion_retreat_thumb.png\" width=\"604\" height=\"444\" border=\"0\" \/><\/a><\/p>\n<p>Color correction and contrast enhancement was performed with the \u201clevels\u201d or \u201ccurves\u201d controls and the \u201ccolor balance\u201d tools. The results of those operations are shown on the following image.\u00a0 The left-most frame is the original scan, which looks like a badly overexposed black and white picture.\u00a0 The middle image has somewhat better exposure, but looks like a sepia toned image.\u00a0 The rightmost picture is color corrected, and reveals that photograph was not actually black and white, but a color photo.\u00a0 Note that this picture isn\u2019t really worth saving due to the motion blur and subject matter, but it is revealing of the impact of basic editing.<\/p>\n<p><a href=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/color_levels_2.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"color_levels_2\" alt=\"color_levels_2\" src=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/color_levels_2_thumb.png\" width=\"644\" height=\"205\" border=\"0\" \/><\/a><\/p>\n<p>In addition, the process of digitizing the image introduces dust motes and fibers, some of these dust particles are clearly visible in the frames above.\u00a0 To control the motes and fibers I brushed each slide on both sides, brushed the light source, and cleaned the scanner bed between each scan.<\/p>\n<p><a href=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/scanner_bed.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"scanner_bed\" alt=\"scanner_bed\" src=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/scanner_bed_thumb.png\" width=\"644\" height=\"266\" border=\"0\" \/><\/a><\/p>\n<p>Most mote correction was accomplished with the clone brush. This worked for any region where the pattern was consistent and broad, such as the sky, or on gravel. However, across people\u2019s faces the clone brush did not produce very good results.<\/p>\n<p>The fibers often crossed faces or fingers, or other hard-to-clone regions. The brush seemed powerless to remove the fibers too, though it was efficient at moving them. The dirtiest slides were scanned twice, with brushing in between. Then the slides were overlaid, masked, and the top slide\u2019s dirty parts erased to reveal the clean slide underneath.<\/p>\n<p>While the method is effective, it is also a pain. In addition to doubling the scanner time, it increased the processing substantially. The slides had to be registered very accurately for the method to work. This required careful positioning, and rotation. Both operations were agonizing due to my computer speed. For color slides it was nearly intolerable, as my software crashed when I tried to use more than one color 16 bit\/channel layer.<\/p>\n<p>For reference, to register two images you take the two scans and make them layers in a single image, then set the \u201cblend mode\u201d to \u201cdifference\u201d.\u00a0 Perfect registration will reveal a black screen.\u00a0 The figure below shows the full image on the right, and the difference image on the left.\u00a0 The white outlines tell that I don\u2019t have the image exactly registered, perhaps the rotation is a little wrong.<a href=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/registration.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"registration\" alt=\"registration\" src=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/registration_thumb.png\" width=\"804\" height=\"234\" border=\"0\" \/><\/a><\/p>\n<p>The layers that comprise a finished product include the two \u201crasters\u201d and the \u201cmask\u201d, as shown in the layers dialog below.<\/p>\n<p><a href=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/layers_palette.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"layers_palette\" alt=\"layers_palette\" src=\"http:\/\/www.inkofpark.com\/wp-content\/uploads\/2010\/01\/layers_palette_thumb.png\" width=\"266\" height=\"312\" border=\"0\" \/><\/a><\/p>\n<p>Except for some scripting to automate the resizing, that is all the processing I did.\u00a0 May my example be of service.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For Christmas I received a box of slides that had belonged to my grandfather. The slides were 35 mm taken between 1955 and 1961, in a mixture of black and white and color. I do not own a slide projector, and some of the film was starting to deteriorate, by yellowing or showing blotches where [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[14,42,50],"class_list":["post-283","post","type-post","status-publish","format-standard","hentry","category-photography","tag-archive","tag-photography","tag-technology"],"_links":{"self":[{"href":"https:\/\/www.inkofpark.com\/index.php?rest_route=\/wp\/v2\/posts\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inkofpark.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inkofpark.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inkofpark.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inkofpark.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=283"}],"version-history":[{"count":1,"href":"https:\/\/www.inkofpark.com\/index.php?rest_route=\/wp\/v2\/posts\/283\/revisions"}],"predecessor-version":[{"id":1301,"href":"https:\/\/www.inkofpark.com\/index.php?rest_route=\/wp\/v2\/posts\/283\/revisions\/1301"}],"wp:attachment":[{"href":"https:\/\/www.inkofpark.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inkofpark.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inkofpark.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}