./fixdng nobugDNG/IMG_2559.DNG FixBadPixelOpcode BayerPattern is wrong. Has 03000000. Should be 02000000. CFA 01000201
!for f in lfs.dir('.') do if f:match('.DNG$') then fixfwm(f,'../fixed/'..f) end end
Per another comment, the preview is heavily tinted magenta.
I've attached a lua file which can be used to patch the affected DNG files. You could also use something like exiftool.
To fix a single file, use something like (adjusting paths as you want)Code: [Select]!fixfwm('IMG_1105.DNG','IMG_1105-fix.DNG')
The thumbnail created by CHDK is always terrible. It's a very low res, primitive conversion of the raw data to keep it fast.
My Lua is just about up to thinking that running this on files that are ok won't do anything (tests, yes, that's right) and to altering it if the S95 examples I also have need a different fix to their matrix.
Oh, sorry. I missed that you had a different camera with another problem...S95 does not have the same forward matrix problem S100 did, in fact it doesn't define ForwardMatrix at all.
To fix all the files in the current directory, outputting to a different directory, you could use something likeCode: [Select]!for f in lfs.dir('.') do if f:match('.DNG$') then fixfwm(f,'../fixed/'..f) end end
___> !require'extras/fixolds100fwm' < do if f:match('.DNG$') then fixfwm(f,'../fixed/'..f) end end patched IMG_1060.DNG -> ../fixed/IMG_1060.DNGpatched IMG_1082.DNG -> ../fixed/IMG_1082.DNGpatched IMG_1070.DNG -> ../fixed/IMG_1070.DNGpatched IMG_1067.DNG -> ../fixed/IMG_1067.DNGpatched IMG_1096.DNG -> ../fixed/IMG_1096.DNGpatched IMG_1071.DNG -> ../fixed/IMG_1071.DNGpatched IMG_1069.DNG -> ../fixed/IMG_1069.DNGpatched IMG_1094.DNG -> ../fixed/IMG_1094.DNGpatched IMG_1087.DNG -> ../fixed/IMG_1087.DNGpatched IMG_1093.DNG -> ../fixed/IMG_1093.DNGpatched IMG_1075.DNG -> ../fixed/IMG_1075.DNGpatched IMG_1084.DNG -> ../fixed/IMG_1084.DNGERROR: call failed:/home/me/Documents/CHDK/chdkptp-r921/lua/dng.lua:798: size larger than datastack traceback: /home/me/Documents/CHDK/chdkptp-r921/lua/dng.lua:798: in function 'set_data' /home/me/Documents/CHDK/chdkptp-r921/lua/dng.lua:880: in function 'load' ...Documents/CHDK/chdkptp-r921/lua/extras/fixolds100fwm.lua:7: in function 'fixfwm' [string "for f in lfs.dir('.') do if f:match('.DNG$') ..."]:1: in main chunk [C]: in function 'xpcall' /home/me/Documents/CHDK/chdkptp-r921/lua/cli.lua:748: in function </home/me/Documents/CHDK/chdkptp-r921/lua/cli.lua:739> (...tail calls...) [C]: in function 'xpcall' /home/me/Documents/CHDK/chdkptp-r921/lua/cli.lua:285: in function 'execute' /home/me/Documents/CHDK/chdkptp-r921/lua/cli.lua:400: in function </home/me/Documents/CHDK/chdkptp-r921/lua/cli.lua:391> (...tail calls...) /home/me/Documents/CHDK/chdkptp-r921/lua/main.lua:301: in main chunk [C]: in function 'require' [string "require('main')"]:1: in main chunk___> quit
Would you like to have a look to see if they are curable?
The problematic S95 ones are in CRW format from Dec 2012 and before.
but having worked out which two it was via moving files in and out of the directory, it should have been obvious: they were smaller than they should have been
I don't have the JPEGs on this PC, although they may still be on a memory card somewhere.Here's one from the garden of the president of Italy. I'm unlikely to be able to go around that again https://www.dropbox.com/s/epxtgo3kk41jap6/IMG_1858.DNG
Started by mikerussell
RAW Shooting and Processing
Started by GrAnd
General Help and Assistance on using CHDK stable releases
Started by filou20
RAW Shooting and Processing
Started by Lebeau
General Discussion and Assistance
Started by genosmm
Creative Uses of CHDK