[darktable-dev] Canon Powershot G9X II not supported

2017-12-07 Thread Matthias Bodenbinder
Hi,

since I did not get feedback on the user list I try it here.

I found that RAW from Canon Powershot G9X Mark II are not supported although 
the camera is listed as supported: 
http://www.darktable.org/resources/camera-support/

I am using DT 2.2.5 on Manjaro Linux. I am testing with this RAW file: 
https://raw.pixls.us/getfile.php/1575/nice/Canon%20-%20PowerShot%20G9%20X%20Mark%20II%20-%20RAW%20(3:2).CR2


7# darktable -d lighttable
RawSpeed:Unable to find camera in database: 'Canon' 'Canon PowerShot G9 X Mark 
II' ''
Please consider providing samples on , thanks!
[rawspeed] (Canon - PowerShot G9 X Mark II - RAW (3_2).CR2) Camera 'Canon' 
'Canon PowerShot G9 X Mark II', mode '' not supported, and not allowed to 
guess. Sorry.
[temperature] failed to read camera white balance information from `Canon - 
PowerShot G9 X Mark II - RAW (3_2).CR2'!
[temperature] failed to read camera white balance information from `Canon - 
PowerShot G9 X Mark II - RAW (3_2).CR2'!
allocation failed???
[colorin] `Canon Canon PowerShot G9 X Mark II' color matrix not found!
[colorin] `Canon Canon PowerShot G9 X Mark II' color matrix not found!
[colorin] `Canon Canon PowerShot G9 X Mark II' color matrix not found!
[temperature] failed to read camera white balance information from `Canon - 
PowerShot G9 X Mark II - RAW (3_2).CR2'!
[colorin] `Canon Canon PowerShot G9 X Mark II' color matrix not found!
[colorin] `Canon Canon PowerShot G9 X Mark II' color matrix not found!
[colorin] `Canon Canon PowerShot G9 X Mark II' color matrix not found!
[temperature] failed to read camera white balance information from `Canon - 
PowerShot G9 X Mark II - RAW (3_2).CR2'!
[colorin] `Canon Canon PowerShot G9 X Mark II' color matrix not found!
[colorin] `Canon Canon PowerShot G9 X Mark II' color matrix not found!
[colorin] `Canon Canon PowerShot G9 X Mark II' color matrix not found!

Matthias

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



Re: [darktable-dev] Wrong lens detected

2017-12-07 Thread Jean-Luc Coulon (f5ibh)
The but I've opened is now closed.
There is an explanation that you can see here:
http://dev.exiv2.org/issues/1328#change-6131

Basically, you should add the following in your .exiv2 file (or add it if
it already exists):

[canon]
197=Sigma 18-300mm f/3.5-6.3 DC Macro OS HS

I've tried this on the file with the SIgma 18-300:
 exiv2 -g Lens -pt /extra/exiv2-bug-1328/IMG_4575.CR2
Exif.CanonCs.LensTypeShort   1  Sigma 18-300mm
f/3.5-6.3 DC Macro OS HS
Exif.CanonCs.LensShort   3  18.0 - 300.0 mm
Exif.Canon.LensModel Ascii  74  18-300mm
Exif.Photo.LensSpecification Rational4  18/1 300/1 0/1
0/1
Exif.Photo.LensModel Ascii   9  18-300mm
Exif.Photo.LensSerialNumber  Ascii  11  00

And it works also in darktable.

Regards

Jean-Luc


2017-12-06 21:50 GMT+01:00 Marc Mascré :

> Ho nice !
>
> Thanks a lot for your help.
>
> If I can help please let me know.
>
> Marc
>
>
> Le 06/12/2017 à 11:12, Jean-Luc Coulon (f5ibh) a écrit :
>
> Hi,
>
> I've reported a bug for this problem to exiv2.
> See: http://dev.exiv2.org/issues/1328
>
> Regards
>
> Jean-Luc
>
> 2017-12-05 22:12 GMT+01:00 Jean-Luc Coulon (f5ibh) <
> jean.luc.cou...@gmail.com>:
>
>> Well, with exiftool, I get :
>> Lens Type   : Canon EF 75-300mm f/4-5.6 IS USM or
>> Sigma Lens
>> ...
>> ...
>> Lens Info   : 18-300mm f/0
>> Lens Model  : 18-300mm
>> Lens Serial Number  : 00
>> Lens: 18.0 - 300.0 mm
>> Lens ID : Sigma 18-300mm f/3.5-6.3 DC Macro OS HS
>> Lens: 18.0 - 300.0 mm (35 mm equivalent:
>> 28.0 - 466.3 mm)
>>
>> which seems to be correct...
>>
>> with exiv2 :
>> Exif.CanonCs.LensTypeShort   1  Canon EF
>> 75-300mm f/4-5.6 IS USM
>> Exif.CanonCs.LensShort   3  18.0 - 300.0
>> mm
>> Exif.Canon.LensModel Ascii  74  18-300mm
>> Exif.Photo.LensSpecification Rational4  18/1 300/1
>> 0/1 0/1
>> Exif.Photo.LensModel Ascii   9  18-300mm
>> Exif.Photo.LensSerialNumber  Ascii  11  00
>>
>> which is confusing because the Type is only on the Canon, not "or Sigma"
>> but other lens data are related to the Sigma.
>>
>> In darktable, it is wrong also because it is the  LensType which is
>> reported.
>>
>> My version of darktable is the latest git/trunk version
>>
>> Jean-Luc
>>
>>
>> 2017-12-05 20:40 GMT+01:00 Marc Mascré :
>>
>>> I don't know.
>>>
>>> To confirm that the problem come from the file and not my system, if you
>>> whant, you can download the file here :
>>> http://documents.mascre.fr/IMG_4575.CR2
>>> It could be take some time, it is self hosted.
>>>
>>>
>>>
>>> Le 05/12/2017 à 08:49, Jean-Luc Coulon (f5ibh) a écrit :
>>>
>>> It seems that some informations are from the right lens and other for
>>> the wrong one.
>>> Probably these informations ARE in the file.
>>> Maybe Sigma is trying to fool the Canon body to get some optical
>>> corrections from it?
>>>
>>> 2017-12-04 22:43 GMT+01:00 Marc Mascré :
>>>
 That is completely crazy

 # exiv2 -pt IMG_4575.CR2 | grep Lens
 Exif.CanonCs.LensTypeShort   1  Canon EF
 75-300mm f/4-5.6 IS USM
 Exif.CanonCs.LensShort   3  18.0 -
 300.0 mm
 Exif.Canon.LensModel Ascii  74  18-300mm
 Exif.Photo.LensSpecification Rational4  18/1 300/1
 0/1 0/1
 Exif.Photo.LensModel Ascii   9  18-300mm
 Exif.Photo.LensSerialNumber  Ascii  11  00

 exiftool version here is 10.45 I can try to update it but I became to
 ask myself if the wrong lens type is not write in the .CR2 by the camera.

 Marc



 Le 04/12/2017 à 16:36, Jean-Luc Coulon (f5ibh) a écrit :

 Can you try:

 exiv2 -pt IMG_.cr2 | grep Lens

 I got that on an other lens:

 Exif.CanonCs.LensTypeShort   1  Canon EF
 24-70mm f/4L IS USM
 Exif.CanonCs.LensShort   3  24.0 -
 70.0 mm
 Exif.Canon.LensModel Ascii  70  EF24-70mm
 f/4L IS USM

 Maybe you can try also to update your exiftool-version (I've 10.67 here)

 Jean-Luc

 2017-12-04 0:29 GMT+01:00 Marc Mascré :

> Hi
>
> It seem to be exactly this model for my lens. But when I use exiftool
> on a .CR2 file from my camera, it detect my lens as a canon EF 75-300 too.
> (see file attached)
>
> How can I find the right exit informations ?
>
> Marc
>
>
>
> Le 03/12/2017 à 18:24, Jean-Luc Co