Ubuntu Suomen keskustelualueet
		Ubuntun käyttö => Ubuntu tietokoneissa => Aiheen aloitti: igor_2 - 01.06.08 - klo:09.38
		
			
			- 
				Yritän käyttää Olympuksen raw-formaattia (ORF) ja sen kääntäminen TIFFiksi tai jpg:ksi onnistuu oikein hyvin Gimpin utraw-lisämokkulalla. Ongelma on, että en saa exiftietoja siirtymään kokonaisuudessaan TIFFiksi, jossa muodossa haluaisin säästää kuvista käsitellyt versiot.
 
 ORF sinällään pitää sisällään kaiken tarvittavan tiedon ja konvertoinnin jälkeen tiedot siirtyvät automatik jpg:hen, mutta ei TIFFiin.
 
 Alla esimerkit kaikkien kolmen tiedostoformaatin exifeistä. Prosessi on ollut että kuvat ORF formaatissa kamerasta, utrawin kautta gimpiin jossa tallennus sekä jpg- että tiff formaattiin.
 
 Kysymys olisi nyt että onko joku painiskellut saman tyyppisen ongelman kanssa ja onko ratkaisua löytynyt. Mieluiten ratkaisu saisi olla jouheva, mutta hätätilassa laastarilappuratkaisukin käy päinsä.
 
 ORF formaatin exifit:
 ======== ./20080531_103122_orf.ORF
 ExifTool Version Number         : 7.00
 File Name                       : 20080531_103122_orf.ORF
 Directory                       : .
 File Size                       : 10 MB
 File Modification Date/Time     : 2008:05:31 10:31:22
 File Type                       : ORF
 MIME Type                       : image/x-raw
 Exif Byte Order                 : Little-endian (Intel)
 Image Width                     : 3720
 Image Height                    : 2800
 Bits Per Sample                 : 16
 Compression                     : Uncompressed
 Photometric Interpretation      : BlackIsZero
 Image Description               : OLYMPUS DIGITAL CAMERA
 Make                            : OLYMPUS IMAGING CORP.
 Camera Model Name               : E-410
 Strip Offsets                   : 655360
 Orientation                     : Horizontal (normal)
 Samples Per Pixel               : 1
 Rows Per Strip                  : 2800
 Strip Byte Counts               : 10044715
 X Resolution                    : 314
 Y Resolution                    : 314
 Planar Configuration            : Chunky
 Resolution Unit                 : inches
 Software                        : Version 1.2
 Modify Date                     : 2008:05:31 10:31:22
 Exposure Time                   : 1/640
 F Number                        : 5.6
 Exposure Program                : Aperture-priority AE
 ISO                             : 100
 Exif Version                    : 0221
 Date/Time Original              : 2008:05:31 10:31:22
 Create Date                     : 2008:05:31 10:31:22
 Exposure Compensation           : 0
 Max Aperture Value              : 2.8
 Light Source                    : Unknown (0)
 Flash                           : Auto, Did not fire
 Focal Length                    : 14.0mm
 Thumbnail Image                 : (Binary data 8378 bytes, use -b option to extract)
 Special Mode                    : Normal, Sequence: 0, Panorama: (none)
 Camera ID                       : OLYMPUS DIGITAL CAMERA
 Equipment Version               : 0100
 Camera Type 2                   : S0013
 Serial Number                   : D56509073
 Internal Serial Number          : 4038705030975001
 Focal Plane Diagonal            : 21.6 mm
 Body Firmware Version           : 1.200
 Lens Type                       : Olympus Zuiko Digital 14-54mm F2.8-3.5
 Lens Serial Number              : 050203430
 Lens Firmware Version           : 1.100
 Max Aperture At Min Focal       : 2.8
 Max Aperture At Max Focal       : 3.5
 Min Focal Length                : 14
 Max Focal Length                : 54
 Max Aperture At Current Focal   : 2.5
 Lens Properties                 : 0xc043
 Extender                        : None
 Extender Serial Number          :
 Extender Model                  :
 Extender Firmware Version       : 0
 Flash Type                      : None
 Flash Model                     : None
 Flash Firmware Version          : 0
 Flash Serial Number             :
 Camera Settings Version         : 0100
 Preview Image Valid             : Yes
 Preview Image Start             : 24576
 Preview Image Length            : 421927
 AE Lock                         : Off
 Metering Mode                   : Pattern+AF
 Macro Mode                      : Off
 Focus Mode                      : Single AF
 Focus Process                   : AF Used
 AF Search                       : Ready
 AF Areas                        : Center (121,121)-(133,133)
 Flash Mode                      : Off
 Flash Exposure Compensation     : 0
 White Balance 2                 : Auto
 White Balance Temperature       : Auto
 White Balance Bracket           : 0 0
 Custom Saturation               : 0 (min -5, max 5)
 Modified Saturation             : Off
 Contrast Setting                : 0 (min -5, max 5)
 Sharpness Setting               : -3 (min -5, max 5)
 Scene Mode                      : Standard
 Noise Reduction                 : Noise Reduction + Noise Filter (ISO Boost)
 Distortion Correction           : Off
 Shading Compensation            : Off
 Gradation                       : Normal
 Picture Mode                    : Natural
 Picture Mode Saturation         : 0 (min -2, max 2)
 Picture Mode Contrast           : 0 (min -2, max 2)
 Picture Mode Sharpness          : -2 (min -2, max 2)
 Picture Mode BW Filter          : n/a
 Picture Mode Tone               : n/a
 Noise Filter                    : Low
 Drive Mode                      : Single Shot
 Panorama Mode                   : Off
 Image Quality 2                 : RAW
 Manometer Reading               : 0 0
 Raw Dev Version                 : 0100
 Raw Dev Exposure Bias Value     : 0
 Raw Dev White Balance Value     : 0
 Raw Dev WB Fine Adjustment      : 0
 Raw Dev Gray Point              : 0 0 0
 Raw Dev Saturation Emphasis     : 0 0 0
 Raw Dev Memory Color Emphasis   : 0
 Raw Dev Contrast Value          : 0 0 0
 Raw Dev Sharpness Value         : 0 0 0
 Raw Dev Color Space             : sRGB
 Raw Dev Engine                  : High Speed
 Raw Dev Noise Reduction         : (none)
 Raw Dev Edit Status             : Original
 Raw Dev Settings                : (none)
 Image Processing Version        : 0111
 WB RB Levels                    : 484 360
 Color Matrix                    : 342 -68 -18 -28 342 -56 -6 -82 346
 Smoothing Thresholds            : 73 73 74 74
 Smoothing Threshold 2           : 256
 Valid Bits                      : 12 0
 Olympus Image Width 2           : 3648
 Olympus Image Height 2          : 2736
 Noise Reduction 2               : Off
 Distortion Correction 2         : Off
 Shading Compensation 2          : Off
 Focus Info Version              : 0100
 Zoom Step Count                 : 0
 Focus Step Count                : 0
 Focus Distance                  : inf
 AF Point                        : Center (3)
 External Flash                  : Off
 External Flash Bounce           : Bounce or Off
 External Flash Zoom             : 0
 Internal Flash                  : Off
 Manual Flash                    : Off
 Sensor Temperature              : 470
 Image Stabilization             : Off
 User Comment                    :
 Flashpix Version                : 0100
 Color Space                     : sRGB
 File Source                     : Digital Camera
 CFA Pattern                     : [Red,Green][Green,Blue]
 Custom Rendered                 : Normal
 Exposure Mode                   : Auto
 White Balance                   : Auto
 Digital Zoom Ratio              : 1
 Scene Capture Type              : Standard
 Gain Control                    : None
 Contrast                        : Normal
 Saturation                      : Normal
 Sharpness                       : Soft
 Aperture                        : 5.6
 Blue Balance                    : 1.40625
 Extender Status                 : Not attached
 Image Size                      : 3720x2800
 Preview Image                   : (Binary data 421927 bytes, use -b option to extract)
 Red Balance                     : 1.890625
 Scale Factor To 35mm Equivalent : 2.0
 Shutter Speed                   : 1/640
 Circle Of Confusion             : 0.015 mm
 Depth of Field                  : inf (2.33 m - inf)
 Focal Length                    : 14.0mm (35mm equivalent: 28.0mm)
 Hyperfocal Distance             : 2.33 m
 Light Value                     : 14.3
 
 jpg-formaatin exifit:
 ExifTool Version Number         : 7.00
 File Name                       : 20080531_103122_orf.jpg
 Directory                       : .
 File Size                       : 9 MB
 File Modification Date/Time     : 2008:06:01 09:17:13
 File Type                       : JPEG
 MIME Type                       : image/jpeg
 JFIF Version                    : 1.1
 Exif Byte Order                 : Little-endian (Intel)
 Image Description               : OLYMPUS DIGITAL CAMERA
 Make                            : OLYMPUS IMAGING CORP.
 Camera Model Name               : E-410
 Orientation                     : Horizontal (normal)
 X Resolution                    : 72
 Y Resolution                    : 72
 Resolution Unit                 : inches
 Software                        : GIMP 2.4.5
 Modify Date                     : 2008:06:01 09:16:42
 Exposure Time                   : 1/640
 F Number                        : 5.6
 Exposure Program                : Aperture-priority AE
 ISO                             : 100
 Exif Version                    : 0221
 Date/Time Original              : 2008:05:31 10:31:22
 Create Date                     : 2008:05:31 10:31:22
 Exposure Compensation           : 0
 Max Aperture Value              : 2.8
 Metering Mode                   : Multi-segment
 Light Source                    : Unknown (0)
 Flash                           : Auto, Did not fire
 Focal Length                    : 14.0mm
 User Comment                    :
 Flashpix Version                : 0100
 Color Space                     : sRGB
 File Source                     : Digital Camera
 CFA Pattern                     : [Red,Green][Green,Blue]
 Custom Rendered                 : Normal
 Exposure Mode                   : Auto
 White Balance                   : Auto
 Digital Zoom Ratio              : 1
 Scene Capture Type              : Standard
 Gain Control                    : None
 Contrast                        : Normal
 Saturation                      : Normal
 Sharpness                       : Soft
 Image Width                     : 3720
 Image Height                    : 2800
 Encoding Process                : Baseline DCT, Huffman coding
 Bits Per Sample                 : 8
 Color Components                : 3
 Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
 Aperture                        : 5.6
 Image Size                      : 3720x2800
 Shutter Speed                   : 1/640
 Focal Length                    : 14.0mm
 Light Value                     : 14.3
 
 tiff-formaatin exifit:
 ExifTool Version Number         : 7.00
 File Name                       : 20080531_103122_orf.tif
 Directory                       : .
 File Size                       : 30 MB
 File Modification Date/Time     : 2008:06:01 09:16:33
 File Type                       : TIFF
 MIME Type                       : image/tiff
 Exif Byte Order                 : Little-endian (Intel)
 Subfile Type                    : Full-resolution Image
 Image Width                     : 3720
 Image Height                    : 2800
 Bits Per Sample                 : 8 8 8
 Compression                     : Uncompressed
 Photometric Interpretation      : RGB
 Document Name                   : /home/igor/editoi/kamerasta/orf/20080531_103122_orf.tif
 Strip Offsets                   : (Binary data 373 bytes, use -b option to extract)
 Orientation                     : Horizontal (normal)
 Samples Per Pixel               : 3
 Rows Per Strip                  : 64
 Strip Byte Counts               : (Binary data 307 bytes, use -b option to extract)
 X Resolution                    : 72
 Y Resolution                    : 72
 Planar Configuration            : Chunky
 Resolution Unit                 : inches
 Image Size                      : 3720x2800
 
