Image Cropper
- makes use of ImageConvertor and PorterDuff extensions
- provides for cropping an image with three hold and drag options: a circle, a rectangle, a freeform shape, or a point and click option: freeform line shape
- output can be the original size of image (with all the transparent space) - Crop, or to crop to the size of the cropped area - DCrop
- outputs a cropmask.png and a croppedimage.png to the ASD, these are overwritten with successive crops
- in operation the image to be cropped is set to a vertical arrangement background, then the cropping area is drawn on a transparent canvas in that vertical arrangement. There is plenty of fetching image dimensions, resizing, cropping, and transforming going on to acheive the crop.
- the canvas is set to be 4 pixels larger than the vertical arrangement on all four sides, this may slightly impact on cropping accuracy, so adjust accordingly.
- it is possible to change the colour of the cropping area - two options dark and light
- if you want to be able to make crop masks, then use a simple black image for the background
- small images (in pixels) are likely to generate jagged edges
VIDEO
BLOCKS (593!)
AIA
irrCrop.aia (40.5 KB)