problem with the quality of the uploaded image

I have a problem that I don´t know how to solve.

In my app I open the photo library and choose a picture, that might even be from the Photo Stream which contains pictures taken with my digital camera.

This picture loads in a group and then I take a display.save of that and save it.

This picture is uploaded to my ftp server.

When I look at the uploaded picture it looks really blurry if I run the app in my iPhone4.
If I run it in my iPad it looks as the original, really good.

Here is the code I use:

Config.lua:

application =  
{  
 content =  
 {  
 width = 320,  
 height = 480,  
 scale = "letterbox" -- zoom to screen dimensions (may add extra space at top or sides)  
 },  
}  

And here is the code in main.lua:

function onLoadComplete(event)  
 if event.target then  
 local photo=event.target  
 local dw=display.contentWidth  
 local dh=display.contentHeight  
 local requiredScaleX=dw/event.target.contentWidth  
 local requiredScaleY=dh/event.target.contentHeight  
 local requiredScale=math.max(requiredScaleX, requiredScaleY)  
 photo:scale(requiredScale, requiredScale)  
 photo.x=dw/2  
 photo.y=dh/2  
 display.save(photo, "myimage.png", system.DocumentsDirectory)  
 end  
  
local function selectpic(event)   
 media.show( media.PhotoLibrary, onLoadComplete )  
 return true  
end  

Anyone??

Maholm
[import]uid: 5717 topic_id: 17567 reply_id: 317567[/import]

I bump this, still got the same problem.

Maholm [import]uid: 5717 topic_id: 17567 reply_id: 68620[/import]