Sunday, October 05, 2025

Using Google App Scripts to turn an exercise image into a Google doc: Pluses and Minusus

 Explainer Page by Ha Sir: https://youtu.be/UkLGPtkVlRg?si=Tw-zUdBY7Rwb0d8C


AI app: GPT-5


MY ATTEMPT: 

Original Image: 


Prompt: 

convert the image content, which is an english reading comprehension exercise, to Google

Apps Script, for creating the same document in Google Docs


RESULT: 

Google Apps Script failed to generate the expected Google Doc. 

==========

SECOND ATTEMPT: 

GPT-5 offered to provide a new javascript which will produce a text-only Google page. I complied. 

RESULT: 



==================

OBSERVATIONS

1. The method is good for converting images which may mainly include text. 

2. The resulting Google doc will retain much of the formatting of the original text image. 

3. However, if the text image contains graphic organizers, this method may not work. 

4. If the text in the source text image can be copied, then it may faster to just use copy and paste to create the Google doc, unless the text contains a lot of content. 



No comments:

Created a poem from a picture using Gemini: It did a super job

  昨天黃昏post了東涌日落我拍的照片,跟著Francis Tsang 提議我請AI 為之寫詩;這主意從未想過,於是立指打開Gemini, 上傳那照片,寫了一個簡單的prompt, 請它寫一首詩。 不用10秒,詩出現眼前,而且真的配合照片內容,連照片內細小的cable car ...