

When you click on that button that says, Image Options, you will be presented with an array of options on the far right side of the document. It can be found on the far right upper corner of the document just before the button that says Replace Image. One of the options available here is Image Options. If you look at the top of your document, just under the toolbar that has: File, Edit, View, and so on, you will see another one with a host of options allowing you to manipulate elements within the document. The image will be uploaded onto the document. If you already have the image on your hard drive, then simply click on Upload from Computer.Īll you have to do here is find the image you want to upload, click on it and then click Open.

This is to illustrate how versatile this tool is in general. You have a wide variety of options such as Upload from Computer, Search the Web, and so on. This action will introduce you to another drop-down menu that offers you options from where you can fetch the original image you want to insert into the document and manipulate. Since our focus today is on resizing images on Google Docs, simply click on the Image option, which should be first on the list. That will give you a drop-down menu that allows you to insert a host of features into the document, including images, charts, drawings, and so on. There is a toolbar at the top of the document with buttons such as File, Edit, View, Insert, etc.Ĭlick on the Insert button. When it comes to loading the image you want to manipulate to a Google Doc, the process is almost identical to Microsoft Word. The thing to do is to insert the image as blob (as usual), and THEN get its dimensions, within the doc to calculate the ratio, and FINALLY set its dimensions.ĮDIT : this is an updated version of the above code, to also fix the height of the picture.The beauty of Google Docs is that it is quite similar to Microsoft Word, which means that if you already know how to use Word, you won't have difficulty learning how to use Google Docs. Quite exact code : var inlineI = GDoc.appendImage(img) I've found a working solution in this frightening post (I am a newbie): I've tried the solution you gave, but no success, I always get a bizarre image ratio.
