
1 CommandCommand LineLine ToolsTools forfor PhotographersPhotographers AdamAdam JohnJohn TrickettTrickett www.iredale.net [email protected] PGP Key: 0xAF0DB8C8 Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. 2 PartsParts OfOf AA DigitalDigital CameraCamera • #ens • A$erture • %irror & $enta$rism if !#( • %ec"anica s"utter is !#( • Co our )*ayer ,ilter- un ess ,oveon sensor • Li."t sensor (CCD or C%O!0 • 1"oto-$rocessing so23are4 • Stora.e, e.g. SD card Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. 5 PartsParts OfOf AA DigitalDigital CameraCamera 1enta$rimisim r ro #ens A$erture ir !"utter !ensor % %emor+ Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. 4 CHDKCHDK • Canon cameras use most + the same processin. chips and firm3are (D67IC) • ,eatures are most + disabled in 'irm3are • CHD9 is o$en-source so23are that runs a on. side the Canon so23are turning features back on • :ou can save (A; ima.es from a £50 com$act camera> Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. = RAWRAW FormatFormat • Almost a l cameras process the ima.e from the sensor and out$ut a JPEG to the stora.e • %ost S#(s and high end com$acts can also save the raw ima.e sensor data be'ore processing • %ost + proprietar+ 'ormats eAcept Adobe designed DNG standard which is free and o$en (TIF, based0 • :ou technically need vendor su$$ ied so23are to read the (A; files Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. B !changeable!changeable ImageImage FileFile FormatFormat $$ %#F”%#F” DataData • De facto industr+ standard 'or addin. meta data to an ima.e 'ormat • ,oca en.th, s"utter s$eed, time and date, 71! co- ordinates etc etc • Sup$orted in TI,,, ?1@7, man+ (AW 'ormats, not su$$orted by PNG, 76F or ?1@7 2000 • Sup$orted by most cameras & so23are • @xtensib e %etadata 1 atform /C%P) $ossib y better but not used b+ man+ cameras Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. D GettingGetting ImagesImages offoff thethe CameraCamera 11 • Ese g1hoto • 6t knows "ow to read most cameras over a E!* cab e • !$eaks Picture Trans'er Protoco /1TP) and %edia Trans'er Protoco /%TP) • Can contro some camera over the E!* cab e • Various 7E6 $ro.rams use the .1"oto ibrary if they need to ta k to a camera, e.g. Di.iKam or gtkam Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. F GettingGetting ImagesImages offoff thethe CameraCamera 22 • Ese a card reader • %ost cameras use ' as" media devices, usua y SD • A !D cards eAcept the atest SDCC 3"ic" use eA,AT can be mounted and read b+ a modern Linux systems • Co$y or move the fi e using your fi e man.er • %any a$to$s "ave a card reader bui t in • 1otentia + 'aster t"an readin. t"e camera direct + Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. G ReadingReading ImagesImages • ?1EG 'ormat should be readable with just about any imagin. so23are you have • (A; ima.es will need specia handlingI • Ese camera vendors $ro$rietar+ soft3are on ;indows or %ac O!C on + • Ese 5rd $arty commercia so23are • Ese ,J#O!! so23are Don't buy an ex$ensive camera until you c"eck it's su$$orted Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. 10 RAWRAW ProcessingProcessing onon LinuxLinux • dcraw • Command ine tool, use'ul on itKs own, but a so used b+ other soft3are • E,(aw • !tanda one 7E6 or $ ug-in 'or 76%1 • (a3T"era$ee • Darktable • DigiKam Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. 11 dcra,dcra, • Extract JPEG thumbnail from RAW image • Extra RA; data and save as TIF, or P1% • (ead EXIF Data • Command line usa.e • Ca ed from other pro.rams • !mall and fast • !upports many cameras Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. 12 ExtractExtract JPEGJPEG FromFrom RAWRAW $ dcraw -e IMG_1.CR2 $ ls $ IMG_1.CR2 $ IMG_1.thumb.jpg Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. 15 #mageMagick#mageMagick • Dcraw ma+ extract the image into T6,,, PPM or ?1EG 'ormat – it depends what itKs there • Ima.e%agickKs mogrify command can convert loss ess + (i' possible) between formats on the CLI $ mogrify -format jpg IMG_1.thumb.ppm $ ls $ IMG_1.thumb.ppm $ IMG_1.thumb.jpg Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. 14 #mage::ExifTool#mage::ExifTool • @C6, processing tool 3ritten in Per • Cross plat'orm • (ead @C6F data • ;rite @C6F data • Co$y @C6F data from one ima.e to a second • !up$orts more t"an Hust @C6,, e.g. C%1 • Ese in your o3n 1er $ro.rams • Ese from C#6 as a sim$ e too Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. 1= CopyCopy EXIFEXIF datadata fromfrom RAWRAW toto JPE'JPE' $ exiftool -q -tagsFromFile IMG_1.CR2 IMG_1.jpg $ $ date=$( exiftool -DateTimeOriginal IMG1.jpg |\ awk -F ' : ' '{ print $2 }' | sed 's/[: ]//g' |\ awk '{print substr($1,1,12) "." substr($1,13)}' 2> /dev/null ) $ if [ ${date} ]; then $ touch -t ${date} IMG1.jpg $ fi Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. 1B A"ilit/A"ilit/ • Get images off camera without GUI • Extract JPEG from (A; if you don't have one • Co$+ EXIF from RA; to J1@7 • Extract the image creation time and date and set the 'ile dateJtime stamp according + • AddJchange metadata, e... Co$+right information Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. 1D DemoDemo Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. 1F LinksLinks • http://gphoto.sourceforge.net/ • http://www.cybercom.net/~dcoffin/dcraw/ • http://ufraw.sourceforge.net/ • http://www.imagemagick.org/ • https://metacpan.org/module/Image::ExifTool • http://chdk.wikia.com/wiki/CHDK Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. 1G ThankThank 0ou0ou AnyAny Questions?Questions? Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. 1 CommandCommand LineLine ToolsTools forfor PhotographersPhotographers Adam John Trickett www.iredale.net [email protected] PGP Key: 0xAF0DB8C8 Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. Hello! I normally sa/ that yo+ can download this talk from m/ ,eb site2 "+t I 3+st checked on m/ ,ay here and noticed that it isn't there – so # will be uploading it there soon1 I sho+ld also sa/2 #'ve gi6en this talk before and things ha6e changed a little since then, "+t m+ch of ,hat #4m staying still holds tr+e7 2 Parts Of A Digital Camera • #ens • A$erture • Mirror & $enta$rism i' !#( • Mec"anica shutter is !#( • Co our )*a+er ,i ter- un ess ,oveon sensor • Li.ht sensor /CCD or CMO!0 • Photo-$rocessin. so23are4 • !tora.e, e.g. !D card Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. I should first highlight the "its of a modern digital camera. 8ot all models ha6e all the "its "+t they all ha6e some optical element, some sensor and some kind of storage7 5 Parts Of A Digital Camera 1enta$rimisim r ro #ens A$erture ir !"utter !ensor % %emor+ Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. This is a diagram of ,hat # said2 some people like diagrams some don't7 Here /o+ can see the "its that make a 9LR di(erent from non- 9LRs7 4 CHDK • Canon cameras use most + t"e same $rocessing c"ips and firm3are (DIGIC0 • ,eatures are most + disabled in firm3are • CHDK is open-source so23are t"at runs a ong side t"e Canon so23are turning features back on • :ou can save RAW ima.es from a £=0 com$act camera> Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence. The Canon Hackers Development Kit is for Canon, "+t the same principle applies to other camera mar;+es and models. #46e got mostly Canon kits so it4s something #4ve looked at and +sed7 = RAW Format • A most a cameras process t"e ima.e from t"e sensor and output a J1@7 to t"e stora.e • %ost S#(s and hi." end com$acts can a so save t"e ra3 ima.e sensor data be'ore processing • %ost + proprietar+ 'ormats except Adobe desi.ned DN7 standard whic" is free and open (TIF, based) • :ou technically need vendor su$$ ied so23are to read t"e RAW fi es Version 1.0.2 © Adam Trickett, October-2014 Distributed under a creative commons Attribution-NonCommercia -!"areA ike icence.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages38 Page
-
File Size-