forked from brunophilipe/Mastonaut
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CGImage.resizedImage was broken for grayscale images
bitsPerComponent and pixel were hardcoded to 8/32, and colorSpace was empty. Works fine for RGB and ARGB but not for e.g. grayscale. Instead, we now pull this info from the CGImage we're passing anyway. This fixes the test `testResizeGrayscaleImage` and therefore fixes #30.
- Loading branch information
Sören Kuklau
committed
Nov 30, 2022
1 parent
8d3b3c7
commit e506ac4
Showing
1 changed file
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters