Any new bugs found in Morph PhotoLite will no longer be fixed.
Announcement March 14, 2009 GMT +8
We have discovered a bug that caused problems when uploading an image, on some web browsers the image upload did not start at all.
We are pleased to announce that this bug has been fixed.
Put Morph PhotoLite On Your Website
Let your visitors edit their pictures without ever leaving your site, put Morph PhotoLite on your website now! NO SIGN-UP required.
Click on the "get HTML code" button below then copy and paste the html code into your web page
Before you use Morph PhotoLite or put Morph PhotoLite on your website please read the
Morph PhotoLite Terms of Use
Agreement
By using Morph PhotoLite or putting Morph PhotoLite on your website, you agree to the following terms and conditions, If you cannot or will not agree to the terms and conditions set forth within this document, do not use Morph PhotoLite or put Morph PhotoLite on your website.
Permission
This software is made available to you for free, either for the purpose of editing images or to be placed on your website to allow your visitors to edit their images. You are allowed to place ads on the page where you put Morph PhotoLite.
Restrictions
You may not remove or change in anyway the contents of Morph PhotoLite that is made available to you on your website, unless such a means is explicitly provided to you by Morph Solutions, Inc.
Advertising
Morph Solutions, Inc. reserves the right to place ads within the Morph PhotoLite display area.
Disclaimer
Morph Solutions, Inc. specifically disclaim any and all warranties, either express or implied. Although we have gone through great lengths to ensure that Morph PhotoLite runs properly and safely on all platforms and situations, Morph Solutions, Inc. shall not be liable for damages that may arise from the use of Morph PhotoLite.
Changes
Morph Solutions, Inc. reserves the right, at its discretion, to modify this Agreement at any time.
IMPORTANT : DO NOT put more than one instance of Morph PhotoLite into a single page, doing so will cause errors in your web page
Get HTML Code
HTML Code
copy and paste this html code into your web page where you want Morph PhotoLite to be available IMPORTANT : DO NOT put more than one instance of Morph PhotoLite into a single page, doing so will cause errors in your web page
HTML Code Properties
Use Initial Image the initial image is loaded immediately after Morph PhotoLite finishes loading
Initial Image URL
Morph PhotoLite opens the image at this URL immediately after Morph PhotoLite has finished loading example : http://www.mysite.com/image.jpg may also contain any server side scripts that your server supports PHP example : <?php echo "http://www.mysite.com/".$_GET["IMG_NAME"]; ?>
supported image formats include : png, jpg and mrp (Morph Image Format)
Allow Direct Upload if checked users will have the option to upload images directly to your website image data will be sent through a regular POST variable named "IMGDATA" along with the post variables added using the morphphotolite_addUploadPost(name,value) JavaScript Control Function
IMPORTANT : the image data is base64 encoded, you have to decode it first to get the actual image data PHP example : <?php $imgdata=base64_decode($_POST[IMGDATA]);?>
Upload Image Format
the image will be uploaded in this format
Upload URL
example : http://www.mysite.com/upload.php the image data will be sent to this URL as a regular POST variable named "IMGDATA" along with the post variables added using the morphphotolite_addUploadPost(name,value) JavaScript Control Function
this URL should return an empty string if the upload was successful or a string containing the error message if the upload failed, this error message will be displayed in a javascript alert IMPORTANT : upload url must be in the same domain as the html page where you put Morph PhotoLite
Upload Website Name
name of the site where the image will be uploaded, so users will know where the image is going to be uploaded
TIPS :
when saving in mrp format all of the layers' data can be faithfully reproduced when re-opened, unlike saving in png or jpg.
You can get a flattened preview of an mrp image file using any script or programming language by loading it as if it were an ordinary png file, useful for creating thumbnails
JavaScript Control
A set of javascript functions will be available within your HTML page.
morphphotolite_addUploadPost(name,value) : adds an additional post variable, to be sent with the image data when user uploads an image, if a variable with the given name already exists, it replaces the value of the existing variable. You cannot use a variable named "IMGDATA" since this variable name is being used to hold the image data.
Parameters
name - a string that contains the name of the post variable
value - a string that is the value of the post variable
morphphotolite_clearUploadPost() : clears all the added post variables
Events
Useful for execution of some javascript code when certain events occur. The html code for Morph PhotoLite (the code that you get from this page) contains a set of predefined - empty functions, you should place the javascript code for a particular event in the appropriate function
morphphotolite_onLoad() : called when Morph PhotoLite finishes loading
called when any of the following happens :
Default image is not used and Morph PhotoLite applet finishes loading
Default image is being used and the default image has finished loading
Default image is being used then fails to load, and user chooses not to retry loading the image
morphphotolite_onUploadStart() : called when Morph PhotoLite begins the image upload
morphphotolite_onUploaded() : called when the image upload completes