-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Panasonic LX7 garbage pixels #14082
Comments
I cannot reproduce using https://raw.pixls.us/ samples (in any of the 4:3, 3:2, 16:9 nor 1:1 modes) and dt 4.2.1 on Windows. The default crop for 3:2 and 16:9 is e.g. |
It does not occur with all files. It may have something to do with digital zoom, as the LX7 crops the raw image if you use digital zoom. As an example, an image of a map was over 10 MB without digital zoom, and only 3.2 MB with maximum digital zoom. |
Perhaps try resetting the rawprepare ("raw black/white point") module? You can also switch |
Ah, that could make sense, cameras.xml and rawprepare would not know how to handle that. They might even get confused and assign a (horizontal) crop from a different aspect ratio setting depending on what exact cropped dimensions are actually written out by the camera... Your best bet is to enable that hidden option then and adjust the rawprepare crop manually. Of course, if you manage to find a pattern and a flaw in the RawSpeed mode guessing logic, that might be worth potentially fixing. |
Actually, they do (something does, anyway). Here is the image info with a maximally zoomed-in image: For the garbled image, 2023-03-30_17-06-32_P1000044.RW2, the correct value for the right crop seems to be 214. |
It comes from the code snippet I linked to. For those values it grabs the 16:9 no-zoom setting from cameras.xml: |
How about removing the crop lines for LX7 from cameras.xml? |
Thanks! The garbage is gone if I remove the crop lines. |
Thanks for checking. How does it affect normal files w/o digital zoom? Does it change the expected crop considerably when you reset the rawprepare module? |
I tried a wide-angle shot I exported earlier and now with current master + crop lines removed; the image changed by a few pixels only (I'm not exactly sure if it was the same stack). |
Sounds like it's safe to make the change - old edits are preserved, the difference on new ones seems small enough. |
@kofa73 could you please contribute one such problematic sample to RPU? |
I've uploaded some (all aspect ratios with full "intelligent zoom" - Panasonic uses the term "digital zoom" when they don't just crop, but also enlarge the middle parts of the image). |
@kofa73 thank you for contributing the samples! |
* Sony ILCE-7CR camera support. Fixes #15764 * Canon IXY 220F camera support * Improve white levels for Canon EOS 550D * Prefer vendor crop for Panasonic DMC-LX7. Fixes #14082 * NefDecoder: try to support `.NEF`s whose EXIV were mangled/user-modified Fixes #15562 Fixes #5149 * rs-identify: don't re-widen (windows) filenames * Fix build on RISC-V * Misc code cleanups
Describe the bug/issue
Some LX7 images have garbage pixels on the edge. The affected files, when processed using dcraw, have no garbage data.
To Reproduce
Expected behavior
No garbage pixels.
Screenshots
![image](https://user-images.githubusercontent.com/3177739/229275418-fd2baaca-a105-4185-bb61-92cd4e23b431.png)
2023-03-30_17-06-32_P1000043.RW2
No garbage pixels - size shown in image information: 3792 (3920) x 2536:
Camera's JPG: 3776 x 2520
dcraw PPM: 3792 x 2536
2023-03-30_17-06-32_P1000044.RW2
![image](https://user-images.githubusercontent.com/3177739/229275472-ed755a8a-7c42-4838-98a7-a447c3f9578e.png)
Garbage pixels - size shown in image information: 3792 (3920) x 2476:
Camera's JPG: 3776 x 2520
dcraw PPM: 3704 x 2476
Images sizes from camera manual:
Aspect ratio 4:3 -> 3648 x 2736
Aspect ratio 3:2 -> 3776 x 2520
Aspect ratio 16:9 -> 3968 x 2232
Aspect ratio 1:1 -> 2736 x 2736
Additional info
I had optical zoom set to maximum; I may have accidentally slipped into the digital zoom range with the corrupted image. I've tried taking images with digital zoom to verify, but have been unable to reproduce the issue.
Platform
_Please fill as much information as possible in the list given below. Please state "unknown" where you do not know the answer and remove any sections that are not applicable _
The text was updated successfully, but these errors were encountered: