{"id":1617,"date":"2020-11-27T13:00:32","date_gmt":"2020-11-27T04:00:32","guid":{"rendered":"https:\/\/google-apps-script.net\/instructions\/?p=1617"},"modified":"2022-04-12T17:53:09","modified_gmt":"2022-04-12T08:53:09","slug":"how-to-insert-images-into-spreadsheets-by-gas","status":"publish","type":"post","link":"https:\/\/for-dummies.net\/gas-noobs\/how-to-insert-images-into-spreadsheets-by-gas\/","title":{"rendered":"\u3010\u30b3\u30d4\u30da\u3067\u4f7f\u3048\u308b\u3011GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u753b\u50cf\u3092\u633f\u5165\u3057\u3066\u307f\u308b"},"content":{"rendered":"\n<h2>GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u753b\u50cf\u3092\u633f\u5165\u3057\u3066\u307f\u308b<\/h2>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u8cc7\u6599\u306a\u3069\u3092\u4f5c\u308b\u969b\u3001\u753b\u50cf\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u6a5f\u4f1a\u3082\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u624b\u52d5\u3067\u753b\u50cf\u3092\u633f\u5165\u3059\u308b\u4e00\u822c\u7684\u306a\u3084\u308a\u65b9\u306f<\/p>\n\n\n\n<div class=\"swell-block-step\" data-num-style=\"circle\">\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u753b\u50cf\u3092\u633f\u5165\u3057\u305f\u3044\u30bb\u30eb\u3092\u9078\u629e<\/div><div class=\"swell-block-step__body\">\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.27.03.png?resize=864%2C710&#038;ssl=1\" alt=\"\u753b\u50cf\u3092\u633f\u5165\u3057\u305f\u3044\u30bb\u30eb\u3092\u9078\u629e\" class=\"wp-image-2845\" width=\"864\" height=\"710\" srcset=\"https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.27.03.png?w=864&amp;ssl=1 864w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.27.03.png?resize=300%2C247&amp;ssl=1 300w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.27.03.png?resize=768%2C631&amp;ssl=1 768w\" sizes=\"(max-width: 864px) 100vw, 864px\" data-recalc-dims=\"1\" \/><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u4e0a\u90e8\u30e1\u30cb\u30e5\u30fc\u306e\u633f\u5165\u304b\u3089\u753b\u50cf\u3092\u9078\u629e<\/div><div class=\"swell-block-step__body\">\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.27.25.png?resize=864%2C710&#038;ssl=1\" alt=\"\u633f\u5165\u2192\u753b\u50cf\u3092\u9078\u629e\" class=\"wp-image-2846\" width=\"864\" height=\"710\" srcset=\"https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.27.25.png?w=864&amp;ssl=1 864w, https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.27.25.png?resize=300%2C247&amp;ssl=1 300w, https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.27.25.png?resize=768%2C631&amp;ssl=1 768w\" sizes=\"(max-width: 864px) 100vw, 864px\" data-recalc-dims=\"1\" \/><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u30bb\u30eb\u5185 \/ \u30bb\u30eb\u4e0a\u306b\u753b\u50cf\u3092\u633f\u5165\u3092\u9078\u629e<\/div><div class=\"swell-block-step__body\">\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.27.38.png?resize=864%2C710&#038;ssl=1\" alt=\"\u30bb\u30eb\u5185\/\u30bb\u30eb\u4e0a\u306b\u753b\u50cf\u3092\u633f\u5165\" class=\"wp-image-2847\" width=\"864\" height=\"710\" srcset=\"https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.27.38.png?w=864&amp;ssl=1 864w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.27.38.png?resize=300%2C247&amp;ssl=1 300w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.27.38.png?resize=768%2C631&amp;ssl=1 768w\" sizes=\"(max-width: 864px) 100vw, 864px\" data-recalc-dims=\"1\" \/><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u633f\u5165\u3059\u308b\u753b\u50cf\u3092\u9078\u629e<\/div><div class=\"swell-block-step__body\">\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.32.36.png?resize=1024%2C668&#038;ssl=1\" alt=\"\u633f\u5165\u753b\u50cf\u306e\u9078\u629e\" class=\"wp-image-2848\" width=\"1024\" height=\"668\" srcset=\"https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.32.36.png?resize=1024%2C668&amp;ssl=1 1024w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.32.36.png?resize=300%2C196&amp;ssl=1 300w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.32.36.png?resize=768%2C501&amp;ssl=1 768w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-09.32.36.png?w=1088&amp;ssl=1 1088w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" data-recalc-dims=\"1\" \/><\/figure>\n<\/div><\/div>\n<\/div>\n\n\n\n<p>\u3068\u3044\u3046\u5927\u5909\u9577\u3044\u30d7\u30ed\u30bb\u30b9\u304c\u3042\u3063\u3066\u3084\u3063\u3068\u753b\u50cf\u304c\u8cbc\u308a\u4ed8\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u300e<span class=\"swl-marker mark_orange\"><strong>\u30bb\u30eb\u5185\u306b\u753b\u50cf\u3092\u633f\u5165<\/strong><\/span>\u300f\u3067\u3042\u308c\u3070\u30bb\u30eb\u306e\u30b5\u30a4\u30ba\u3067\u5927\u304d\u3055\u304c\u8abf\u6574\u3055\u308c\u307e\u3059\u306e\u3067<span class=\"swl-marker mark_orange\"><strong>\u30b5\u30a4\u30ba\u3084\u4f4d\u7f6e\u8abf\u6574\u304c\u6bd4\u8f03\u7684\u5bb9\u6613<\/strong><\/span>\u3067\u3059\u304c\u3001\u300e<span class=\"swl-marker mark_green\"><strong>\u30bb\u30eb\u4e0a\u306b\u753b\u50cf\u3092\u633f\u5165<\/strong><\/span>\u300f\u306b\u3059\u308b\u3068\u30b5\u30a4\u30ba\u3084\u4f4d\u7f6e\u8abf\u6574\u304c\u5c11\u3057\u9762\u5012\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u4eca\u56de\u306finsertImage\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u3001<\/p>\n\n\n\n<div class=\"wp-block-group has-border -border01 is-style-big_icon_point\"><div class=\"wp-block-group__inner-container\">\n<ul><li>\u753b\u50cf\u306e\u633f\u5165<\/li><li>\u753b\u50cf\u306e\u4f4d\u7f6e\u8abf\u6574<\/li><li>\u753b\u50cf\u306e\u30ea\u30b5\u30a4\u30ba<\/li><\/ul>\n\n\n\n<p>\u306e\u4f5c\u696d\u3092\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u81ea\u52d5\u5316\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<\/div><\/div>\n\n\n\n<p>\u4eca\u56de\u7d39\u4ecb\u3059\u308b\u3084\u308a\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3059\u308b\u3068\u3001\u4f8b\u3048\u3070\u5efa\u8a2d\u4f1a\u793e\u306a\u3069\u3001<span class=\"swl-marker mark_orange\"><strong>\u5831\u544a\u66f8\u306e\u4f5c\u6210\u306a\u3069\u3067\u5927\u91cf\u306e\u753b\u50cf\u3092\u8cbc\u308a\u4ed8\u3051\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u696d\u52d9\u3082\u975e\u5e38\u306b\u52b9\u7387\u7684\u306b\u4f5c\u696d\u304c\u3067\u304d\u308b<\/strong><\/span>\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u753b\u50cf\u3092\u633f\u5165\u3059\u308b\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<div class=\"wp-block-group has-border -border01\"><div class=\"wp-block-group__inner-container\">\n<p>\u672c\u30da\u30fc\u30b8\u3067\u306f\u3001\u5192\u982d\u3067\u8a71\u3057\u305f\u3068\u304a\u308a\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u753b\u50cf\u3092\u633f\u5165\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"is-style-num_circle -list-under-dashed\"><li><span style=\"background-color: var(--color_content_bg); color: var(--color_text); font-family: var(--swl-font_family); font-size: var(--swl-fz--content,16px); font-weight: var(--swl-font_weight);\"><\/span><a href=\"#insertImage(url, column, row)\" data-type=\"internal\" data-id=\"#insertImage(url, column, row)\" target=\"_blank\" rel=\"noreferrer noopener\">insertImage(url, column, row)<\/a>\uff08\u753b\u50cfURL\u304b\u3089\u6307\u5b9a\u306e\u30bb\u30eb\u4f4d\u7f6e\u306b\u633f\u5165\uff09<\/li><li><a href=\"#insertImage(url, column, row, offsetX, offsetY)\" data-type=\"internal\" data-id=\"#insertImage(url, column, row, offsetX, offsetY)\">insertImage(url, column, row, offsetX, offsetY)<\/a>\uff08\u753b\u50cfURL\u304b\u3089\u6307\u5b9a\u306e\u30bb\u30eb\u4f4d\u7f6e\u3092\u57fa\u6e96\u306b\u4f4d\u7f6e\u8abf\u6574\u3057\u3066\u633f\u5165\uff09<\/li><li><a href=\"#insertImage(blobSource, column, row)\" data-type=\"internal\" data-id=\"#insertImage(blobSource, column, row)\">insertImage(blobSource, column, row)<\/a>\uff08Blob\u30c7\u30fc\u30bf\u3092\u6307\u5b9a\u306e\u30bb\u30eb\u4f4d\u7f6e\u306b\u633f\u5165\uff09<\/li><li><a href=\"#insertImage(blobSource, column, row, offsetX, offsetY)\" data-type=\"internal\" data-id=\"#insertImage(blobSource, column, row, offsetX, offsetY)\">insertImage(blobSource, column, row, offsetX, offsetY)<\/a>\uff08Blob\u30c7\u30fc\u30bf\u3092\u6307\u5b9a\u306e\u30bb\u30eb\u4f4d\u7f6e\u3092\u57fa\u6e96\u306b\u4f4d\u7f6e\u8abf\u6574\u3057\u3066\u633f\u5165\uff09<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<p class=\"is-style-icon_info\">\u753b\u50cf\u306e\u6307\u5b9a\u65b9\u6cd5\u306fURL\u3068Blob\u30c7\u30fc\u30bf\u306e2\u7a2e\u985e\u3042\u308b<\/p>\n\n\n\n<h2>\u30b3\u30fc\u30c9\u306e\u6319\u52d5\u78ba\u8a8d\u7528\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea<\/h2>\n\n\n\n<div class=\"swell-block-button is-style-btn_normal is-style-btn_normal\" data-id=\"9899fc13\"><a href=\"https:\/\/script.google.com\/macros\/s\/AKfycbwWozI4PU6AAP9BmdT_DaUtJ_Qus0SA5doc4h0rg7kDSCQVLVt-wAFUP9L3dPELG_EeJA\/exec\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"swell-block-button__link\"><span>SpreadsheetApp.insertImage()\u306e\u5b9f\u6f14<\/span><\/a><\/div>\n\n\n\n<p>\u6319\u52d5\u306e\u78ba\u8a8d\u7528\u306b\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3046\u307e\u304f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u3068\u304d\u306f\u30d6\u30e9\u30a6\u30b6\u306e\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30e2\u30fc\u30c9\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u4f7f\u3044\u65b9\u624b\u9806\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"swell-block-step\" data-num-style=\"circle\">\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u51fa\u529b\u30bb\u30eb\u4f4d\u7f6e\u3092\u5165\u529b<\/div><div class=\"swell-block-step__body\">\n<ul class=\"is-style-check_list\"><li>\u5217\u756a\u53f7\u3092\u5165\u529b<\/li><li>\u884c\u756a\u53f7\u3092\u5165\u529b<\/li><li>\u6a2a\u65b9\u5411\u306e\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u5165\u529b\uff080\u306e\u307e\u307e\u3060\u3068\u30aa\u30d5\u30bb\u30c3\u30c8\u306a\u3057\uff09<\/li><li>\u7e26\u65b9\u5411\u306e\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u5165\u529b\uff080\u306e\u307e\u307e\u3060\u3068\u30aa\u30d5\u30bb\u30c3\u30c8\u306a\u3057\uff09<\/li><\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u753b\u50cf\u3092\u9078\u629e<\/div><div class=\"swell-block-step__body\">\n<p>URL\u3067\u633f\u5165\u3059\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3066\u633f\u5165\u3059\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-12.27.40.png?resize=1010%2C474&#038;ssl=1\" alt=\"insertImage\u306e\u30dc\u30bf\u30f3\u30a4\u30e1\u30fc\u30b8\" class=\"wp-image-2855\" width=\"1010\" height=\"474\" srcset=\"https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-12.27.40.png?w=1010&amp;ssl=1 1010w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-12.27.40.png?resize=300%2C141&amp;ssl=1 300w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-12-12.27.40.png?resize=768%2C360&amp;ssl=1 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" data-recalc-dims=\"1\" \/><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u753b\u50cf\u633f\u5165<\/div><div class=\"swell-block-step__body\">\n<figure class=\"wp-block-video is-style-shadow\"><video autoplay controls loop src=\"https:\/\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screen-recording-2022-04-12-14.28.38.webm\"><\/video><\/figure>\n\n\n\n\n<\/div><\/div>\n<\/div>\n\n\n\n<p class=\"is-style-big_icon_batsu\">\u8ab0\u3067\u3082\u95b2\u89a7\u53ef\u80fd\u3067\u3059\u306e\u3067\u3001<span class=\"swl-marker mark_orange\"><strong><span class=\"has-inline-color has-swl-deep-01-color\">\u5909\u306a\u753b\u50cf\u306f\u633f\u5165\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044<\/span><\/strong><\/span>\u306d\u3002<br>\u203b\u3061\u306a\u307f\u306b\u3001<span class=\"swl-marker mark_orange\"><strong>\u753b\u50cf\u306f\u5b9a\u671f\u7684\u306b\u81ea\u52d5\u524a\u9664<\/strong><\/span>\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"insertImage(url,-column,-row)\">insertImage(url, column, row)\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<ul id=\"block-61a13241-f960-4372-8576-864d74085b64\" class=\"is-style-check_list\"><li>url\uff08\u6587\u5b57\u5217\uff09 \u2014 \u633f\u5165\u3057\u305f\u3044\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306eURL<\/li><li>column\uff08\u6570\u5024\uff09\u2014 \u5217\u6570<\/li><li>row\uff08\u6570\u5024\uff09\u2014 \u884c\u6570<\/li><\/ul>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"insertImage(url, column, row)\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"JavaScript\"><code>function insertImageWithURL1() {\n  let ss = SpreadsheetApp.getActiveSheet();\n  let sheet = ss.getSheets()[0];\n  let url =&quot;https:\/\/www.google.com\/images\/srpr\/logo3w.png&quot; ;\n  let column = 1;\n  let row = 1;\n  sheet.insertImage(url, column, row); \n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">ss\u00a0= \u5bfe\u8c61\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<br>sheet\u00a0= \u5bfe\u8c61\u306e\u30b7\u30fc\u30c8\u3092\u53d6\u5f97\uff08\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306e\u5834\u5408\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u4e00\u756a\u5de6\u306b\u3042\u308b\u30b7\u30fc\u30c8\uff09<br>url\u00a0= \u633f\u5165\u4e88\u5b9a\u306e\u753b\u50cfURL<br>column\u00a0= \u633f\u5165\u4e88\u5b9a\u306e\u30bb\u30eb\u5217<br>row\u00a0= \u633f\u5165\u4e88\u5b9a\u306e\u30bb\u30eb\u884c<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u4e00\u756a\u30b7\u30f3\u30d7\u30eb\u306a\u753b\u50cf\u633f\u5165\u30b3\u30fc\u30c9\u3092\u6e96\u5099\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u5bfe\u8c61\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u6307\u5b9a\u3057\u305f\u4e0a\u3067\u3001<span class=\"swl-marker mark_orange\"><strong>\u633f\u5165\u3057\u305f\u3044\u753b\u50cf\u306eURL\u3068\u305d\u306e\u4f4d\u7f6e\u3092\u8a2d\u5b9a\u3059\u308b\u3060\u3051\u3067\u753b\u50cf\u306e\u633f\u5165\u304c\u53ef\u80fd<\/strong><\/span>\u3067\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>\u633f\u5165\u4f4d\u7f6e\u306f\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u306e\u5de6\u4e0a\u306e\u9685\u306b\u753b\u50cf\u306e\u5de6\u4e0a\u89d2\u304c\u5408\u308f\u3055\u308b<\/strong><\/span>\u3088\u3046\u306a\u4ed5\u69d8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u753b\u50cf\u306eURL\u3055\u3048\u308f\u304b\u308c\u3070\u8ab0\u3067\u3082\u7c21\u5358\u306b\u5229\u7528\u304c\u3067\u304d\u307e\u3059\u304c\u3001<span class=\"swl-marker mark_orange\"><strong>\u81ea\u5206\u3067\u7528\u610f\u3057\u305f\u753b\u50cf\u3092\u5229\u7528\u3057\u306a\u3044\u5834\u5408\u306f\u8457\u4f5c\u6a29\u306b\u3054\u6ce8\u610f<\/strong><\/span>\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 id=\"insertImage(url,-column,-row,-offsetX,-offsetY)\">insertImage(url, column, row, offsetX, offsetY)\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<ul id=\"block-61a13241-f960-4372-8576-864d74085b64\" class=\"is-style-check_list\"><li>url\uff08\u6587\u5b57\u5217\uff09 \u2014 \u633f\u5165\u3057\u305f\u3044\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306eURL<\/li><li>column\uff08\u6570\u5024\uff09\u2014 \u5217\u6570<\/li><li>row\uff08\u6570\u5024\uff09\u2014 \u884c\u6570<\/li><li>offsetX\uff08\u6570\u5024\uff09\u2014 \u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u633f\u5165\u4f4d\u7f6e\u304b\u3089\u53f3\u65b9\u5411\u306b\u79fb\u52d5\u3055\u305b\u305f\u3044\u30d4\u30af\u30bb\u30eb\u6570<\/li><li>offsetY\uff08\u6570\u5024\uff09\u2014 \u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u633f\u5165\u4f4d\u7f6e\u304b\u3089\u4e0b\u65b9\u5411\u306b\u79fb\u52d5\u3055\u305b\u305f\u3044\u30d4\u30af\u30bb\u30eb\u6570<\/li><\/ul>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\" data-file=\"insertImage(url, column, row, offsetX, offsetY)\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\"><code>function insertImageWithURL2() {\n  let ss = SpreadsheetApp.getActiveSheet();\n  let sheet = ss.getSheets()[0];\n  let url =&quot;https:\/\/www.google.com\/images\/srpr\/logo3w.png&quot; ;\n  let column = 1;\n  let row = 1;\n  let offsetX = 100;\n  let offsetY = 200;\n  sheet.insertImage(url, column, row, offsetX, offsetY); \n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">ss\u00a0= \u5bfe\u8c61\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<br>sheet\u00a0= \u5bfe\u8c61\u306e\u30b7\u30fc\u30c8\u3092\u53d6\u5f97\uff08\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306e\u5834\u5408\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u4e00\u756a\u5de6\u306b\u3042\u308b\u30b7\u30fc\u30c8\uff09<br>url\u00a0= \u633f\u5165\u4e88\u5b9a\u306e\u753b\u50cfURL<br>column\u00a0= \u633f\u5165\u4e88\u5b9a\u306e\u30bb\u30eb\u5217<br>row\u00a0= \u633f\u5165\u4e88\u5b9a\u306e\u30bb\u30eb\u884c<br>offsetX\u00a0= \u53f3\u65b9\u5411\u306b\u30aa\u30d5\u30bb\u30c3\u30c8\u3055\u305b\u305f\u3044\u30d4\u30af\u30bb\u30eb\u6570<br>offsetY\u00a0= \u4e0b\u65b9\u5411\u306b\u30aa\u30d5\u30bb\u30c3\u30c8\u3055\u305b\u305f\u3044\u30d4\u30af\u30bb\u30eb\u6570<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u5148\u7a0b\u306e<a href=\"#insertImage\" data-type=\"internal\" data-id=\"#insertImage\">insertImage(url, column, row)<\/a>\u3068\u307b\u3068\u3093\u3069\u540c\u3058\u3067\u3059\u304c\u3001<span class=\"swl-marker mark_orange\"><strong>\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u8a2d\u5b9a\u3057\u306a\u3044\u5834\u5408\u3001\u753b\u50cf\u306e\u51fa\u529b\u4f4d\u7f6e\u306f\u30bb\u30eb\u306e\u5de6\u4e0a\u304c\u57fa\u6e96\u70b9<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002<span class=\"swl-marker mark_orange\"><strong>\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u57fa\u6e96\u70b9\u304b\u3089\u53f3\u3084\u4e0b\u306b\u30d4\u30af\u30bb\u30eb\u5358\u4f4d\u3067\u753b\u50cf\u306e\u633f\u5165\u4f4d\u7f6e\u3092\u8abf\u6574\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/strong><\/span>\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img src=\"https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/08\/911c007e73477d9393e7d468a2ea72ce.png?resize=1024%2C621&#038;ssl=1\" alt=\"\" data-recalc-dims=\"1\"\/><\/figure>\n\n\n\n<p>\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u99c6\u4f7f\u3057\u3066\u51fa\u529b\u4f4d\u7f6e\u306e\u5fae\u8abf\u6574\u3092\u884c\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 id=\"insertImage(blobSource,-column,-row)\">insertImage(blobSource, column, row)\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<ul id=\"block-61a13241-f960-4372-8576-864d74085b64\" class=\"is-style-check_list\"><li>blobSource\uff08Blob\u30c7\u30fc\u30bf\uff09 \u2014 \u633f\u5165\u3057\u305f\u3044\u753b\u50cf\u30d5\u30a1\u30a4\u30eb<\/li><li>column\uff08\u6570\u5024\uff09\u2014 \u5217\u6570<\/li><li>row\uff08\u6570\u5024\uff09\u2014 \u884c\u6570<\/li><\/ul>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"insertImage(blobSource, column, row)\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"JavaScript\"><code>function insertImageWithBlob1() {\n  let url =&quot;https:\/\/www.google.com\/images\/srpr\/logo3w.png&quot; ;\n  let response = UrlFetchApp.fetch(url);\n  let blob = response.getBlob();\n  let ss = SpreadsheetApp.getActiveSheet();\n  let sheet = ss.getSheets()[0];\n  let column = 1;\n  let row = 1;\n  sheet.insertImage(blob, column, row); \n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">url\u00a0= \u633f\u5165\u4e88\u5b9a\u306e\u753b\u50cfURL<br>response = \u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u753b\u50cfURL\u306b\u30a2\u30af\u30bb\u30b9\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u305f\u7d50\u679c<br>blob = \u30ea\u30af\u30a8\u30b9\u30c8\u7d50\u679c\u304b\u3089Blob\u30c7\u30fc\u30bf\u3092\u53d6\u5f97<br>ss\u00a0= \u5bfe\u8c61\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u53d6\u5f97<br>sheet\u00a0= \u5bfe\u8c61\u306e\u30b7\u30fc\u30c8\u3092\u53d6\u5f97\uff08\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306e\u5834\u5408\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u4e00\u756a\u5de6\u306b\u3042\u308b\u30b7\u30fc\u30c8\uff09<br>column\u00a0= \u633f\u5165\u4e88\u5b9a\u306e\u30bb\u30eb\u5217<br>row\u00a0= \u633f\u5165\u4e88\u5b9a\u306e\u30bb\u30eb\u884c<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">Blob\u30c7\u30fc\u30bf\u304b\u3089\u753b\u50cf\u3092\u633f\u5165\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30b5\u30f3\u30d7\u30eb\u306b\u306a\u308a\u307e\u3059\u3002<br>\u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001URL\u30ea\u30af\u30a8\u30b9\u30c8\u304b\u3089Blob\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u307e\u3057\u305f\u304c\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3067\u884c\u3063\u305f\u3088\u3046\u306b\u3001<span class=\"swl-marker mark_orange\"><strong>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u753b\u50cf\u304b\u3089\u753b\u50cf\u3092\u633f\u5165\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059<\/strong><\/span>\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>URL\u3092\u4f7f\u3063\u305f\u753b\u50cf\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u3084\u308a\u65b9\u3067\u306f\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u306b\u753b\u50cf\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u306a\u3051\u308c\u3070\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u633f\u5165\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044<\/strong><\/span>\u3067\u3059\u304c\u3001<span class=\"swl-marker mark_orange\"><strong>Blob\u30c7\u30fc\u30bf\u3092\u5229\u7528\u3057\u305f\u633f\u5165\u65b9\u6cd5\u3067\u306f\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u306b\u306a\u304f\u3068\u3082\u30ed\u30fc\u30ab\u30ebPC\u5185\u306e\u30c7\u30fc\u30bf\u3092\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3092\u901a\u3057\u3066\u633f\u5165\u3059\u308b\u3053\u3068\u304c\u7c21\u5358\u306b\u3067\u304d\u307e\u3059<\/strong><\/span>\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3057\u3001\u3053\u3061\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u306f\u5236\u7d04\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3053\u306e\u70b9\u306b\u3064\u3044\u3066\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-group is-style-big_icon_good\"><div class=\"wp-block-group__inner-container\">\n<ul class=\"is-style-good_list\"><li><span class=\"swl-marker mark_orange\"><strong>\u633f\u5165\u3067\u304d\u308b\u753b\u50cf\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306f2MB\u307e\u3067\u306e\u30c7\u30fc\u30bf<\/strong><\/span><\/li><li><span class=\"swl-marker mark_orange\"><strong>\u753b\u50cf\u306e\u30b5\u30a4\u30ba\u306f1024px\u4ee5\u4e0b\u306e\u30c7\u30fc\u30bf<\/strong><\/span><\/li><\/ul>\n<\/div><\/div>\n\n\n\n<p class=\"is-style-icon_info\"><span class=\"swl-marker mark_orange\"><strong>\u753b\u50cf\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u3084\u30b5\u30a4\u30ba\uff08\u5927\u304d\u3055\uff09\u304c\u4e0a\u9650\u3092\u30aa\u30fc\u30d0\u30fc\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b<\/strong><\/span><\/p>\n\n\n\n<p>\u3053\u306e\u70b9\u306b\u3064\u3044\u3066\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<span class=\"swl-marker mark_orange\"><strong>\u6700\u8fd1\u306e\u30b9\u30de\u30db\u306a\u3069\u306e\u30ab\u30e1\u30e9\u3067\u306f\u9ad8\u89e3\u50cf\u5ea6\u3067\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u3082\u753b\u50cf\u306e\u5927\u304d\u3055\u3082\u4e0a\u9650\u5024\u3092\u8d85\u3048\u3066\u3057\u307e\u3046\u3082\u306e\u304c\u591a\u3044<\/strong><\/span>\u3067\u3059\u304b\u3089\u3001<span class=\"swl-marker mark_orange\"><strong>\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u304b\u3089\u30b9\u30de\u30db\u3067\u64ae\u5f71\u3057\u305f\u5199\u771f\u306a\u3069\u3092\u633f\u5165\u3059\u308b\u5834\u5408\u306f\u30a2\u30d7\u30ea\u5074\u3067\u753b\u50cf\u306e\u30ea\u30b5\u30a4\u30ba\u3084\u5727\u7e2e\u51e6\u7406\u306a\u3069\u304c\u5fc5\u8981<\/strong><\/span>\u306a\u5834\u9762\u3082\u5c11\u306a\u304f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u753b\u50cf\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u3001\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u3082\u5727\u7e2e\u51e6\u7406\u306a\u3069\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\" data-style=\"card\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img src=\"https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/01\/Screenshot-2020-01-07-at-21.21.01.png?fit=300%2C245&#038;ssl=1\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/for-dummies.net\/gas-noobs\/gas-super-fast-multiple-images-uploader-demonstration-web-app\/\">\u3010WEB\u30a2\u30d7\u30ea\u3011GAS\u3067\u8d85\u9ad8\u901f\u753b\u50cf\u30a2\u30c3\u30d7\u30ed\u30fc\u30c0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u305f<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u4eca\u56de\u306eWEB\u30a2\u30d7\u30ea\u30c7\u30e2\u3067\u306f\u3001HtmlService\u3092\u6d3b\u7528\u3057\u3066\u8907\u6570\u306e\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092Google\u30c9\u30e9\u30a4\u30d6\u306b\u4e00\u62ec\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3081\u306eWEB\u30a2\u30d7\u30ea\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u6700\u8fd1\u306e\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306f\u7aef&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<h2 id=\"block-b12f2de2-2753-4e5f-8541-1de95d26ec89\">insertImage(blobSource, column, row, offsetX, offsetY)\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<ul id=\"block-61a13241-f960-4372-8576-864d74085b64\" class=\"is-style-check_list\"><li>blobSource\uff08Blob\u30c7\u30fc\u30bf\uff09 \u2014 \u633f\u5165\u3057\u305f\u3044\u753b\u50cf\u30d5\u30a1\u30a4\u30eb<\/li><li>column\uff08\u6570\u5024\uff09\u2014 \u5217\u6570<\/li><li>row\uff08\u6570\u5024\uff09\u2014 \u884c\u6570<\/li><li>offsetX\uff08\u6570\u5024\uff09\u2014 \u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u633f\u5165\u4f4d\u7f6e\u304b\u3089\u53f3\u65b9\u5411\u306b\u79fb\u52d5\u3055\u305b\u305f\u3044\u30d4\u30af\u30bb\u30eb\u6570<\/li><li>offsetY\uff08\u6570\u5024\uff09\u2014 \u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u633f\u5165\u4f4d\u7f6e\u304b\u3089\u4e0b\u65b9\u5411\u306b\u79fb\u52d5\u3055\u305b\u305f\u3044\u30d4\u30af\u30bb\u30eb\u6570<\/li><\/ul>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"insertImage(blobSource, column, row, offsetX, offsetY)\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"JavaScript\"><code>function insertImageWithBlob2() {\n  let url =&quot;https:\/\/www.google.com\/images\/srpr\/logo3w.png&quot; ;\n  let response = UrlFetchApp.fetch(url);\n  let blob = response.getBlob();\n  let ss = SpreadsheetApp.getActiveSheet();\n  let sheet = ss.getSheets()[0];\n  let column = 1;\n  let row = 1;\n  let offsetX = 100;\n  let offsetY = 200;\n  sheet.insertImage(blob, column, row, offsetX, offsetY); \n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">url\u00a0= \u633f\u5165\u4e88\u5b9a\u306e\u753b\u50cfURL<br>response = \u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u753b\u50cfURL\u306b\u30a2\u30af\u30bb\u30b9\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u305f\u7d50\u679c<br>blob = \u30ea\u30af\u30a8\u30b9\u30c8\u7d50\u679c\u304b\u3089Blob\u30c7\u30fc\u30bf\u3092\u53d6\u5f97<br>ss\u00a0= \u5bfe\u8c61\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u53d6\u5f97<br>sheet\u00a0= \u5bfe\u8c61\u306e\u30b7\u30fc\u30c8\u3092\u53d6\u5f97\uff08\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306e\u5834\u5408\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u4e00\u756a\u5de6\u306b\u3042\u308b\u30b7\u30fc\u30c8\uff09<br>column\u00a0= \u633f\u5165\u4e88\u5b9a\u306e\u30bb\u30eb\u5217<br>row\u00a0= \u633f\u5165\u4e88\u5b9a\u306e\u30bb\u30eb\u884c<br>offsetX\u00a0= \u53f3\u65b9\u5411\u306b\u30aa\u30d5\u30bb\u30c3\u30c8\u3055\u305b\u305f\u3044\u30d4\u30af\u30bb\u30eb\u6570<br>offsetY\u00a0= \u4e0b\u65b9\u5411\u306b\u30aa\u30d5\u30bb\u30c3\u30c8\u3055\u305b\u305f\u3044\u30d4\u30af\u30bb\u30eb\u6570<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u3053\u3061\u3089\u3082\u4eca\u307e\u3067\u7d39\u4ecb\u4e0b\u4f7f\u3044\u65b9\u3068\u307b\u3068\u3093\u3069\u540c\u3058\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<p>\u57fa\u6e96\u70b9\u304c\u30bb\u30eb\u306e\u5de6\u4e0a\u306e\u89d2\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001<span class=\"swl-marker mark_orange\"><strong>Blob\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u57fa\u6e96\u70b9\u304b\u3089\u304b\u3089\u5fae\u8abf\u6574\u3092\u3057\u305f\u4f4d\u7f6e\u306b\u753b\u50cf\u3092\u633f\u5165<\/strong><\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_info\">\u3053\u3061\u3089\u30822MB\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u30011024px\u4ee5\u4e0b\u306e\u5927\u304d\u3055\u3092\u8d85\u3048\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u633f\u5165\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059<\/p>\n\n\n\n<h2>\u633f\u5165\u3057\u305f\u753b\u50cf\u306e\u9ad8\u3055\u3068\u5e45\u3092\u8abf\u6574\u3059\u308b\u3010\u53c2\u8003\u3011<\/h2>\n\n\n\n<p>\u4eca\u307e\u3067\u306e\u3084\u308a\u65b9\u3067\u306f\u3001\u753b\u50cf\u3092\u5143\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306e\u307e\u307e\u633f\u5165\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u304c\u3001<span class=\"swl-marker mark_orange\"><strong>\u9ad8\u3055\u3084\u5e45\u3092\u4efb\u610f\u306e\u5927\u304d\u3055\u306b\u5909\u66f4\u3057\u305f\u3044<\/strong><\/span>\u3068\u3044\u3046\u3054\u8981\u671b\u3082\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3093\u306a\u6642\u306b\u4f7f\u3046\u306e\u304c\u6b21\u306e2\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-group has-border -border01\"><div class=\"wp-block-group__inner-container\">\n<ul class=\"is-style-check_list\"><li><span class=\"swl-marker mark_orange\"><strong>setHeight<\/strong><\/span><\/li><li><span class=\"swl-marker mark_orange\"><strong>setWidth<\/strong><\/span><\/li><\/ul>\n<\/div><\/div>\n\n\n\n<p>\u3053\u3061\u3089\u306e2\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u975e\u5e38\u306b\u7c21\u5358\u306b\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5148\u7a0b\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3059\u308b\u3068\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"setHeight\u3068setWidth\u306e\u4f7f\u3044\u65b9\" data-lang=\"JavaScript\"><code>function insertImageWithBlob3() {\n  let url =&quot;https:\/\/www.google.com\/images\/srpr\/logo3w.png&quot; ;\n  let response = UrlFetchApp.fetch(url);\n  let blob = response.getBlob();\n  let ss = SpreadsheetApp.getActiveSheet();\n  let sheet = ss.getSheets()[0];\n  let column = 1;\n  let row = 1;\n  sheet.insertImage(blob, column, row)\n       .setHeight(190)\n       .setWidth(550);\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u3066\u3082\u7c21\u5358\u306b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u3067\u30ea\u30b5\u30a4\u30ba\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_info\">\u6ce8\u610f\u70b9\u3068\u3057\u3066\u306f\u3001<span class=\"swl-marker mark_orange\"><strong>1024px\u4ee5\u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u633f\u5165\u3067\u304d\u307e\u305b\u3093<\/strong><\/span>\u3002\uff08\u30ea\u30b5\u30a4\u30ba\u51e6\u7406\u306e\u524d\u306b\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\uff09<br>\u7e26\u6a2a\u6bd4\u306f\u8003\u616e\u3057\u3066\u304f\u308c\u307e\u305b\u3093\u306e\u3067\u3001\u3069\u3061\u3089\u304b<span class=\"swl-marker mark_orange\"><strong>\u7247\u65b9\u3060\u3051\u8a2d\u5b9a\u3059\u308b\u3068\u6b6a\u306a\u5f62\u306b\u306a\u308a\u307e\u3059<\/strong><\/span>\u3002<\/p>\n\n\n\n<h2>\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u4eca\u56de\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u753b\u50cf\u3092\u633f\u5165\u3059\u308b\u305f\u3081\u306e\u30e1\u30bd\u30c3\u30c9insertImage\u306b\u3064\u3044\u3066\u3054\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u610f\u5916\u3068\u7c21\u5358\u306b\u753b\u50cf\u633f\u5165\u304c\u3067\u304d\u308b\u3053\u3068\u304c\u308f\u304b\u3063\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u6d3b\u7528\u3057\u3066\u3044\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u633f\u5165\u65b9\u6cd5\u306fURL\u3068Blob\u30c7\u30fc\u30bf\u306e2\u7a2e\u985e\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u4f7f\u3044\u5206\u3051\u304c\u3067\u304d\u308b\u3068\u3044\u3044\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u753b\u50cf\u3092\u633f\u5165\u3057\u3066\u307f\u308b \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u8cc7\u6599\u306a\u3069\u3092\u4f5c\u308b\u969b\u3001\u753b\u50cf\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u6a5f\u4f1a\u3082\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002 \u624b\u52d5\u3067\u753b\u50cf\u3092\u633f\u5165\u3059\u308b\u4e00\u822c\u7684\u306a\u3084\u308a\u65b9\u306f \u3068\u3044\u3046\u5927\u5909\u9577\u3044\u30d7\u30ed\u30bb\u30b9\u304c\u3042\u3063\u3066\u3084\u3063\u3068\u753b\u50cf\u304c\u8cbc\u308a\u4ed8\u3051\u3089\u308c\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1628,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"{\"9899fc13\":{\"pv\":10097,\"imp\":7304,\"click\":300}}","spay_email":"","jetpack_publicize_message":"\u3010GAS\u3011\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u753b\u50cf\u3092\u633f\u5165\u3059\u308binsertImage\u3092\u30de\u30b9\u30bf\u30fc\r\n#insertImage #Spreadsheet #setHeight #setWidth #gas #\u753b\u50cf\u633f\u5165","jetpack_is_tweetstorm":false},"categories":[16,15,3],"tags":[53,51,52,50,174,175,176,154,113],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/08\/sheetsReference.png?fit=320%2C180&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9Z92k-q5","jetpack_likes_enabled":true,"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/1617"}],"collection":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/comments?post=1617"}],"version-history":[{"count":10,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/1617\/revisions"}],"predecessor-version":[{"id":2864,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/1617\/revisions\/2864"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/media\/1628"}],"wp:attachment":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/media?parent=1617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/categories?post=1617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/tags?post=1617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}