             XCTAssertNotNil(decodedWebP, fileName)
             
             let originalData = Data(fileName: fileName)
-            let originalImage = Image(data: originalData)!
+            let originalImage = KFCrossPlatformImage(data: originalData)!
             XCTAssertTrue(decodedWebP!.renderEqual(to: originalImage), fileName)
         }
     }

        return dismatchedLength <= Int(tolerancePercent * Double(length1))
    }

    func rendered() -> Image? {
        // Ignore non CG images
        guard let cgImage = cgImage else {
            return nil

    
    func testEncodingPerformance() {
        let s = WebPSerializer.default
        let images = fileNames.compactMap { fileName -> KFCrossPlatformImage? in
            let data = Data(fileName: fileName)
            return DefaultImageProcessor.default.process(item: .data(data), options: [])
        }
