Screenshots - only iphone 6+ problem!

I am using this code to make screenshots from simulator for all devices (Android, iOS) and it works fine.

But the dimensions for Apple dashboard for iOS is not accepted (1080x1920).

I tried custom 2208 x 1242 on Windows but seems the simulator can’t show this.

So, please Corona Labs, give us the 2208x1242 resolution!

function screenshot() --I set the filename to be "widthxheight\_time.png" --e.g. "1920x1080\_20140923151732.png" local date = os.date( "\*t" ) local timeStamp = table.concat({date.year .. date.month .. date.day .. date.hour .. date.min .. date.sec}) local fname = display.pixelWidth.."x"..display.pixelHeight.."\_"..timeStamp..".png" --capture screen local capture = display.captureScreen(false) --make sure image is right in the center of the screen capture.x, capture.y = display.contentWidth \* 0.5, display.contentHeight \* 0.5 --save the image and then remove local function save() display.save( capture, { filename=fname, baseDir=system.DocumentsDirectory, isFullResolution=true } )     capture:removeSelf() capture = nil end timer.performWithDelay( 100, save, 1)       return true                end

Hi @ubj3d.android,

Do you have both a Mac and Windows machine for development? I assume so if you’re developing for iOS?

Brent

Yes, have a mac.

Just tried, set the custom resolution to 1242x2208, but the output image was 1242x2205 :frowning:

I did the resize in photoshop but would be nice to get the right resolution.

Hi @ubj3d.android,

Have you explored using QuickTime Player to generate app screenshots? Truthfully, I find this method to be superior to any previous method, especially compared to taking screen captures from the Simulator. Here’s a recent tutorial on the matter:

http://coronalabs.com/blog/2015/02/03/tutorial-generating-screenshots-and-app-previews/

Brent

Please understand, I am new, so I am not trying to be a pain, just trying to understand.

We are talking about 3 pixels.  No human eye could ever tell the difference.  Could you explain why those 3 pixels make a difference?  Plus I read you have to be careful about large picture sizes in android.

Thanks!

It is about the screenshots you have to upload to iTunes connect when you submit your app.

If the picture is not the right size, you are rejected.

AHHH!!  Ok!  Thanks for the explanation.

Just curious :slight_smile:

Hi @ubj3d.android,

Do you have both a Mac and Windows machine for development? I assume so if you’re developing for iOS?

Brent

Yes, have a mac.

Just tried, set the custom resolution to 1242x2208, but the output image was 1242x2205 :frowning:

I did the resize in photoshop but would be nice to get the right resolution.

Hi @ubj3d.android,

Have you explored using QuickTime Player to generate app screenshots? Truthfully, I find this method to be superior to any previous method, especially compared to taking screen captures from the Simulator. Here’s a recent tutorial on the matter:

http://coronalabs.com/blog/2015/02/03/tutorial-generating-screenshots-and-app-previews/

Brent

Please understand, I am new, so I am not trying to be a pain, just trying to understand.

We are talking about 3 pixels.  No human eye could ever tell the difference.  Could you explain why those 3 pixels make a difference?  Plus I read you have to be careful about large picture sizes in android.

Thanks!

It is about the screenshots you have to upload to iTunes connect when you submit your app.

If the picture is not the right size, you are rejected.

AHHH!!  Ok!  Thanks for the explanation.

Just curious :slight_smile: