* 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:
fredkiefer 2017-03-24 23:06:31 +00:00
parent d081365b28
commit 9a51b8d789
2 changed files with 8 additions and 3 deletions

View file

@ -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:

View file

@ -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;