-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Idea: DNG recompression #119
Comments
What's your workflow to start first with uncompressed dng instead of lossless compression? Can't imagine a situation where this is useful. |
I have an old camera (Pentax K200D) which can shoot uncompressed DNG only, which take up twice the space then. So compressing after the fact sounds useful for storage. This is probably the case for a bunch of other cameras too. (It can also shoot compressed PEF, but rawspeed doesn't support it currently... we're working on that, though.) |
I also learned that Adobe SDK |
Okay, that makes sense. Yeah, with my idea for reconvert/recompress, your problem should be automatically solved, but it was not the first intention :) |
|
@leahneukirchen not what you requested but: #120 just landed in main. If you want to test I would be happy about feedback. It's not yet feature complete but most of things should work. |
I'll try! thx |
Some notes:
|
Thanks! Existing files should be overriden with -f. analyze command is not yet stabilized, but --meta --yaml should already show some output. |
Works for .PEF, for a (camera-made) .DNG I get
|
For the dnglab-converted DNG I get
|
I would be very interested in an integrated lossy dng compression option! I also tried using the https://github.com/gopro/gpr for compressing dng files into gpr but it wouldn't accept the dnglab dng files :( |
SONY cameras with uncompressed ARW options all can benefit from converting to compressed DNG. I converted all my RAW files to DNG, which might be a bad idea since you can't revert them, but for ARW files, there is in general 40-50% space saving. Even some cameras with compressed RAW still get further compressed, usually around 12-20%. I didn't dive into lossy DNG, but I couldn't tell the difference between a lossy DNG and a lossless one. I'd be very interested to see in future DNG versions to include JEPG XL for lossless and lossy compression, which can bring even better compression rate. |
+1 for feature request of lossless compressing uncompressed DNGs. |
If dnglab could read uncompressed DNG and export exactly the same DNG, just with lossless compressed image data, that would simplify long term storage. AFAIU no such tool exists for Linux so far, even tho all necessary parts of it are implemented multiple times.
The text was updated successfully, but these errors were encountered: