ExamplesFlexible Cropping Fixed-ratio Cropping Fixed-shape Cropping Command Line Thumbnail Creation Python
Croppola Documentation – Examples
Upload and Fixed-Ratio Cropping
The source code consists of three parts:
Copy all three parts into your own web page, and adapt it to your needs. Areas marked with "ADJUST THIS" are places where you want to make modifications. You can obviously make modifications in other places, too.
If you have any questions or feedback regarding the code, please contact us.
Image: (not available)
Choose another file ...
Crop: (not available)Use this crop
Example images (optional)
Example images are pre-loaded on the server and can be selected with a single click. They don't require any time-consuming uploading. You can send us up to 10 images for pre-loading on the server.
setLeft(40); setTop(40); setRight(40); setBottom(40); setWidth(200); setHeight(200);
setX0(60); setY0(60); setX1(520); setY1(230);
setAspectRatio(16.0 / 9.0); setAspectRatio(9.0 / 16.0); setCropSize(100000); setAspectRatioAndCropSize(2.0 / 1.0, 100000);
setAutomaticCrop('croppola', 16.0 / 10.0, 0.9);
alert(currentImage); alert(currentImage.cropMode); alert(currentImage.finalCrop.width);