Skip to content

Commit f87e5f7

Browse files
author
Chad Hart
committed
added square ration (1:1) option to full scan
1 parent dc80d41 commit f87e5f7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

js/resolutionScan.js

+11
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ function createAllResolutions(minHeight, maxHeight){
389389
"ratio": "16:9"
390390
};
391391
resolutions.push(res);
392+
392393
//SD
393394
res = {
394395
"label": (y * ratioSD).toFixed() + "x" + y,
@@ -397,6 +398,16 @@ function createAllResolutions(minHeight, maxHeight){
397398
"ratio": "4:3"
398399
};
399400
resolutions.push(res);
401+
402+
//square
403+
res = {
404+
"label": y + "x" + y,
405+
"width" : y,
406+
"height": y,
407+
"ratio": "1:1"
408+
};
409+
resolutions.push(res);
410+
400411
}
401412
console.log("resolutions length: " + resolutions.length);
402413
return resolutions;

0 commit comments

Comments
 (0)