mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 01:11:04 +00:00
In [TIFFRepresentationUsingCompression:factor:] set extraSamples
and correct compression type if 0. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15245 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a741883279
commit
86711c9522
1 changed files with 3 additions and 0 deletions
|
@ -458,6 +458,9 @@
|
|||
else
|
||||
info.photoInterp = PHOTOMETRIC_RGB;
|
||||
|
||||
info.extraSamples = (_hasAlpha) ? 1 : 0;
|
||||
if (type == 0)
|
||||
type = COMPRESSION_NONE;
|
||||
info.compression = type;
|
||||
info.quality = (1 - ((float)factor)/255.0) * 100;
|
||||
info.numImages = 1;
|
||||
|
|
Loading…
Reference in a new issue