Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : PicoMite: Bug in LOAD JPG or "user incompetence" ?
Author | Message | ||||
thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 4041 |
I'm trying to show a JPG on the PicoMite: Cls Load Jpg "splash.jpg splash.zip And the result is even less satisfactory than the photo : ??? Best wishes, Tom Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Martin H. Guru Joined: 04/06/2022 Location: GermanyPosts: 1113 |
same result, even if I copied it to a 320x240 Picture ... As long as it is jpg, picture looks terrible, but BMP works as expected Edited 2023-11-20 02:46 by Martin H. 'no comment |
||||
phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2135 |
Results vary depending on the image editor. Got best result with IrfanView but still a narrow strip moved from RHS to LHS. It seems there are different ways to encode a JPG but this decoder can't cope with them all. A work-around would be to first reverse-butcher the image so the decoder restores it. ;) Or use Blit to rearrange it. Edited 2023-11-20 06:56 by phil99 |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9122 |
There is a bug I introduced in the jpg decoder when I got rid of a bunch of compilation warnings. In addition, sorting this led me to another day 1 bug when the image isn't either bigger than the screen or an exact multiple of 8 or 16 pixels wide. Finally, the splash image is crap with varying pixel levels in the flat colour areas which result in a spotty image - that one isn't my fault. My bugs will be fixed in RC20 when posted. |
||||
thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 4041 |
Thank you Peter, hopefully I'll have a chance to try RC20 out this evening. Thanks for pointing this out. Assuming it was "good" when initially generated as a BMP on a CMM2 it is probably the result of having been through too many image transformations as I tried to find a .jpg that worked. I'll start again from scratch. Best wishes, Tom Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Print this page |