Android saves tiny images

I’ve been using display.save to save on-screen images created by my devices camera. This works excellently on iOS devices, but on all Android devices with which I have tested, the images are being saved as minuscule versions, even when the image takes up the entire screen. Any ideas why this might be happening?

Just to clarify, on iOS devices (and the simulator) the pictures are saved in full resolution, no problems. However, on Android, the image saved is of the same dimensions as the original image, but instead of the full resolution photo, there is a tiny version of the photo on a white (.png) or black (.jpg) background. 

I’m still struggling to figure out what is causing this issue. Any help would be MUCH appreciated. 

[EDIT:] I’ve been informed that the white/black background is really a transparent background…

When I use the following set of code…:

[lua]local path = system.pathForFile(“recentphoto.png”, system.DocumentsDirectory)

local image1 = io.open(path, “r”)

local content = image1:read("*a")

local stringImage = mime.b64(content)[/lua]

I find that the image size (in number of characters) is far smaller on android devices. Might this indicate a difference in how mime.b64 works? or in how io.open/read works?

So is there any way to show full resolution images like IOS in android?

Can you post the save code?

Also:

Are you using content scaling?

What is the native resolution of a problem android device? (Looking for some real numbers to help determine what is happening)

Just to clarify, on iOS devices (and the simulator) the pictures are saved in full resolution, no problems. However, on Android, the image saved is of the same dimensions as the original image, but instead of the full resolution photo, there is a tiny version of the photo on a white (.png) or black (.jpg) background. 

I’m still struggling to figure out what is causing this issue. Any help would be MUCH appreciated. 

[EDIT:] I’ve been informed that the white/black background is really a transparent background…

When I use the following set of code…:

[lua]local path = system.pathForFile(“recentphoto.png”, system.DocumentsDirectory)

local image1 = io.open(path, “r”)

local content = image1:read("*a")

local stringImage = mime.b64(content)[/lua]

I find that the image size (in number of characters) is far smaller on android devices. Might this indicate a difference in how mime.b64 works? or in how io.open/read works?

So is there any way to show full resolution images like IOS in android?

Can you post the save code?

Also:

Are you using content scaling?

What is the native resolution of a problem android device? (Looking for some real numbers to help determine what is happening)