{"id":657,"date":"2007-11-06T05:24:13","date_gmt":"2007-11-06T10:24:13","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/archives\/2007\/11\/06\/raw-management-and-conversion-in-linux"},"modified":"2007-11-06T05:24:21","modified_gmt":"2007-11-06T10:24:21","slug":"raw-management-and-conversion-in-linux","status":"publish","type":"post","link":"https:\/\/www.bytebot.net\/blog\/archives\/2007\/11\/06\/raw-management-and-conversion-in-linux","title":{"rendered":"RAW Management and Conversion in Linux"},"content":{"rendered":"<p>Today, I was playing around with Linux, and RAW management. Not wanting to carry a laptop just for photo editing (i.e. I plan on travel <i>without<\/i> my MacBook Pro, and beautiful Lightroom, Aperture, iView Media Pro [okay, Microsoft Expression Media now], and Photoshop CS2), I figured I should make Linux up to scratch.<\/p>\n<p>My favourite photo browser, is <a href=\"http:\/\/gqview.sourceforge.net\/\">GQview<\/a>. Its not standard software any longer, but its pretty old, and it works fairly well. It however, doesn&#8217;t support RAW. Today I discovered f-spot (ok, I discovered it ages ago, but I didn&#8217;t like its iPhoto-ness, where it wants to import stuff for you). Never fear, that&#8217;s what<\/p>\n<p>&nbsp;&nbsp;&nbsp; <tt>f-spot --view &lt;path&gt;<\/tt><\/p>\n<p>is for. Shortcut wise, its a little different, so I just use the up\/down arrow keys to browse.<\/p>\n<p>Now to convert the RAW files to JPGs, with preservation of EXIF data. I played around with the commands manually after reading the man page for <tt>dcraw<\/tt>, and figured there must be a better way. So I hopped on over to Yahoo!, did a little search, and came up with Jamie Zawinski&#8217;s <a href=\"http:\/\/www.jwz.org\/hacks\/mvpix\">mvpix<\/a>. After changing the script a tad bit to suit my environment, I have images! RAW, JPEG, and copies of the JPEGs in an EDIT folder. <tt>mvpix<\/tt> also works on OS X.<\/p>\n<p>The options being passed to <tt>dcraw<\/tt> seem to be simple: <tt>-w<\/tt> for using camera supplied white balance, <tt>-t 0<\/tt> for no tilting, and <tt>-c<\/tt> for writing decoded images to stdout. Its passed to <tt>cjpeg<\/tt>, and run at 95% quality. However, the images seem to be a tad different, and I have no idea why.<\/p>\n<div align=\"center\"><a href=\"https:\/\/i0.wp.com\/www.bytebot.net\/shots\/incamera-dcraw-jpg-diff.png\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.bytebot.net\/shots\/incamera-dcraw-jpg-diff_s.png\" \/><\/a><br \/><i>On left, is when the camera was shooting in RAW+JPEG, and on right is the JPEG generated from the RAW file (<a href=\"http:\/\/www.bytebot.net\/shots\/incamera-dcraw-jpg-diff.png\">click for larger image<\/a>). These are 100% zooms.<\/i><\/div>\n<p>The colour differences befuddles me. Why does the camera come out with &#8220;brighter&#8221; RAW, and <tt>dcraw<\/tt> come up with paler tones?<\/p>\n<div align=\"center\"><a href=\"https:\/\/i0.wp.com\/www.bytebot.net\/shots\/incamera-ufrawraw-dcrawjpg-differences.png\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.bytebot.net\/shots\/incamera-ufrawraw-dcrawjpg-differences_s.png\" \/><\/a><br \/><i>On left, is what the in-camera JPEG gives, when you&#8217;re shooting in RAW+JPEG, in the middle is what UFRaw sees from the RAW file, and on the right is what the converted JPEG looks like, after being parsed through dcraw+cjpeg (<a href=\"http:\/\/www.bytebot.net\/shots\/incamera-ufrawraw-dcrawjpg-differences.png\">click for larger image<\/a>).<\/i><\/div>\n<p>What gives? Are there better options in <tt>dcraw<\/tt> to give me an as-close-to-in-camera JPEG experience? Are the converted images better\/more true coloured? I&#8217;m not sure which to pick, and I&#8217;m not sure what&#8217;s the <i>correct<\/i> setting, to be honest. <\/p>\n<p>Now about the photos. Apologies to the girl pictured here, all I know is that she&#8217;s probably a student at the Caulfield Campus of Monash University (so no, I don&#8217;t know her name). She was randomly picked for some quick studio photos, which was really just a bunch of us playing with a few studio strobes, and having the power of wireless triggers. These photos all rolled off an EOS 350D digital back, with a 50mm\/1.4 lens attached to it, shot at f\/1.6, at 1\/25s. Sure, this should have really been made at f8, but there was no time to coax the girl.<\/p>\n<p>Technorati Tags: <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/linux\" rel=\"tag\">linux<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/raw\" rel=\"tag\">raw<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/cr2\" rel=\"tag\">cr2<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/gqview\" rel=\"tag\">gqview<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/f-spot\" rel=\"tag\">f-spot<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/jpg\" rel=\"tag\">jpg<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/dcraw\" rel=\"tag\">dcraw<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/mvpix\" rel=\"tag\">mvpix<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/cjpeg\" rel=\"tag\">cjpeg<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/colour%20correction\" rel=\"tag\">colour correction<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, I was playing around with Linux, and RAW management. Not wanting to carry a laptop just for photo editing (i.e. I plan on travel without my MacBook Pro, and beautiful Lightroom, Aperture, iView Media Pro [okay, Microsoft Expression Media now], and Photoshop CS2), I figured I should make Linux up to scratch. My favourite [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-657","post","type-post","status-publish","format-standard","hentry","category-general"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p4vJD-aB","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"amp_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=657"}],"version-history":[{"count":0,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/657\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}