+
+ // [NSImage size] defaults to the image size in points instead of pixels,
+ // so if an image file specified "pixels per inch" we can end up with
+ // absurdly sized images. Set it back to 1:1 pixel:point.
+ //
+ NSImageRep *rep = [image.representations firstObject];
+ image.size = NSMakeSize (rep.pixelsWide, rep.pixelsHigh);
+