1
GLBasic - en / Re: Loadsprite load failures
« on: Yesterday at 09:42 pm »
No problems.
TBH greyscale JPG's are not really common as people tend to use png/gif for images that have a palette of 256 colours or less as using a lossy compression like jpg on such images is not ideal.
How are you getting the images from the web (please excuse my ignorance on this matter but have never done any web related stuff in a programming sense other than HTML & some basic actionscript). I only ask as the jpg file header should be pretty standard & you should be able to read that to determine what type of jpg it is, if it's a greyscale one then skip loading it.
I know the above would work on a non web device as you just do an openfile & read what you need, but like I said I have zero experience on the web commands & if that's possible.
Lee
TBH greyscale JPG's are not really common as people tend to use png/gif for images that have a palette of 256 colours or less as using a lossy compression like jpg on such images is not ideal.
How are you getting the images from the web (please excuse my ignorance on this matter but have never done any web related stuff in a programming sense other than HTML & some basic actionscript). I only ask as the jpg file header should be pretty standard & you should be able to read that to determine what type of jpg it is, if it's a greyscale one then skip loading it.
I know the above would work on a non web device as you just do an openfile & read what you need, but like I said I have zero experience on the web commands & if that's possible.
Lee


, the two are linked I believe but my memory is a bit hazy on what order they came in as not a M$ follower like I used to be. 


.