Can we get progressive JPG support?

Monkey Targets Forums/Desktop/Can we get progressive JPG support?

anawiki(Posted 2013) [#1]
Hi Mark,
Can we get progressive JPG support? It's so frustrating when you switch targets from hmtl5 to glwf just to find out that you can't test your app because of unsupported JPG format. Since BlitzMax supports it it shouldn't be that hard to add to Monkey, should it?

Thanks!
Roman


therevills(Posted 2013) [#2]
Hey Roman, just a quick question: what are you using the GLFW target for?


rIKmAN(Posted 2013) [#3]
Use .png for now?


anawiki(Posted 2013) [#4]
@therevills: Sometimes GLFW is just too slow and makes debugging harder.

@rlKmAN: I know I can use png or even non-progressive JPG, but once you're game is almost done and your main task is to test it and check for bugs you don't want to mess with images. And because some resources are taken directly from desktop version, you don't want to change them to avoid compressing jpg to jpg.


therevills(Posted 2013) [#5]
@therevills: Sometimes GLFW is just too slow and makes debugging harder.

Did you mean HTML5?

I've just had a quick look at the c++ code for loading images and it looks like it uses "stbi_load_from_file"... which is method in the stb_image.c public domain JPEG/PND reader (targets\glfw\template\stb\stb_image.c) and that doesnt support progressive JPEGs.

And Monkey uses 1.29 (2010-08-16) and the latest is 1.33 (2011-07-14).


anawiki(Posted 2013) [#6]
Yes, I meant HTML5.

Do you mean that even the latest version of STB doesn't support progressive jpg? Too bad that adding support for it ain't as easy as I thought.