| Summary: | Aspect Ratio One Pixel Error | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Manfred Rebentisch <mareb> |
| Component: | Plugin-Editor-Crop | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | caulier.gilles, metzpinguin |
| Priority: | NOR | ||
| Version First Reported In: | 7.1.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 8.1.0 | |
| Sentry Crash Report: | |||
|
Description
Manfred Rebentisch
2020-11-30 14:20:27 UTC
The problem cannot be solved, there is always a 1 pixel error. Calculator itself, the desired aspect ratio is 1.25. Original image: 3878/3102 = 1.25016 digikam cut: 3846/3077 = 1.24991 deviation: 0.00009 1st attempt: 3846/3076 = 1.25032 deviation: 0.00032 Second attempt: 3846/3078 = 1.24951 deviation: 0.00049 As you can see, the digiKam result has the smallest deviation from the average of 5:4. By the way, if you scale the image with digiKam, the result is 800x600. Maik I can understand that you would like to see the usual page division factor of 4 for digital photos. But is that really the standard for cutting? A test with Gimp shows the same result as digiKam. Maik Darktable cuts 5:4 just like digiKam (3846x3077). Maik I tested also the crop feature with the ratio 5:4, and the result given corresponding to Maik results. The results is also the same with Windows application as Paint.net or Xnview. Gilles If I export the picture to local storage, I can choose the width of the image. Set this to 800px and start export, then the image becomes 800x639. As I said with the scaling tool in the editor, the result would be 800x600. We may be able to round better in the local export tool. But the possibility of 800x639 or 800x641 coming out can always exist. Maik I cannot reproduce the problem with the local file export tool either. The image size 3846x3077 is exported as 800x600 if an edge length of 800 is set. Even a test with the BQM shows no problem. Or are you talking about a plugin to upload to a web service? Maik Following comments from Maik, i close this file as not a bug. |