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

OLED imaged unknown image format, but working #475

Open
NoSloppy opened this issue Nov 1, 2022 · 5 comments
Open

OLED imaged unknown image format, but working #475

NoSloppy opened this issue Nov 1, 2022 · 5 comments

Comments

@NoSloppy
Copy link
Contributor

NoSloppy commented Nov 1, 2022

Looping stacked frame BMP displays fine, no error.
Single frame BMP displays fine, but 'Unknown image format. a=-1 b=-1'
Non-looped PBM also works but 'Unknown image format. a=-1 b=-1'
Seems they're just not read right and not matching a case in the TAG2 switch?
Looking at the PBM file, it does have a 'P4' magic number, yet the error gets reported.

For non-looped options, only PBM is working by using Imagemagick convert
Just doing cat *bmp > boot.bmp makes a file, but it doesn’t animate on OLED. Shows first frame only for duration.
Windows copy /b *bmp boot.bmp = Same results.

It would be great if a 3rd party command line image tool wasn't required to get these non-looping to work.
It's a bunch of hoops for the average user to get it installed with NetPBM.

@profezzorn
Copy link
Owner

Could you attach the files that have the problem(s)?

@NoSloppy
Copy link
Contributor Author

NoSloppy commented Nov 17, 2022

Single frame BMP displays fine, but 'Unknown image format. a=-1 b=-1 pos=576'

https://www.dropbox.com/s/x073dbds3fyeg3q/out.bmp?dl=1

Non-looped PBM also works but 'Unknown image format. a=-1 b=-1'
Seems they're just not read right and not matching a case in the TAG2 switch?
Looking at the PBM file, it does have a 'P4' magic number, yet the error gets reported.

https://www.dropbox.com/s/o92wfchcc3o2qhy/preon.pbm?dl=1

For non-looped options...........(attempting BMP. Again, PBM works fine on screen, although reports Unknown format))
Just doing cat *bmp > boot.bmp makes a file, but it doesn’t animate on OLED. Shows first frame only for duration.

Actually, today it's not showing anything, and also has Unknown image format. a=-1 b=-1 pos=62130
https://www.dropbox.com/s/24egu08nqlu6i3c/clsh.bmp?dl=1

@profezzorn
Copy link
Owner

I'm guessing that the "unknown image format" things just happen when it reads past the end of the file.
Might not be worth fixing, but I will take a look.

@profezzorn
Copy link
Owner

This is still an issue, right?
(If so, I should take a look at it before 7.x comes out of beta.)

@NoSloppy
Copy link
Contributor Author

It is. It does it, and to my best recollection, I couldn't narrow it down to the file format, or processing steps, or any traceable attribute.
I'm up for trying any tests to help.

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

2 participants