New in 5.2: a standalone aspectRatio validator (independent from the image editor).
Accepts '16:9', [16,9], a decimal ratio, or a function
(w,h) => boolean | string. Tolerance defaults to 1% and is tunable with
aspectRatioTolerance.
This demo accepts only 16:9 images (within 1% tolerance).
AjaxUploader.create('#uploader', {
uploadUrl: '/ajaxupload.axd/upload',
accept: 'image/*',
aspectRatio: '16:9', // also: [16,9], 1.7777, (w,h) => ...
aspectRatioTolerance: 0.01 // 1% default
});