Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:26 27 Nov 2024 Privacy Policy
Jump to

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 Kingdom
Posts: 4041
Posted: 03:33pm 19 Nov 2023
Copy link to clipboard 
Print this post

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: Germany
Posts: 1113
Posted: 04:35pm 19 Nov 2023
Copy link to clipboard 
Print this post

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: Australia
Posts: 2135
Posted: 08:54pm 19 Nov 2023
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 9122
Posted: 09:15pm 19 Nov 2023
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 4041
Posted: 10:22am 20 Nov 2023
Copy link to clipboard 
Print this post

  matherp said  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.


Thank you Peter, hopefully I'll have a chance to try RC20 out this evening.

  matherp said  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.


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


To reply to this topic, you need to log in.

© JAQ Software 2024