As my final goal of Seneca OSD600 course, I picked my-photohub
. My Photohub is a web app to take images and optimize them, and create HTML page. Created app will be hosted in GitHub repository. Basically anybody can create a webpage to show their great photos without much of programming knowledge. So the idea is to create a webpage via GitHub Pages
using GitHub Action
. And it removes any information contained in photos. What's interesting about this project is that no one has built anything yet. I have contributed seven repositories so far. They are all pretty mature projects which I don't have to create something from scratch.
The issue that I picked up is image optimization in GitHub Action. At the beginning, I thought I just had to create node
app that removes GPS information and optimize images and it could be doable enough for me. Once I left my comment on the issue, I had a response that I need to write a shell script to run in GitHub Action. I didn't think about writing a shell script. After some thoughts, I think I can write a process to take the image folder and run a function or program to do image optimization and store new images in a new folder.
Also I should write Javascript program that optimize images. I found ExifReader
and Sharp
to extract metadata and resize. Both are well maintained libraries that are suitable for the project.
I have many questions like where image folder is, where new images are stored, and what image sizes and formats need to be added. My plan is to share my initial plan and have a good discussion before implementing any of these. I will write more about the discussion and how I'm implementing in next article.
Top comments (0)