From 4bb25e8bc16e433c1cd1527cc7c622af0546d0a9 Mon Sep 17 00:00:00 2001 From: Fredrik Karlsson Date: Wed, 4 Oct 2017 20:15:30 +0200 Subject: [macos] Scale down snapshot images (#10105) --- platform/darwin/src/MGLMapSnapshotter.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/darwin/src/MGLMapSnapshotter.mm b/platform/darwin/src/MGLMapSnapshotter.mm index 12b932daa3..835e1995f3 100644 --- a/platform/darwin/src/MGLMapSnapshotter.mm +++ b/platform/darwin/src/MGLMapSnapshotter.mm @@ -133,6 +133,8 @@ const CGFloat MGLSnapshotterMinimumPixelSize = 64; MGLImage *mglImage = [[MGLImage alloc] initWithMGLPremultipliedImage:std::move(image) scale:self.options.scale]; #else MGLImage *mglImage = [[MGLImage alloc] initWithMGLPremultipliedImage:std::move(image)]; + mglImage.size = NSMakeSize(mglImage.size.width / self.options.scale, + mglImage.size.height / self.options.scale); #endif // Process image watermark in a work queue -- cgit v1.2.1