mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 18:31:20 +00:00
* Source/NSBitmapImageRep+JPEG.m(-_JPEGRepresentationWithProperties:errorMessage:):
Correct JPEG export which was using size instead of pixelsWide and pixelsHigh. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40415 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d081365b28
commit
9a51b8d789
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2017-03-24 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSBitmapImageRep+JPEG.m(-_JPEGRepresentationWithProperties:errorMessage:):
|
||||
Correct JPEG export which was using size instead of pixelsWide and pixelsHigh.
|
||||
|
||||
2017-03-20 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/GSXibKeyedUnarchiver.m:
|
||||
|
|
|
@ -581,9 +581,9 @@ static void gs_jpeg_memory_dest_destroy (j_compress_ptr cinfo)
|
|||
colorSpace = [self colorSpaceName];
|
||||
imageSource = [self bitmapData];
|
||||
sPP = [self samplesPerPixel];
|
||||
width = [self size].width;
|
||||
height = [self size].height;
|
||||
row_stride = width * sPP;
|
||||
width = [self pixelsWide];
|
||||
height = [self pixelsHigh];
|
||||
row_stride = [self bytesPerRow];
|
||||
|
||||
// set parameters
|
||||
cinfo.image_width = width;
|
||||
|
|
Loading…
Reference in a new issue