Bug 475937 - Unable to print in landscape mode
Summary: Unable to print in landscape mode
Status: RESOLVED UPSTREAM
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 23.08.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL: https://bugreports.qt.io/browse/QTBUG...
Keywords:
: 503407 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-10-21 20:26 UTC by Real Name
Modified: 2025-04-28 17:35 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Real Name 2023-10-21 20:26:02 UTC
SUMMARY
Selecting "landscape" mode in the printer properties (in the "Print" dialog") does nothing except print the image in portrait mode with a third of the image missing. This happens in all KDE applications that can print, not just Gwenview.


STEPS TO REPRODUCE
1. Open the "Print image" dialog by pressing Ctrl+P or from the menu
2. Click the "properties" button and select "Landscape" in the "Orientation" box
3. Print

OBSERVED RESULT
Image is printed in portrait mode anyway

EXPECTED RESULT
Image printed in landscape mode as selected

SOFTWARE/OS VERSIONSOperating System: Fedora Linux 39
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.5.7-300.fc39.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × AMD A10-7860K Radeon R7, 12 Compute Cores 4C+8G
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 590 Series

ADDITIONAL INFORMATION
Installed evince and gthumb to rule out a driver bug and yes, both can print in landscape mode just fine, so this is 99% a Qt/KDE exclusive bug. This seems to be a recurrent bug as well.
Comment 1 gwarser 2023-11-06 09:20:24 UTC
Can be related to CUPS update. I think I had driver "Brother DCP-T520W, driverless, 1.8" before, now it's "2.0".

Printing from GIMP and Firefox seems fine.
Comment 2 João Vidal da Silva 2023-12-04 06:10:52 UTC
I'm having the same issue since I last updated my system (Manjaro).
It was a large update, many KDE components and also all CUPS related components (cups and filters, ppd).
My Canon Pixma drivers were not updated but I reinstalled them and removed/readded the printer. No good.

Printing with 'lp', Libreoffice Writer, Gimp, all ok.
Last week I was sure I was having the same issue printing PDFs from Okular, but I tried it now and seems ok.

Gwenview definitely has this issue, printing 'landscape layout' images.
Comment 3 João Vidal da Silva 2023-12-05 01:25:49 UTC
I updated Gwenview to 23.08.3-2 but the problem remains.
But it's interesting to notice that, although Okular prints PDFs correctly, it prints images incorrectly just like Gwenview.
Comment 4 joelsonejr 2024-02-02 23:24:51 UTC
I was able to confirm the misbehavior when printing from Gwenview, version  23.08.4. Printing from Chrome and Gimp are working fine. 
Below is my system information:

Kernel: 6.6.10-1-MANJARO 
  Uptime: 1 hour, 16 mins 
  Packages: 1318 (pacman), 10 (flatpak), 6 (snap) 
  Shell: bash 5.2.21 
  Resolution: 2560x1440 
  DE: Plasma 5.27.10 
  WM: KWin 
  Theme: [Plasma], Breeze [GTK2/3] 
  Icons: [Plasma], breeze [GTK2/3] 
  Terminal: yakuake 
  CPU: Intel i7-4790K (8) @ 4.400GHz 
  GPU: NVIDIA GeForce GTX 1080 
  Memory: 4404MiB / 32042MiB
Comment 5 Robert 2024-06-10 00:38:31 UTC
Same issue for me, Landscape printing is broken in all KDE applications, other programs are fine. This isn't a good look for KDE as minor bugs are understandable, while broken basic functionality isn't and some sort of unit testing/quality assurance is required. System info is as follows and as you can see it has been 7 months since this bug has been reported and countless updates:

Operating System: EndeavourOS 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
KDE Applications Version: 24.05.0
Qt Version: 6.7.1
Kernel Version: 6.9.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: X570 AORUS XTREME
System Version: -CF
Comment 6 Victor REVOL 2024-08-12 14:07:27 UTC
I'm having the same issue on :

Operating System: Gentoo Linux 2.15
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.3-gentoo-dist (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon 780M Graphics
Memory: 27.2 Gio of RAM
Graphics Processor: AMD Radeon 780M
Comment 7 Victor REVOL 2024-08-15 08:14:59 UTC
I wonder if it could be a Qt bug, affecting KDE?
Comment 8 Zeno Endemann 2024-12-24 13:34:01 UTC
I'm also having this issue. It seems gwenview forgets to rotate the image 90 degree to have the long side vertically for actual printers (printing to pdf works, as there it "rotates" by changing the page format to be "horizontal-A4").

Additionally, printing images that are more wide than high default to printing in landscape mode. In my opinion, it would be nice if that could be disabled somehow, or at least make the orientation part of the print dialog itself (instead of hidden behind the printer settings) like firefox's print dialog to not be surprized by this automatic choice.
Comment 9 John Kizer 2025-04-28 04:20:37 UTC
*** Bug 503407 has been marked as a duplicate of this bug. ***
Comment 10 John Kizer 2025-04-28 17:35:37 UTC
Since this seems to be isolated to the printing features in KDE applications only, and since KDE applications in turn use Qt-provided printing components, this has been reported as an upstream bug in Qt: https://bugreports.qt.io/browse/QTBUG-136451

Thanks!