Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can read/render prograssive JPEG???

 
George Kalfas
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings to everybody!

I'm writing a midlet that at some point downloads an image from the web. The image is quite large and I'm wondering whether exists a library that can read and render progressive JPEG files. I've searched the net but I could not find an answer to that...

Thank you in advance!
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18225
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't be too surprised to hear that it's pretty much standard these days.

Try it and see.

I think that the "Java In a Nutshell" book from O'Reilly has some examples. Not J2ME, but with luck it'll be pretty much the same.
 
George Kalfas
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to answer this question for future reference, it seems that progressive jpegs are not yet supported.I've found many jpeg decoders but none claimed that it could render a progressive jpeg. I have tested many ways of displaying a progressive jpg but the picture just appeared all at once.

In order to test it yourself you must find a progressive picture that is smaller than your display, cause if it is larger the browser only gets the first (less detailed) layer anyway.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic