Camera Roll Bug? [closed]
Posted on Sun, 2011-06-12 13:04
Hi Coronas,
I am not sure, whether this is really a bug or a bit of quirkiness in my head today...
When loading an image from the camera-roll, the with is reduced to 1024 px. That is ok, I understand this as a "feature" of iOS and the iPhone 4. But try this example with the image below. The image will be cropped to the bottom right quarter, and will be saved in 1/4th of the original size.
I talked about this issue here: http://developer.anscamobile.com/forum/2011/06/12/image-camera-roll-physcis#comment-40428

1 2 3 4 5 6 7 8 9 10 11 12 13 | function onComplete2 ( event ) if (event.target ~= nil) then -- this will save only 1/4th of the original image (the bottom right quarter?) of the original image display.save(event.target,"temp.jpg", system.TemporaryDirectory ) local head = display.newImageRect("temp.jpg", system.TemporaryDirectory, 120, 120) head.x = 120 head.y = 120 print (event.target.width) print (head.width) end end media.show( media.Camera, onComplete2 ) |
Please tell me, it's a bug, not my coding skills...
Thanks!
-- Jörg
Edit: using Mac OS X 10.6.7, Corona 2011.535
Edit 2: updated to Corona 2011.537 - see the above discussion for the solution (!?)