aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/apis/google_docs/GooglePhotosClientUtils.ts2
-rw-r--r--src/client/views/MainView.tsx2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/client/apis/google_docs/GooglePhotosClientUtils.ts b/src/client/apis/google_docs/GooglePhotosClientUtils.ts
index 0864ebdb1..b95cc98c9 100644
--- a/src/client/apis/google_docs/GooglePhotosClientUtils.ts
+++ b/src/client/apis/google_docs/GooglePhotosClientUtils.ts
@@ -39,6 +39,8 @@ export namespace GooglePhotosClientUtils {
}
const image = document.createElement("img");
image.src = field.url.href;
+ image.width = 200;
+ image.height = 200;
const canvas = document.createElement("canvas");
canvas.width = image.width;
canvas.height = image.height;
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index f01083fbb..c1c95fc88 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -134,7 +134,7 @@ export class MainView extends React.Component {
let imgurl = "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/1200px-Cat03.jpg";
let image = Docs.Create.ImageDocument(imgurl, { width: 200, title: "an image of a cat" });
let parameters = { title: StrCast(image.title), MEDIA_BINARY_DATA: GooglePhotosClientUtils.toDataURL(Cast(image.data, ImageField)) };
- PostToServer(RouteStore.googlePhotosMediaUpload, parameters).then(console.log);
+ // PostToServer(RouteStore.googlePhotosMediaUpload, parameters).then(console.log);
reaction(() => {
let workspaces = CurrentUserUtils.UserDocument.workspaces;