Bug 157323 - QR codes generated in Calc and exported to SVG or pasted elsewhere are too small
Summary: QR codes generated in Calc and exported to SVG or pasted elsewhere are too small
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: QR-code
  Show dependency treegraph
 
Reported: 2023-09-19 07:12 UTC by Chris
Modified: 2023-09-25 13:39 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Calc - generated QR code (795 bytes, image/png)
2023-09-19 07:17 UTC, Chris
Details
Inkscape - generated QR code (18.87 KB, image/svg+xml)
2023-09-19 07:19 UTC, Chris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2023-09-19 07:12:10 UTC
Description:
When a QR code is generated and placed into a cell, it is high definition. When the file is saved, shut down and opened again, the QR codes are of low definition and unusable. When QR codes are generated, is there a way of generating the QR codes with .svg or similar to retain definition?
Thanks

Steps to Reproduce:
1. Insert   OLE Object     QR and barcode
2. Paste text into the generator

Actual Results:
1. Insert   OLE Object     QR and barcode
2. Paste text into the generator

Expected Results:
A high definition QR code that can be printed


Reproducible: Always


User Profile Reset: No

Additional Info:
The manual way I have been generating the codes to go into Calc:

1.manual generation - save a generated QR code in Writer. Maximise screen size and copy QR code
2.Paste QR code into Inkscape. Document Properties     Resize to content. Copy QR code
3.Paste QR code into Calc and adjust to fit into a cell that is square
Comment 1 Chris 2023-09-19 07:17:16 UTC
Created attachment 189690 [details]
Calc - generated QR code
Comment 2 Chris 2023-09-19 07:19:45 UTC
Created attachment 189691 [details]
Inkscape - generated QR code
Comment 3 Stéphane Guillou (stragu) 2023-09-19 21:57:59 UTC
Thank you for the report!

I can not reproduce the issue as described: after inserting a QR code, saving and reopening or reloading, the OLE object still looks sharp in Calc.

However, I see that using "right-click > Save" on the QR code saves an SVG file that by default is 0.04 × 0.04 cm (if encoding the URL to this bug report), regardless of how big it is on canvas. This is way too small and should either be based on the size on the document, or use a more sensible default that would straight away be usable when printed as-is.

This can also be shown when copy-pasting the object onto a Writer or Draw document.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e472b5b557d2b43b41e488c83db2b188de499610
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Same in 6.4.0.3, the branch in which the feature first appeared.