Skip to content

Exception when trying to readBitmap() JPEG #2338

@lemkoleg

Description

@lemkoleg
 val l = localVfs(fullName).readAll()
 val file = l.openAsync().asVfsFile()
 Log.WriteLog("AAA", "Im here 1")
 val image = file.readBitmap()
 Log.WriteLog("AAA", "Im here 2")
 val image32 = image.toBMP32()
 Log.WriteLog("AAA", "Im here 3")
Im here 1
Exception java.lang.UnsupportedOperationException: No suitable image format : MAGIC: Ï ß(ffd8ffe1) ( Ï ß)
    	at korlibs.image.format.ImageFormats.readImageContainer(ImageFormats.kt:148)
    	at korlibs.image.format.ImageFormat.readImage(ImageFormat.kt:39)
    	at korlibs.image.format.ImageFormat.read(ImageFormat.kt:68)
    	at korlibs.image.format.ImageFormat.decode(ImageFormat.kt:83)
    	at korlibs.image.format.KorioExtKt._readBitmap(KorioExt.kt:112)
    	at korlibs.image.format.KorioExtKt._readBitmap$default(KorioExt.kt:94)
    	at korlibs.image.format.KorioExtKt.readBitmap(KorioExt.kt:24)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Waiting for response

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions