image crop

I was updating from the dailybuild 732 to the most recent one. Now i have two problems.

Changing the width and height of an image does not crop it anymore but it is scaling the image.
How do i crop an image now?

second: When i create a sprite with only one frame (so it is just an image) it is deformed (scaled differently in the x and y direction) and there are strange artifacts around it.

Any ideas or help would be nice :slight_smile: [import]uid: 102950 topic_id: 22895 reply_id: 322895[/import]

The second problem is caused by an image(s) which dimension is not exactly 2^x (e.g. 512x256)
In the previous versions, this was not a problem. It seems that it is stricter now.

Which is sad, since i need to increase all the file sizes…

Any ideas to the trim/crop issue?
[import]uid: 102950 topic_id: 22895 reply_id: 91444[/import]

Corona doesn’t support cropping in their API (unless you mean masking) but there’s a library shared today just for that -

http://developer.anscamobile.com/code/useful-crop-library

Hope this helps,

Shahar [import]uid: 13553 topic_id: 22895 reply_id: 91451[/import]

Thanks, i will take a look at it.

Just strange since cropping was possible just by reducing the image.height/width value in build 732 [import]uid: 102950 topic_id: 22895 reply_id: 91452[/import]

– edit: switched to other topic [import]uid: 102950 topic_id: 22895 reply_id: 91468[/import]