Protected
Crops to a 3:1 ratio and positions the image.
The file path of the HTML file.
The image path.
The vertical position of the crop (0-100%). 0% is the top of the image, 100% is the bottom.
Error - The file path does not exist
TypeError - The supplied image is null.
TypeError - The position value is not a number.
RangeError - The position value is outside the range 0-100.
RangeError - The image has no 'src' or 'alt' attribute(s).
Analyse the HTML file and crop images.
Error - The file path does not exist.
Error - No content found in file.
Error - Failed to create DOM from content.
Find and crop images in HTML files
Crops to a 3:1 ratio and positions the image.