diff options
author | Darshan-upadhyay1110 <darshan.upadhyay@collabora.com> | 2023-09-26 12:29:15 +0530 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-10-11 09:31:17 +0200 |
commit | 60a51b8397154e9685e63cff0a60c1a3da034423 (patch) | |
tree | 0eb420504b56bffab142cc34affd5d42877bf090 /oox | |
parent | 64f62133967e29fb91dc8a7dc2673f568fb03364 (diff) |
tdf#51510 Blurry QR code after save/reload (docx)
- without GfxLinkType::NativeSvg CASE in writeToStorage method by default QR svg changes to low resolution image type and that is the why QR got blurry in doc or docx format
- added svg option when we change from odt to doc or docx format
Change-Id: I74aec0619992c1f455cc9cbf3c19e352c3037e04
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157264
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 1d7dc53f19d188ae12603ca3cd526eb0a5016cf4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157729
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/drawingml.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 0d1b8a5e1eda..ebe1df3a72d8 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -1442,6 +1442,10 @@ OUString GraphicExport::writeToStorage(const Graphic& rGraphic , bool bRelPathTo sMediaType = "image/png"; pExtension = ".png"; break; + case GfxLinkType::NativeSvg: + sMediaType = "image/svg"; + pExtension = ".svg"; + break; case GfxLinkType::NativeTif: sMediaType = "image/tiff"; pExtension = ".tif"; |