Jump to content
GreenSock

KrisK

Saving and reloading cropBox settings

Moderator Tag

Recommended Posts

Hi,

 

I have a problem: I'm working on a photo collage creator. User uploads photos, scale, crop and rotate them and publish jpg. I've added option to save and load project. It works great with scaling, etc., but not with cropping. I've tried everything, and I have no idea how to save and reload info about how image was cropped correctly. I've tried redrawing crop.transform.matrix, but it's rather hard and cause a lot of bugs.

Maybe there is any easier way to do so. Please help!

 

Best regards,

Kris

Link to comment
Share on other sites

Did you call the Crop's update() method after you changed its transform.matrix?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×