Hi,
With reference to media.selectPhoto
https://docs.coronalabs.com/api/library/media/selectPhoto.html
You can see an example at the bottom of the page at the link, they select a photo and that photo is saved to the syste.TemporaryDirecty…
I am looking at this line;
destination = { baseDir=system.TemporaryDirectory, filename=“image.jpg”, type=“image” }
So it looks like it is being saved as a JPG, but they could have chosen any image file - right?
They could have chosen a PNG for example.
So…
A. Is Corona using the filename extension to set the format the file will be saved in? i.e. would Corona be doing a conversion from PNG to JPG in this instance, if the user selected a PNG?
B. Or is the filename irrelevant… in which case, how do I determine the file format of the saved file?
Hope this makes sense.
I guess I have the same question with regards to the camera capture function (are there cameras that caputre in a format other than JPG?? i don’t know)
Many thanks.