Megapixels oddness

still running postmarket-os, manually updating with apk

found that the megapixels app, is now fast, but is not saving the .jpg files correctly on my setup?

is saving two files, IMGYYYYMMDDHHMMSS.dng and IMGYYYYMMDDHHMMSS.jpg

the .dng file seems fine, but since ~20201214 the .jpg is red and squished/half?

manually converted the raw .dng to jpg, and is ok, see below for an example.

the program to convert was using python3 on the phone, using python3 and the rawpy module, below almost verbatim from the example

import rawpy
import imageio

path = 'in.dng'
with rawpy.imread(path) as raw:
    rgb = raw.postprocess()
imageio.imsave('out.jpg', rgb)
This entry was posted in tech. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s