https://bugs.kde.org/show_bug.cgi?id=522638

            Bug ID: 522638
           Summary: Pronounced inconsistencies with freehand line
                    annotation depending on zoom level and drawing speed
    Classification: Applications
           Product: okular
      Version First 26.04.2
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
Depending on how zoomed in on a document or PDF you are, as well as how fast
you move your cursor, the freehand line you draw can differ greatly. If you
zoom out on a document and slowly create a diagonal line, there is a lot of
jagged "staircasing" with the line. If you draw the line faster while still
zoomed out, the staircasing is still present, but much less jagged.

Conversely, if you zoom into a document and slowly draw a line, the line is
much less staircase-y, but is still jagged. If you quickly draw a line while
zoomed in, you get the best line out of the four lines.

STEPS TO REPRODUCE
1. Open a PDF in Okular
2. Click on the freehand line tool
3. Zoom out to <50%
4. Slowly draw a diagonal line
5. Quickly draw a diagonal line
6. Zoom in to >200%
7. Slowly draw a diagonal line
8. Quickly draw a diagonal line

OBSERVED RESULT
The faster drawn lines are much less jagged, and the lines drawn when zoomed in
are higher in quality.

EXPECTED RESULT
The lines shouldn't be this dissimilar, especially depending on how fast you
move your cursor.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 44
KDE Plasma Version: 6.7.1
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Kernel Version: 7.0.14-201.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 PRO 4650U with Radeon Graphics
Memory: 9 GB of RAM (7.6 GB usable)
Graphics Processor: AMD Radeon Graphics

ADDITIONAL INFORMATION
I understand that at different zoom levels, you are drawing at different DPIs,
especially when comparing between 50% zoom and 200% zoom, but the difference
between drawing a line quickly and slowly is quite noticeable. This may also be
related to https://bugs.kde.org/show_bug.cgi?id=437401.

The reason I opened this is because between Xournal and Okular, Xournal seemed
to have better freehand annotating quality. I didn't know why that was, but
when I tested between the two, I saw that Xournal actually behaved quite
similarly to Okular when performing the same steps above. It turns out Xournal
uses circles instead of squares as the individual "dot", which makes it
perceptually higher in quality.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to