-
Notifications
You must be signed in to change notification settings - Fork 15
Integration Guide
Building piceditor into your existing site
If you have an existing site with photos, you can use piceditor to give your users an easy way to edit their photos.
Integration Tasks:
- Remove unwanted components
- Apply your own style
- Import and export images
You will likely want to remove the following piceditor components:
- User accounts
- Payment
- Session storage
- Bridges
- Collage and Fancy Collage (optional)
See the [Styling Guide](Styling Guide) for more information
Getting images into piceditor should be relatively simple. Pass the import url to piceditor as one of the flash parameters. Look for this and load it by piceditor. Note that you may need a crossdomain.xml file if you use different domains for your site, photo storage, and/or the piceditor swf.
Exporting completed images from piceditor is easiest to do by modifying the current save flow. This code compresses your image as a JPG and then uses FileReference to save locally. Replace the FileReference with a post to your server.