Author: fredkiefer
Date: Sat Mar 25 00:06:31 2017
New Revision: 40415
URL: http://svn.gna.org/viewcvs/gnustep?rev=40415&view=rev
Log:
*
Source/NSBitmapImageRep+JPEG.m(-_JPEGRepresentationWithProperties:errorMessage:):
Correct JPEG export which was using size instead of pixelsWide and
pixelsHigh.
Modified:
libs/gui/trunk/ChangeLog
libs/gui/trunk/Source/NSBitmapImageRep+JPEG.m
Modified: libs/gui/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/ChangeLog?rev=40415&r1=40414&r2=40415&view=diff
==============================================================================
--- libs/gui/trunk/ChangeLog (original)
+++ libs/gui/trunk/ChangeLog Sat Mar 25 00:06:31 2017
@@ -1,3 +1,8 @@
+2017-03-24 Fred Kiefer <[email protected]>
+
+ *
Source/NSBitmapImageRep+JPEG.m(-_JPEGRepresentationWithProperties:errorMessage:):
+ Correct JPEG export which was using size instead of pixelsWide and
pixelsHigh.
+
2017-03-20 Fred Kiefer <[email protected]>
* Source/GSXibKeyedUnarchiver.m:
Modified: libs/gui/trunk/Source/NSBitmapImageRep+JPEG.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSBitmapImageRep%2BJPEG.m?rev=40415&r1=40414&r2=40415&view=diff
==============================================================================
--- libs/gui/trunk/Source/NSBitmapImageRep+JPEG.m (original)
+++ libs/gui/trunk/Source/NSBitmapImageRep+JPEG.m Sat Mar 25 00:06:31 2017
@@ -581,9 +581,9 @@
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;
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs