-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
MacOS: 3.0.0rc0 Minor artifacts in jpeg export. #3349
Comments
|
Being that you asked about OpenCL I did a quick test with it off. Using the same settings as in the google drive with OpenCL off the artifact in the corner goes away. |
And what about if you disable lens correction? It looks to me like incorrectly cropped lens correction. |
You are correct. OpenCL enabled. Lens Correction disabled and the artifact is not present. Assuming darktable is using lensfun for corrections I will need to look into how to submit a fix for this lens. |
The scaling value is actually not part of the profile, but calculated within darktable for each case. I saw another mention of this happening in an unrelated issue recently. I wonder if something about the new pixelpipe situation requres some adjustment to how the scale factor is calculated? |
Hmm. I don't see this with or without OpenCL (GTX 1050 with the proprietary Linux drivers). I do see some slight difference in hilight brightness, but otherwise identical in the corners, without the artifact. |
Interesting. For me it only happens with the lens correction enabled + OpenCL. Not sure if there is some special OpenCL paths for MacOS or not. Not sure if it is a Mac driver issue or not. I tried a paid software I own On1 which also uses lensfun and GPU enabled for edits and the issue does not exist as far as I can see. Has me wondering what could be causing it in my case. |
There's a lot going on in that history stack... it might be interesting to try removing other modules one by one, and see if you can eliminate the issue while still using OpenCL and lens correction. Maybe at least test with dehaze turned off... that one actually causes the lightness variations I was seeing, I think... it shows even more variation when toggling 'high quality resampling', but I think that's a known issue (EDIT: yep, #3339).. |
@junkyardsparkle
This is making me think perhaps the sharpening is exposing the artifact on the image but was present even tho not showing in previous exports of this test.
All tests were done with OpenCL on and Dehaze module was never enabled. Hopefully all of these efforts help in showing that there may be a issue with with the crop of the correction as stated in a previous comment. Seems to only happen with OpenCL and the lens correction with sharpening exposing the artifact. |
It certainly sounds like OpenCL on Mac somehow gets that scaling very slightly wrong... or just not precise enough? I'm assuming the module shows you the same derived 1.022 scale factor that I'm seeing for that file? Unfortunately, the way the lens correction module works doesn't allow for very convenient workarounds, at least not for a zoom lens (you'd have to create an adjusted auto-applied preset for every focal length... and each aperture if vignetting correction is involved). |
Yes same scale factor of 1.022. I will update to Catalina just to see if a assumed updated driver resolves the issue. It sure does seem like a OpenCL math error specific to MacOS. |
Just had a chance to go through the update to MacOS 10.15.1 (Catalina). The artifact is no longer present at all no matter what modules or settings I use. OpenCL or not. I would say we can place this as a bug with the 10.14.6 Mojave OpenCL driver causing some sort of math issue. Which is resolved with a updated to the latest version of MacOS. I feel this can be closed now as I doubt there is little point in trying to work around the issue in Mojave as it does not seem to be majorly wide spread from the reports on here as I was the first to mention the issue as far as I can tell. |
Good to know! It's subtle enough that it could easily be going unnoticed by some people, and would of course be eliminated by even a slight crop or rotation. I don't know if @parafin has any interest in patching for a special case or not. If so, it might be good to get an idea of what the range of severity is (maybe depending on distortion type) and if it happens only when correcting distortion, TCA, or both... those tests will be for the next person who reports. ;-) |
No, I have no interest in fixing it. This looks to me like one of the many incompatibilities between various OpenCL implementations. That's not my area. |
Ok, then somebody should probably close this. Honestly, the best thing might be to just make the scale calculation more conservative, to allow for things like this. I don't think there would be many complaints about 1-2 fewer pixels retained at the edges; darktable already retains substantially more of this marginal area than cameras do, from what I've seen. |
Describe the bug
When exporting a jpeg I am experiencing minor artifacting in the lower right corner of the image. Represents itself as black pixels which are not present in the raw.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect no artifacts on export.
Screenshots
Included in this google drive folder is the Raw, xmp file, jpeg I exported, screenshot of the export module settings, as well as a cropped jpeg pointing to the artifact. All files are licensed CC BY-SA 4.0 feel free to use as you need.
https://drive.google.com/drive/folders/1fhOmBMUQ3lcpJseviRyCRdOdu4RLpxOA
Platform (please complete the following information):
Additional context
I did do some messing around with the settings. Bringing up the quality to 95-96 and enabling resampling seems to reduce the artifact significantly but still a small amount of presence remains. I also did an export using Rawtherapee as a comparison point with as similar settings as I can get and artifact is not present.
The text was updated successfully, but these errors were encountered: