tomkyle / negatives-linear-tiff

Converts RAW/NEF/CR2 files into linear TIFF files, using GNU Parallel for maximum speed. Other features: B/W grayscaling, TIF resizing and ZIP compression.
https://tomkyle.github.io/negatives-linear-tiff
Other
7 stars 1 forks source link

"Warning: Hmmm. Mogrifying failed somehow on" file #19

Open lsalgueiro opened 11 months ago

lsalgueiro commented 11 months ago

Dearest developer,

in case you're still maintaining this awesome tool, I'd like to report an error.

$ linear-tiff --debug --desaturate -o result -v P1610369.RW2

/opt/homebrew/bin/linear-tiff: line 567: [: : integer expression expected
P1610369.RW2 is a Panasonic DMC-GH4 image.

Filename: P1610369.RW2
Timestamp: Thu Sep  7 20:43:34 2023
Camera: Panasonic DMC-GH4 ID: 0x0
Normalized Make/Model: =Panasonic/DMC-GH4= CamMaker ID: 47

EXIF:
    MinFocal: 0.0 mm
    MaxFocal: 0.0 mm
    MaxAp @MinFocal: f/0.0
    MaxAp @MaxFocal: f/0.0
    CurFocal: 33.0 mm
    MaxAperture @CurFocal: f/5.6
    FocalLengthIn35mmFormat: 66 mm
    LensMake:
    Lens:

Makernotes:
    DriveMode: -1
    FocusMode: -1
    MeteringMode: -1
    AFPoint: -1
    ExposureMode: -1
    ExposureProgram: -1
    ImageStabilization: -1
    Lens:
    LensFormat: 0,  LensMount: 10,  FocalType: 0, Undefined
    LensFeatures_pre:
    LensFeatures_suf:
    MinFocal: 0.0 mm
    MaxFocal: 0.0 mm
    MaxAp @MinFocal: f/0.0
    MaxAp @MaxFocal: f/0.0
    MinAp @MinFocal: f/0.0
    MinAp @MaxFocal: f/0.0
    MaxAp: f/0.0
    MinAp: f/0.0
    CurFocal: 0.0 mm
    CurAp: f/0.0
    MaxAp @CurFocal: f/0.0
    MinAp @CurFocal: f/0.0
    TeleconverterID: 0
    Teleconverter:
    AdapterID: 0
    Adapter:
    AttachmentID: 0
    Attachment:

ISO speed: 200
Shutter: 1/4.0
Aperture: f/16.0
Focal length: 33.0 mm
Flash exposure compensation: 0.00 EV
Embedded ICC profile: no
Number of raw images: 1
Thumb size:  1920 x 1440
Full size:   4816 x 3472
Raw inset, width x height: 4608 x 3456 left: 8 top: 8
Image size:  4624 x 3472
Output size: 4624 x 3472
Image flip: 0
Raw colors: 3
Filter pattern: BGGRBGGRBGGRBGGR
black: 143
Highlight linearity limits: 4079 4079 4079 4079
Makernotes WB data:               coeffs                  EVs
  As shot                   435 256 728 0    0.76  0.00  1.51  0.00
  Tungsten (Incandescent)    442  256  731  256    0.79  0.00  1.51  0.00
  Flash                      621  256  452  256    1.28  0.00  0.82  0.00
  Fine Weather               607  256  475  256    1.25  0.00  0.89  0.00
  Cloudy                     641  256  437  256    1.32  0.00  0.77  0.00
  Shade                      682  256  404  256    1.41  0.00  0.66  0.00
  Illuminant A               442  256  731  256    0.79  0.00  1.51  0.00
  D55                        582  256  480  256    1.18  0.00  0.91  0.00
  ISO Studio Tungsten        442  256  731  256    0.79  0.00  1.51  0.00
  Camera Auto               1743 1024 2915 1024    0.77  0.00  1.51  0.00

Camera2RGB matrix (mode: 1):
1.7620  -0.5566 -0.2055
-0.2834 1.7385  -0.4551
0.0192  -0.4958 1.4767

XYZ->CamRGB matrix:
0.7122  -0.2108 -0.0512
-0.3155 1.1201  0.2231
-0.0541 0.1423  0.5045

Derived D65 multipliers: 2.436786 0.940606 1.562026

Linear TIFF
dcraw_emu -w -t 0 -H 5 -q 3 -o 4 -4 -T P1610369.RW2 ✔
Meta tags
exiftool -overwrite_original -quiet -mwg:Description= -mwg:Creator= -Artist<mwg:Creator -Make<exif:Make -Model<exif:model -Software<exif:software ✔
Mangle output file /opt/homebrew/bin/linear-tiff: line 654: mogrify_shave_options_array[*]: unbound variable
/opt/homebrew/bin/linear-tiff: line 656: mogrify_shave_options_array[@]: unbound variable
Warning: Hmmm. Mogrifying failed somehow on P1610369.RW2.tiff

The file gets converted to .tiff, but every command seems to be ignored.

I hope I didn't misunderstand it, and it's not connected to #1…