About the image skewed bug, now I figured out how to reproduce it. It only happens for resized image (Jon, this is the function you showed me earlier, probably your problem is related to this too?)
So if an image is resized by this function
local function picResizeCrop(photo, endWidth, endHeight) local tempGroup = display.newGroup() local tmpBg = display.newRect(leftX, topY, trueW, trueH) tmpBg.anchorX = 0 tmpBg.anchorY = 0 tmpBg.x = leftX tmpBg.y = topY tmpBg:setFillColor(1, 1, 1) tempGroup:insert(tmpBg) photo.x = display.contentCenterX photo.y = display.contentCenterY tempGroup:insert(photo) -- Find the bigger scale out of widht or height so it will fill in the crop local scale = math.max(endWidth / photo.width, endHeight / photo.height) photo:scale(scale, scale) -- This object will be used as screen capture boundaries object local cropArea = display.newRect(display.contentCenterX, display.contentCenterY, endWidth, endHeight) cropArea.x = display.contentCenterX cropArea.y = display.contentCenterY cropArea.alpha = 0.0 tempGroup:insert(cropArea) -- Now capture the crop area which the user image will be underneith local myCaptureImage = display.captureBounds(cropArea.contentBounds) display.getCurrentStage():insert(photo) tempGroup:removeSelf() tempGroup = nil return myCaptureImage end
The images show correctly after calling this function but if I press HOME key and re-enter the app again, the images are corrupted.
I have filed a bug report, #28502. Hope this can gets fixed soon or it’s utterly weird for users to experience this.
Thanks.