Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Make ios bitmap chroma sampling mode 420 by default.
Browse files Browse the repository at this point in the history
Summary: Before adding a none case, returning 420 from bitmap to ensure images are saved as 420 when `propagateSamplingModeFromSource` is on.

Reviewed By: lambdapioneer

Differential Revision: D13319314

fbshipit-source-id: 2be68796852b8a6e82eb2029a0dad22cb0d2a4c7
  • Loading branch information
cuva authored and facebook-github-bot committed Dec 4, 2018
1 parent de774f0 commit 6fbfb91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/SpectrumKit/SpectrumKit/Image/FSPImageSpecification.mm
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ + (instancetype)imageSpecificationFromImage:(UIImage *)image
format:FSPImageFormat.bitmap
pixelSpecification:[FSPImagePixelSpecification imagePixelSpecificationFromImage:image]
orientation:FSPImageOrientationFromImage(image)
chromaSamplingMode:FSPImageChromaSamplingMode444
chromaSamplingMode:FSPImageChromaSamplingMode420
metadata:[FSPImageMetadata imageMetadataFromImage:image]];
}

Expand Down

0 comments on commit 6fbfb91

Please sign in to comment.