-- based on Dave Coffin's work and ImageMagick dcraw delegate
apt-get install libjasper-dev libjpeg8-dev liblcms2-dev gettext
chmod +x install
./install
In /etc/ImageMagick/delegates.xml, replace
<delegate decode="dng:decode" command=""ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i""/>
with
<delegate decode="dng:decode" stealth="True" command="/usr/local/bin/dcraw -6 -W -O "%u.ppm" "%i""/>
GPL - 3