Problem with image odd dimensions

I’m back, Rob.
I tried using display.captureScreen(true) to save the image, but it didn’t save the image to device, so I had to take another device to take a photo from the screen. The photo is not that good, but, sincerely, it has changed the quality of the blurry eyes, can you believe? haha
The link to download a .rar with the images is below. The “bad” image is not clearly visible, but I guess you can see the imperfections around the circle compared to the “good” image. On device, it’s worse. :confused: I have another app developed with the same face and it’s not blurry! I made it as a gift for my girlfriend and the spritesheet is in pretty good quality!
http://www.dropbox.com/s/64digyfbullnhap/eyes.rar?m [import]uid: 162818 topic_id: 36266 reply_id: 144912[/import]

If you’re on an iPhone you can press the top power button and the home button at the same time to take a screen shot, or you can do it from Xcode organizer. If you’re on Android, then you need to teather your device to your computer and use the ddms command (comes with the Android Debug Bridge tools) to capture a screen shot
[import]uid: 199310 topic_id: 36266 reply_id: 144934[/import]

Hi again, Rob. Finally, I took a good screenshot from the device.
I took the screenshot of another image with the same problem of the eyes. I hope you can help me to solve that issue.

Here is the link to the image:
https://www.dropbox.com/s/uxy3du1ddtv414o/blurred.rar

Thanks. [import]uid: 162818 topic_id: 36266 reply_id: 145576[/import]

Can you post the image? I don’t have a way to unpack rar files. [import]uid: 199310 topic_id: 36266 reply_id: 145589[/import]

http://imageshack.us/photo/my-images/21/ondevice1.png/
http://imageshack.us/photo/my-images/826/onsimulator1.png/
http://imageshack.us/photo/my-images/201/ondevice2.png/
http://imageshack.us/photo/my-images/266/onsimulator2.png/ [import]uid: 162818 topic_id: 36266 reply_id: 145599[/import]


[import]uid: 162818 topic_id: 36266 reply_id: 145598[/import]

Can you post your config.lua and what device are you trying to show it on?

Also post your code where you’re creating the image (display.newImage call) and any related code around it.

Don’t forget to put it inside of <code> and </code> tags.
[import]uid: 199310 topic_id: 36266 reply_id: 145604[/import]

I’m using LG Optimus L5.

config.lua
[lua]
width = 320,
height = 480,
scale = “letterBox”,
fps = 30,
[/lua]

Code for the black guy(the guy I cut to show you is part of a sheet with 300x200 frame):
[lua]
local guySheetData = {width = 300, height = 200, numFrames = 49, sheetContentWidth = 1200, sheetContentHeight = 2600};
local guySheet = graphics.newImageSheet(“guySheet.png”, guySheetData);
local guySequenceData = {
{ name = “idle”, start = 1, count = 26, time = 2500, loopCount = 1 },
{ name = “running”, start = 27, count = 19, time = 2200, loopCount = 1 }
}
local guy = display.newSprite(guySheet, guySequenceData);
[/lua]

Code for the face with the eye:
[lua]
local faceSheetData = {width = 450, height = 316, numFrames = 9, sheetContentWidth = 450*6, sheetContentHeight = 316*2};
local faceSheet = graphics.newImageSheet(“face.png”, faceSheetData);
local faceSequenceData = {
{ name = “animate”, start = 1, count = 3, time = 500, loopCount = 1},
}
local face = display.newSprite(faceSheet, faceSequenceData);
[/lua] [import]uid: 162818 topic_id: 36266 reply_id: 145608[/import]

Hi @WilerJr,
Can you correct the “numFrames” value in each sheet and see what happens?

In case 1, you have it as “49”. It should be 52.
width = 300, sheet = 1200… 4 frames across
height = 200, sheet = 2600… 13 frames down
4 x 13 = 52

In case 2, you have it as “9”. It should be 12.
width = 450, sheet = 2700… 6 frames across
height = 316, sheet = 632… 2 frames down
6 x 2 = 12

Try this and see if anything changes.
Brent [import]uid: 200026 topic_id: 36266 reply_id: 145613[/import]

That thing of counting frames instead of typing the first and the last confuses me.
I’ll try what you said, Brent. As soon as I can, I come back here. [import]uid: 162818 topic_id: 36266 reply_id: 145641[/import]

The frames of the first spritesheet are set to 49 because It has 52 frames, but I use only 49 and there are three empty frames. I use 9 of de 12 frames of the second spritesheet. But, as you have told, I’ve set to 52 frames the first sheet and 12, the second, but nothing happened. It keeps a deep blur…

I use frames with alpha = 0 which has the dimensions of each frame behind the images, but I guess it cannot be the problem, because as I said posts above, I’ve already used the eyes in another project and it was not a blurry image… [import]uid: 162818 topic_id: 36266 reply_id: 145707[/import]