Replies: 6 comments 3 replies
-
Sure, happy to add a libraw reader. I would model it on libvips can already read RAW via imagemagick. Try:
Though all IM does is shell out to libvips has it's own shell out system, so you can also use something like (untested): image = pyvips.Image.system(f"ufraw-batch --output=%s --out-type=ppm --out-depth=16 -i {filename}", out_format="%s.ppm") |
Beta Was this translation helpful? Give feedback.
-
@jcupitt i too would like to resize, crop etc and convert raw images to jpeg/webp. (i understand i might do it via dcraw converting raw to TIFF and then using libvips on TIFF but that way it take too long and i need output ideally in milliseconds and max in low single digit seconds; so that dcraw kinda multi-step approach seems unfeasible for me) |
Beta Was this translation helpful? Give feedback.
-
libvips is a volunteer project, so someone needs to volunteer to do the work. I don't think there's any timescale. |
Beta Was this translation helpful? Give feedback.
-
libraw is just a wrapper around dcraw, so I doubt if a libraw reader will be much quicker than running dcraw yourself. It might be a little faster I suppose. |
Beta Was this translation helpful? Give feedback.
-
has anyone taken this up since it was introduced? if not, what would be the level of effort for a new dev to implement ourselves? |
Beta Was this translation helpful? Give feedback.
-
A dedicated LibRaw loader is now available on the master branch (which will be part of the upcoming 8.18 release). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
We are evaluating vips for our project and we need to have support for RAW images (at least to read - we never output or do operations on the source file).
What would be the right way to integrate libRAW into libvips? Write a new foreign load function? Could it be modelled around something already in there like jpeg or png support?
Would such integration be welcomed upstream or would it be better if we build a pipeline in code that would convert raw to tiff before pushing it into libvips?
Thanks for reading and responding in advance.
Beta Was this translation helpful? Give feedback.
All reactions