mobian, pinephone camera, and megapixels
#31
(04-29-2021, 04:08 AM)dukla2000 Wrote: <snip>

The other nugget for postprocess.sh is if you put a version in ~/.config/megapixels/ then that is used in preference to the default in /usr/share/megapixels/ . Which will survive any upgrades and can do stuff the way you prefer. So my version has 3 mods:
  1. the @calinb / v0.16 patch
  2. I have commented out the initial copy of the .dng file to /Pictures as I dont want to preserve any raw images
  3. I have added an exiftool line (and suggested it to Martijn) to set the DateTimeOriginal tag. (Because the package I use for my media library, fotoxx, can sort on that tag!)


Thanks for the new script options, dukla2000!



(04-29-2021, 07:09 AM)Zebulon Walton Wrote: <snip>

Tiff format as far as I know is not widely used for photos and seems kind of a waste, would it be feasible to convert directly from dng to jpg to save processing time?

<snip>

Just an FYI: According to https://en.wikipedia.org/wiki/Digital_Negative

"DNG is based on the TIFF/EP standard format, and mandates significant use of metadata."

Raw lossless formats are widely used for archives and image processing and, after installing Rawtherapee on my MX Linux (Debian-based) laptop, I can read .dng.  The Rawtherapee installation provided a compatible plugin so GIMP can read .dng too.

-Cal
  Reply
#32
(04-29-2021, 07:09 AM)Zebulon Walton Wrote: ... Now I'm admittedly not familiar with the image processing tools, but if I understand correctly the script uses tiff format as an intermediate step to get to jpg (dng-->tiff-->jpg). Tiff format as far as I know is not widely used for photos and seems kind of a waste, would it be feasible to convert directly from dng to jpg to save processing time?
...

Yes but ...!
Technically imagemagick could do a direct conversion .dng -> .jpg. The "but" is that dcraw is doing more than just a format conversion, it is using some magic options (chosen by Martijn) to try make the picture look better as per the comments in the postprocess script. dcraw cannot output .jpg though. But again the megapixels choice to use imagemagick to do the conversion to .jpg also allows the chance to get imagemagick to try sharpen things.

Or you could cut out most of the (megapixels) postprocessing and use a package like RawTherapee to process your images.

The fundamental limitation though is the inexpensive sensors chosen by Pine64 are pretty much point and click cheapos and so no amount of postprocessing can turn me into David Bailey! Then again, even with slightly expensive kit I struggle to get stuff in focus so having the PinePhone for quick snaps is fine by me.
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (5.13 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone BraveHeart now v1.2b 3/32Gb daily driver, dual boot via p-boot with Mobian/f2fs/Phosh on eMMC, Arch/ext4/Phosh on SDcard
  • PinePhone v1.2a 2G/16Gb that needs USB board replaced
  Reply
#33
dukla2000 Wrote:Yes but ...!
Technically imagemagick could do a direct conversion .dng -> .jpg. The "but" is that dcraw is doing more than just a format conversion, it is using some magic options (chosen by Martijn) to try make the picture look better as per the comments in the postprocess script. dcraw cannot output .jpg though. But again the megapixels choice to use imagemagick to do the conversion to .jpg also allows the chance to get imagemagick to try sharpen things.

Or you could cut out most of the (megapixels) postprocessing and use a package like RawTherapee to process your images.

The fundamental limitation though is the inexpensive sensors chosen by Pine64 are pretty much point and click cheapos and so no amount of postprocessing can turn me into David Bailey! Then again, even with slightly expensive kit I struggle to get stuff in focus so having the PinePhone for quick snaps is fine by me.

I saw that there was other processing going on to fix up the images. Still, for me the Pinephone camera would only be for occasional quick snaps, and quick processing would be more important to me than improving the image in post. (If I want quality photos I use a real camera. Smile)

Now that I have the local script in place I'll play around with it. Might even be best to just let it save the dng images and run my own batch conversion afterwards. The phone is running on the eMMC but my data directories are symlinked to a 256GB SD card so the large size of the images isn't that much of a problem.
  Reply
#34
(04-29-2021, 01:02 PM)dukla2000 Wrote: ...
Technically imagemagick could do a direct conversion .dng -> .jpg.
...

Actually just tried to play a bit more myself and seems this is complete codswallop! imagemagick delegates the raw processing to ufraw, which in turn subcontracts to dcraw! So using dcraw in the first place is very sensible by megapixels/Martijn Smile 

Yeah batch processing later would certainly keep the megapixels frontend looking more ready for action!
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (5.13 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone BraveHeart now v1.2b 3/32Gb daily driver, dual boot via p-boot with Mobian/f2fs/Phosh on eMMC, Arch/ext4/Phosh on SDcard
  • PinePhone v1.2a 2G/16Gb that needs USB board replaced
  Reply
#35
FYI, megapixels was finally upgraded to 0.16 (which includes the fix) in Mobian unstable on Thursday.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mobian repository status henrythemouse 3 268 07-28-2021, 09:34 PM
Last Post: henrythemouse
  Keyboard stopped working on disk encryption screen on Mobian after update cowsay 0 36 07-28-2021, 05:46 PM
Last Post: cowsay
  Wipe function on mobian? Wahtone 5 318 07-28-2021, 06:18 AM
Last Post: biketool
  Pure Maps GPS on Pinephone Mobian godzillest 0 73 07-26-2021, 11:54 PM
Last Post: godzillest
  What do you use for voice chat on Mobian? ragreenburg 4 177 07-26-2021, 08:36 AM
Last Post: ragreenburg
  Axolotl on Pinephone CarmeloLabadie 1 72 07-26-2021, 12:56 AM
Last Post: kqlnut
  Axolotl on PinePhone / Mobian arno_nuehm 105 27,796 07-23-2021, 01:20 PM
Last Post: Zebulon Walton
  Armbian on the PinePhone Meow 0 123 07-21-2021, 10:42 PM
Last Post: Meow
  Best/easiest way to install minimal Debian on PinePhone? mcgee 6 405 07-18-2021, 09:35 AM
Last Post: swiley
  Dark theme (on Mobian)? TRS-80 6 324 07-14-2021, 01:35 PM
Last Post: biketool

Forum Jump:


Users browsing this thread: 1 Guest(s)