mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Set default slide size to 1000x1000 pixels #1948
This commit is contained in:
parent
4a08c67f67
commit
fab9038e74
1 changed files with 2 additions and 2 deletions
|
|
@ -6,8 +6,8 @@ var getPSImageSize = function(el) {
|
|||
if (!size[0] || !size[1]) {
|
||||
var test = new Image();
|
||||
test.src = el.src;
|
||||
size[0] = test.naturalWidth ? test.naturalWidth : (test.width ? test.width : 0);
|
||||
size[1] = test.naturalHeight ? test.naturalHeight : (test.height ? test.height : 0);
|
||||
size[0] = test.naturalWidth ? test.naturalWidth : (test.width ? test.width : 1000);
|
||||
size[1] = test.naturalHeight ? test.naturalHeight : (test.height ? test.height : 1000);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue