Hi guys,
I notice that if an image is in a displayGroup, display.save() will not work correctly. It will only display the default background color (which is yellow in this case).
Possible bug (bug report already submitted)
See sample code below.
Hope this helps someone which runs into the same problem.
local tmpPhoto = display.newImageRect( "testImageInResourceFolder.png" , 100, 100 ) tmpPhoto.x = display.contentCenterX tmpPhoto.y = display.contentCenterY tmpPhoto.alpha = 0.2 displayGroup:insert(tmpPhoto) local selectedImgFilename = "test2.jpg" local baseDir = system.TemporaryDirectory local options = { filename = selectedImgFilename, baseDir = baseDir, backgroundColor = {1,1,0}, isFullResolution = false, jpegQuality = 0.5, -- between 0 1 } display.save( tmpPhoto, options ) -- tmpPhoto:removeSelf() local tmpPhoto2 = display.newImage( selectedImgFilename, baseDir ) tmpPhoto2.x = display.contentCenterX tmpPhoto2.y = display.contentCenterY tmpPhoto2.alpha = 0.5