/Engine/Source/Runtime/ImageWrapper/Public/IImageWrapperModule.h
Convert inputFImageinto a file-format encoded array. in ImageWrapper land, "Compress" means "put in file format" OutData is filled with the file format encoded data lossy conversion of the pixel type may be done if necessary eg. if you pass F32 float pixels to write to BMP, they will be converted to SRGB U8 BGRA8
bool CompressImage ( TArray64< uint8 > & OutData, EImageFormat ToFormat, const [FImageView](API\Runtime\ImageCore\FImageView) & InImage, int32 Quality )