Search code examples
androidluacoronasdk

Picture cropped when using display.save to store a photo with Corona SDK


I'm working on a small project to take pictures with Android devices, and then sending these files to a web server. The pictures are being taken without problems, but the "display.save" section is cropping the file to the size of the screen.

local function FotoTomada(event)
  if (event.completed == true) then
    display.save( event.target, "foto.jpg", {isFullResolution=true})
    SubirFoto()
  end
end

If my cell phone has a screen resolution of 480x500, that's the resolution the picture saved to a file is getting. Does anyone know of any workaround for this? Thanks in advance!


Solution

  • You can provid the destination in media.capturePhoto( { listener, [, destination] } ) see CoronaDocs