Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
eab3c3ab
Kaydet (Commit)
eab3c3ab
authored
Şub 19, 2016
tarafından
Marco Cecchetti
Kaydeden (comit)
Michael Meeks
Şub 24, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#97662 - Avoid JPEG compressing de-compressed PNG.
Change-Id: Iafa5d4b347da46dedb9431b6870f34b2b6fcad99
üst
8a039afb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
pdfextoutdevdata.cxx
vcl/source/gdi/pdfextoutdevdata.cxx
+11
-5
pdfwriter_impl2.cxx
vcl/source/gdi/pdfwriter_impl2.cxx
+8
-2
No files found.
vcl/source/gdi/pdfextoutdevdata.cxx
Dosyayı görüntüle @
eab3c3ab
...
...
@@ -409,15 +409,21 @@ bool PageSyncData::PlaySyncPageAct( PDFWriter& rWriter, sal_uInt32& rCurGDIMtfAc
else
if
(
aBeg
->
eAct
==
PDFExtOutDevDataSync
::
EndGroupGfxLink
)
{
Graphic
&
rGraphic
=
mGraphics
.
front
();
if
(
rGraphic
.
IsLink
()
&&
rGraphic
.
GetLink
().
GetType
()
==
GFX_LINK_TYPE_NATIVE_JPG
&&
mParaRects
.
size
()
>=
2
)
if
(
rGraphic
.
IsLink
()
)
{
mbGroupIgnoreGDIMtfActions
=
GfxLinkType
eType
=
rGraphic
.
GetLink
().
GetType
();
if
(
eType
==
GFX_LINK_TYPE_NATIVE_JPG
&&
mParaRects
.
size
()
>=
2
)
{
mbGroupIgnoreGDIMtfActions
=
rOutDevData
.
HasAdequateCompression
(
rGraphic
,
mParaRects
[
0
],
mParaRects
[
1
]);
if
(
!
mbGroupIgnoreGDIMtfActions
)
if
(
!
mbGroupIgnoreGDIMtfActions
)
mCurrentGraphic
=
rGraphic
;
}
else
if
(
eType
==
GFX_LINK_TYPE_NATIVE_PNG
)
{
mCurrentGraphic
=
rGraphic
;
}
}
break
;
}
...
...
vcl/source/gdi/pdfwriter_impl2.cxx
Dosyayı görüntüle @
eab3c3ab
...
...
@@ -96,7 +96,13 @@ void PDFWriterImpl::implWriteBitmapEx( const Point& i_rPoint, const Size& i_rSiz
aBitmapEx
.
Mirror
(
nMirrorFlags
);
}
bool
bIsJpeg
=
(
i_Graphic
.
GetType
()
!=
GRAPHIC_NONE
)
&&
(
i_Graphic
.
GetBitmapEx
()
==
aBitmapEx
);
bool
bIsJpeg
=
false
,
bIsPng
=
false
;
if
(
i_Graphic
.
GetType
()
!=
GRAPHIC_NONE
&&
i_Graphic
.
GetBitmapEx
()
==
aBitmapEx
)
{
GfxLinkType
eType
=
i_Graphic
.
GetLink
().
GetType
();
bIsJpeg
=
(
eType
==
GFX_LINK_TYPE_NATIVE_JPG
);
bIsPng
=
(
eType
==
GFX_LINK_TYPE_NATIVE_PNG
);
}
if
(
i_rContext
.
m_nMaxImageResolution
>
50
)
{
...
...
@@ -154,7 +160,7 @@ void PDFWriterImpl::implWriteBitmapEx( const Point& i_rPoint, const Size& i_rSiz
aBitmapEx
.
Convert
(
eConv
);
}
bool
bUseJPGCompression
=
!
i_rContext
.
m_bOnlyLosslessCompression
;
if
(
(
aSizePixel
.
Width
()
<
32
)
||
(
aSizePixel
.
Height
()
<
32
)
)
if
(
bIsPng
||
(
aSizePixel
.
Width
()
<
32
)
||
(
aSizePixel
.
Height
()
<
32
)
)
bUseJPGCompression
=
false
;
SvMemoryStream
aStrm
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment