algoo / preview-generator

generates previews of files with cache management
https://pypi.org/project/preview-generator/
MIT License
226 stars 50 forks source link

Feat: Better Raw preview builder with Darktable-cli or rawpy ? #249

Closed inkhey closed 2 years ago

inkhey commented 3 years ago

Feature description and goals

Darktable as a command line permitting to generate jpg image from raw with specific treatment on it. With a good default preset, we may be able to generate good raw preview with it.

External links:

grignards commented 2 years ago

I also found https://github.com/letmaik/rawpy which could be used and avoids to install a full application just to convert files types.

inkhey commented 2 years ago

I also found https://github.com/letmaik/rawpy which could be used and avoids to install a full application just to convert files types.

Just do some check on it. The drawback i saw with rawpy instead of using darktable are :

For the pros, it's a lib, it's probably more efficient.

grignards commented 2 years ago

rawpy is only a wrapper on top of libraw, the supported cameras are listed on libraw website.

grignards commented 2 years ago

The post-processing parameters are available here: https://letmaik.github.io/rawpy/api/rawpy.Params.html#rawpy.Params

inkhey commented 2 years ago

@grignards Just found this: https://www.libraw.org/

Additionally, the LibRaw library offers some basic RAW conversion, intended for cases when such conversion is not the main function of the LibRaw-using application (for example: a viewer for 500+ graphic file formats, including RAW). These methods are inherited from the Dave Coffin’s dcraw.c utility (see below the “Project history” section); their further development is not currently planned, because we do not consider production-quality rendering to be in the scope of LibRaw’s functionality (the methods are retained for compatibility with prior versions and for rapid-fire testing of RAW support and other aspects).

grignards commented 2 years ago

I didn't see this statement, but I'd think this is OK for a preview usage: I do not think we expect preview-generator to create "production-quality" previews, only give an idea of what is the RAW image.

inkhey commented 2 years ago

fixed by #278