Bug 428397 - Zoomed panning to upper photo make repeated square
Summary: Zoomed panning to upper photo make repeated square
Status: RESOLVED FIXED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 20.08.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-28 16:59 UTC by Azis Naufal
Modified: 2021-02-01 18:55 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 20.12.2


Attachments
example of photo that cause bug of gwenview (1.79 MB, image/png)
2020-10-28 16:59 UTC, Azis Naufal
Details
Screenshot of the gwenview bug. (139.43 KB, image/png)
2020-10-28 17:00 UTC, Azis Naufal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Azis Naufal 2020-10-28 16:59:10 UTC
Created attachment 132845 [details]
example of photo that cause bug of gwenview

SUMMARY
I'cant explain it too much. But here is a steps to reproduce.
I add an example of the photo.

STEPS TO REPRODUCE
1. Open chromium browser
2. Install this extension: https://chrome.google.com/webstore/detail/gofullpage-full-page-scre/fdpohaocaechififmbbbbbknoalclacl
3. Capture a fullpage website using it.
4. Save it.
5. Open it using gwenview.
6. Zoom in.
7. Do the panning to upper section of photo. 

OBSERVED RESULT
weird square border

EXPECTED RESULT
photo panned successfully

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: OpenSUSE Tumbleweed 20201026
(available in About System)
KDE Plasma Version: 5.20.1
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
-
Comment 1 Azis Naufal 2020-10-28 17:00:03 UTC
Created attachment 132846 [details]
Screenshot of the gwenview bug.
Comment 2 Justin Zobel 2020-10-28 23:50:17 UTC
I'm unable to replicate this on Gwenview from git master.
Comment 3 Azis Naufal 2020-11-01 01:20:49 UTC
I  try to disable display fractional scaling and the repeated square is not exist anymore.
hmm....
Comment 4 Justin Zobel 2020-11-01 01:41:23 UTC
Thanks for the extra troubleshooting Azis, I'll check with some of the devs and see what they say.
Comment 5 Alexander Potashev 2020-11-01 19:31:25 UTC
Likely a duplicate of bug #271671
Comment 6 Vlad Zahorodnii 2021-02-01 18:36:20 UTC
Git commit 955df5addac77b49c8349e6477806dbf27bde238 by Vlad Zahorodnii.
Committed on 01/02/2021 at 18:35.
Pushed by vladz into branch 'release/20.12'.

Fix visual artifacts when panning zoomed in image on HiDPI

The size of the viewport rectangle needs to be in the device-independent
pixels; otherwise there will be visual artifacts when panning a zoomed in
translucent image.
Related: bug 417342, bug 414776

M  +6    -6    lib/documentview/rasterimageview.cpp

https://invent.kde.org/graphics/gwenview/commit/955df5addac77b49c8349e6477806dbf27bde238