Hi guys, I am making a photo slideshow app using SDL2 and OpenGL. It allows 
user to input their own text as title which the ASP.NET web server will 
generate a png file with the rendered text. The URL is something like 
*http://www.aaaa.com/title.ashx*. My Emscripten app will rename *title.ashx* 
to *title.png* after async download. *title.ashx* is the name of the 
generic handler that generates the png. This move requires me to specify 
the below in the makefile.

*-s SDL2_IMAGE_FORMATS='["png"]'*

My app has been displaying png without problems. I do not understand why I 
need to use a png emscripten port for SDL_Image now?

My webapp also allows user to upload their own photos which the server will 
convert into a jpg with dimension of power of 2. So I hit the same problem 
with jpg. AND there is no jpg port available?! My webapp has been 
displaying my own jpg with no problems. When I rename *photo.ashx* to 
*photo.jpg*, it cannot display. I want to use ashx to generate my image on 
the fly to avoid saving them in the HDD. I tested the generated photo.jpg. 
My webapp can display if it retrieve the image in a direct URL, so there is 
no problem with the image file.

Can anyone explain to me why I need png and jpg ports now while all along 
they have been displaying these 2 formats fine?

Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to