Files
custom_wda/WebDriverAgentLib/Utilities/FBImageUtils.h

26 lines
750 B
C
Raw Normal View History

2026-02-03 16:52:44 +08:00
/**
* 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.
*/
#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