Trying to save a 512x256 image out with some text over the top. Reproducible on ios device and simulator.
I create a group, with an image and some text centered. I save that group using display.save and on the iPhone it works fine, and on iPad air (1536x2048) the text does not get saved.
Saved image on iPhone 4/5/6
Saved image on iPadAir
The group however looks fine on the device/simulator screen, you can see where the text /should/ be.
This is using font “Walibi” but I have even tried native.systemFontBold and the same thing happens.
[lua]
local group = display.newGroup()
local snapshot = display.newImage(“assets/twitter_bg01.png”)
– scale would be virtual width / actual width of device
snapshot.width = 512 * (display.contentScaleX)
snapshot.height = 256 * (display.contentScaleY)
snapshot.x = 0
snapshot.y = 0
snapshot.anchorX = 0
snapshot.anchorY = 0
group:insert(snapshot)
local fontSize = 36 * display.contentScaleX
local tx = 256 * display.contentScaleX
local ty = 24 * display.contentScaleY
local shadowText = display.newText( group, theText, tx + 5, ty + 10, native.systemFontBold, fontSize )
shadowText:setFillColor(0,0,0,0.3)
group:insert(shadowText)
local levelText = display.newText( group, theText, tx, ty, native.systemFontBold, fontSize )–Walibi0615
levelText:setFillColor(255/255, 162/255, 39/255, 1)
group.anchorX = 0
group.anchorY = 0
group.width = 512 * (display.contentScaleX)
group.height = 256 * (display.contentScaleY)
display.save(group, {filename=“twitter.png”, isFullResolution=true, baseDir=system.DocumentsDirectory})
[/lua]
Any ideas? I’m using Corona Build: Version 2014.2511 (2014.11.18) (Looks like an old version but it is the latest up to date public release).
Edit: I just tried it in the latest daily build Version 2015.2644 (2015.5.21) and the problem is still there.