- 
				Mitenhän tämä toimisi?
 
 http://www.getdeb.net/app/Rawstudio
 
 ( http://rawstudio.org/ )
 
- 
				Mitenhän tämä toimisi?
 
 http://www.getdeb.net/app/Rawstudio
 
 ( http://rawstudio.org/ )
 
 
 
 Ikävä kyllä ei toimi. Itse asiassa se ei tallenna edes jpg:hen kun tuon lyhyen pätkän.
 
 Onkohan vika ORF:ssä vaiko ylipäätään tiffiksi tallennuksessa?
- 
				No niin, nyt se selvisi - se on tämä Gimpin paska joka ei osaa tallentaa exiftietoja tiffiin sen enempää kuin tuossa edellä lainasin.
 
 Joskus kyllä masentaa kun näissä linux-hommissa jää joku tämmösestä ihan triviaalista tökkimään. Pitää yrittää löytää kiertotie - jos joku tietää, niin neuvoja otetaan kiitollisuudella vastaan.
- 
				Kokeile bibbleä. Se on tosin maksullinen, mutta ylivoimainen näihin ilmaisiin vaihtoehtoihin. Lite version saa kohtuuhintaan.
 
 http://download.bibblelabs.com/
 
 Sieltä saa 30pv kokeiluversion.
- 
				Kokeile bibbleä. Se on tosin maksullinen, mutta ylivoimainen näihin ilmaisiin vaihtoehtoihin. Lite version saa kohtuuhintaan.
 
 http://download.bibblelabs.com/
 
 Sieltä saa 30pv kokeiluversion.
 
 
 Kiitos vinkistä, täytyykin tsekata!
 
 Tällä hetkellä ainakin mulle on epäselvää kumpi näistä kahdesta kumppanuksesta hylkii tif-formaatin exiftietoja - tai ilmeisesti molemmat, sekä Gimp että UFRaw.
 
 Gimpin osalta löysin mainintoja että se ei tukisi kuin minimaalisen määrän exifejä tiff-formaatin kohdalla. Joku oli myös tietävinään, että kyllä se tukee, mutta vain 8 bittisten kuvien osalta. Itse en saanut sitä tallentamaan kummallakaan. UFRaw käyttää Exiv2-kirjastoa ja sen osalta onglema olisikin tässä kirjastossa.
 
 Herra sitten tietää.
 
 Löytyy kuitenkin aika helppo kiertotie, eli ongelman voi kiertää exiftoolsilla komentamalla vaikkapa näin:
 
 exiftool -TagsFromFile 20080531_103122_orf.ORF -x Orientation 20080531_103122_orf.tiff
 
 Komento kopioi lähdetiedoston (20080531_103122_orf.ORF) exifit kohdetiedostoon (20080531_103122_orf.tiff).
 
 Jep jep.
 
 Täytyy tosiaan tsiikata tuota suosittelemaasi pakettia myös.
- 
				Jepu, exiftool on kuningas. Itse vääntelin aikanaan skriptin joka päivittää tiedostojen muokkauspäivämäärän noutaen sen EXIFistä. 
 
 r
- 
				Ja exiftool löytyy muuten ainakin hardyssä paketista libimage-exiftool-perl. HIENOA!
 
 r