Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JPEG not working properly #161

Open
AppWerft opened this issue Apr 23, 2019 · 0 comments
Open

JPEG not working properly #161

AppWerft opened this issue Apr 23, 2019 · 0 comments

Comments

@AppWerft
Copy link

I'm working with this code:

mp3file = new Mp3File(inputFile.getNativeFile());
    if (mp3file.hasId3v2Tag()) {
	ID3v2 tag = mp3file.getId3v2Tag();
	byte[] imageblob = tag.getAlbumImage();
	bitmap = BitmapFactory.decodeByteArray(imageblob, 0, imageblob.length);
}

PNG works fine, but with JPEG IS see sometimes a fuzzy image and this text on log:

[DEBUG] :  skia: libjpeg error 116 <Corrupt JPEG data: 19 extraneous bytes before marker 0xdb> from output_message
[DEBUG] :  skia: libjpeg error 105 <  Ss=0, Se=63, Ah=0, Al=0> from Incomplete image data

This code is part of the Axway's Titanium module for using your awesome library with Javascript. Here the project repo: https://github.com/AppWerft/Ti.Mp3agic/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant