/** * 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 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