Skip to content

SunZhiC/DetectImageType

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DetectImageType

detect image type from image data

example

let namesArray = ["dogdog_png.png",
    "dogdog_jpg.jpg",
    "dogdog_bmp.bmp",
    "dogdog_webp.webp",
    "smell.gif", ]
    
for name in namesArray {
    if let data = dataWithName(name) {
    let type = Data.detectImageType(with: data)
    print("image name = \(name), type = \(type)")
    }
}    

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages