-
Notifications
You must be signed in to change notification settings - Fork 323
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
Pentax K1 file in APS-C mode has wrong raw crop #3519
Comments
A few things go wrong with this
I think the correct would be to add multiple frame support in camconst.json
|
@iliasg When you say "multiple frame support", all frames from a single file have the same size, of course. This file has been shot in APS-C mode, hence the difference in size for all its sub-images. |
@Hombre57 it should be "multiple frame_size support" for each model (no relation with multiframe raw files like pixelshift) |
@iliasg Ok, I understand. Pentax K-1 has 3 crop mode in fact. If you don't mind, could you also have a look at the 1:1 crop ratio ? |
As Ingo told me on IRC, that 1:1 raw file has a cropped jpeg embedded image but a Full Frame raw image, so there's no 3 real raw crop size. I should have opened that file in RT first instead of guessing... (I've never shot in this crop ratio) |
@heckflosse @Beep6581 |
@Hombre57 Can you please supply an APS-C size PEF file from K-1? We need to solve the issue for DNG and PEF before pushing. |
@heckflosse RT is crashing here so I can't check the shot size, however considering the file size it should be APS-C. Do not publish or share. |
@Hombre57 Can you test this patch with full and aps-c format pef and dng from k-1? |
Sure. |
@Hombre57 Great! If it works fine in your tests (here it works fine) I can push it for rt5 if there are no objections. |
Yes, works fine with FF & APS-C PEF image, and for FF DNG image. I don't have APS-C DNG image but I guess it works fine too ;). +1 for committing. |
I tested with APS-C DNG image I got from you. Also works fine. Will commit now. Thanks for testing 👍 |
@Hombre57 Can you upload a raw file from K-1 shot in square mode? I want to test how auto distortion correction behaves for that case (comparing full size crop to square jpeg preview) |
Here is a PEF file in 1:1 crop format https://filebin.net/wsqk7i85uksgs0g5 , but I don't know if lens correction was enabled. If not, I won't be able to take a new one until my K-1 come back from the repair service. |
@Hombre57 Does not matter whether lens correction is enabled. I just want to try whether the aut. lens correction algo does not crash in that case. |
@Hombre57 Just tested. No crash, no correction, fine :) |
Pentax K1 files in APS-C mode have wrong raw crop. There's a coloured vertical line at right border.
Pentax K1 APS-C file
The file is a pixelshift file. I don't know if that matters. The issue is reproducible in master branch which reads only the first frame of that file and also in pixelshift branch (tried with all 4 frames).
@iliasg Do you have an idea?
The text was updated successfully, but these errors were encountered: