     }
 }
 
+//extension CGBitmapInfo {
+//    var fixed: CGBitmapInfo {
+//        var fixed = self
+//        let alpha = (rawValue & CGBitmapInfo.alphaInfoMask.rawValue)
+//        if alpha == CGImageAlphaInfo.none.rawValue {
+//            fixed.remove(.alphaInfoMask)
+//            fixed = CGBitmapInfo(rawValue: fixed.rawValue | CGImageAlphaInfo.noneSkipFirst.rawValue)
+//        } else if !(alpha == CGImageAlphaInfo.noneSkipFirst.rawValue) || !(alpha == CGImageAlphaInfo.noneSkipLast.rawValue) {
+//            fixed.remove(.alphaInfoMask)
+//            fixed = CGBitmapInfo(rawValue: fixed.rawValue | CGImageAlphaInfo.premultipliedFirst.rawValue)
+//        }
+//        return fixed
+//    }
+//}
 extension CGBitmapInfo {
     var fixed: CGBitmapInfo {
         var fixed = self

        return .unknown
    }
}

    }
}


//extension Double {
//    var isEven: Bool {
//        return truncatingRemainder(dividingBy: 2.0) == 0
//    }
//}

extension Double {
    var isEven: Bool {
        return truncatingRemainder(dividingBy: 2.0) == 0
    }
    
}

// MARK: - Image format
//private struct ImageHeaderData {
//    static var PNG: [UInt8] = [0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A]
//    static var JPEG_SOI: [UInt8] = [0xFF, 0xD8]
//    static var JPEG_IF: [UInt8] = [0xFF]
//    static var GIF: [UInt8] = [0x47, 0x49, 0x46]
//}

// MARK: - Image format
private struct ImageHeaderData {
