image Crop

new module to crop images coming soon
go to www.j-strahan.com and click on the crop.lua link to check it out.
if everything checks out it should go on sale within 24 hours
[import]uid: 7911 topic_id: 21521 reply_id: 321521[/import]

awesome! [import]uid: 64174 topic_id: 21521 reply_id: 85161[/import]

heres a video of crop.lua in action
http://www.youtube.com/watch?v=oRJmYdVoKEA [import]uid: 7911 topic_id: 21521 reply_id: 85442[/import]

This looks FANTASTIC! [import]uid: 52491 topic_id: 21521 reply_id: 85477[/import]

thanks peach
just gotta take care of some contentScaling issues so it runs smooth across a range of devices and some code cleanup then it’s ready for release [import]uid: 7911 topic_id: 21521 reply_id: 85544[/import]

ok new code done, better crop box control, & content scaling issue taken care of ( i think ) just got to run more test to make sure then do some on device testing. video coming later [import]uid: 7911 topic_id: 21521 reply_id: 86478[/import]

hey there is no option to buy crop.lua in your page.
? [import]uid: 64174 topic_id: 21521 reply_id: 90650[/import]

What’s the status of this? Need to crop an image dynamically and then save it that way. [import]uid: 90248 topic_id: 21521 reply_id: 96183[/import]

thanks for asking
I’ve been super busy at work lately and also trying to move so I haven’t been around much
as for as the crop code it works great as along as the content settings in the config file match or a multiple of the device it’s running on
ex. with content set to 320x480 it works great on all iPhones and iPod and soso on iPad and gets even worst on android with all the diff. screen res. they have but I am working on a solution just may take abit longer then I wanted it to [import]uid: 7911 topic_id: 21521 reply_id: 96215[/import]

OK. I think I found a work-around, but simulator not working exactly as iPad (skewed a little). I’m taking the image, rotating 180 and moving partly off-screen (-100,-100). Then saving the image. The part off the screen doesn’t get saved. Then loading the image and rotating back 180 and moving partly off screen and saving. I’m able to crop the actual image this way. [import]uid: 90248 topic_id: 21521 reply_id: 96216[/import]

I just tried a couple ways to crop, and the solutions I saw all had saving the image out, and loading it back in as a spritesheet to do the clipping, then finally re-saving it cropped…

After implementing, it took like 5 seconds per image to do all that. So I tried it with masking the image, and didn’t have any luck (at first).

Then I made a group, gave the group a mask, and put the image in the group. Then I passed display.save the group, and voila… The resulting image was cropped and saved correctly, in one shot.

Even better for my purpose, the resulting image wasn’t the size of the mask… It was the size of the occupied area in the mask – so if the mask was 300x300, and the image only peeked in the corner by 10 pixels each dimension, the resulting cropped image is only 10x10 pixels!!

It is fast. It crops and clips. I was shocked and amazed! Kudos CoronaLabs!! [import]uid: 79933 topic_id: 21521 reply_id: 128783[/import]

I just tried a couple ways to crop, and the solutions I saw all had saving the image out, and loading it back in as a spritesheet to do the clipping, then finally re-saving it cropped…

After implementing, it took like 5 seconds per image to do all that. So I tried it with masking the image, and didn’t have any luck (at first).

Then I made a group, gave the group a mask, and put the image in the group. Then I passed display.save the group, and voila… The resulting image was cropped and saved correctly, in one shot.

Even better for my purpose, the resulting image wasn’t the size of the mask… It was the size of the occupied area in the mask – so if the mask was 300x300, and the image only peeked in the corner by 10 pixels each dimension, the resulting cropped image is only 10x10 pixels!!

It is fast. It crops and clips. I was shocked and amazed! Kudos CoronaLabs!! [import]uid: 79933 topic_id: 21521 reply_id: 128783[/import]

Hi, is still working the crop.lua script? i dont see in your page

Thanks [import]uid: 108642 topic_id: 21521 reply_id: 139727[/import]

Hi, is still working the crop.lua script? i dont see in your page

Thanks [import]uid: 108642 topic_id: 21521 reply_id: 139727[/import]