| 1234567891011121314151617181920212223242526 |
- /**
- * Copyright (c) 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
- #import <XCTest/XCTest.h>
- NS_ASSUME_NONNULL_BEGIN
- /*! Returns YES if the data contains a PNG image */
- BOOL FBIsPngImage(NSData *imageData);
- /*! Converts the given image data to a PNG representation if necessary */
- NSData *_Nullable FBToPngData(NSData *imageData);
- /*! Returns YES if the data contains a JPG image */
- BOOL FBIsJpegImage(NSData *imageData);
- /*! Converts the given image data to a JPG representation if necessary */
- NSData *_Nullable FBToJpegData(NSData *imageData, CGFloat compressionQuality);
- NS_ASSUME_NONNULL_END
|