My GSoC Journey: Week 1

Eyvaz Ahmadzada
3 min readJun 20, 2021

After the community-bonding period, finally the coding begins!😍 In this blog, I will write about what I archived, what problems I faced, and most importantly, what I learned in the first week of GSoC 2021 with Joomla.

As I had specified all the tasks that I wanted to get done by the end of the week, I didn’t face any problems with time management. I created separate issues on the Github repository of my project to keep track of the tasks and let my mentors know what I was going to be working on this week. So I guess this is the workflow that I’m going to use for the next 10 weeks too🙂.

Tasks

Now is the time to dive deeper into the tasks of the first week:

The functions that I worked on this week contained the main source code for responsive image generation. So the main goal for this week was to implement the functions which get triggered whenever we click the “Save” button on any web content editing page where there’s an image inserted into the content. For that, I refactored the function createThumbs in Image class to look something like this (At the beginning, I created separate functions for generating thumbs and responsive images, then my mentors told me to improve it by doing both in one function):

On the other hand, we had a generateThumbs function which was refactored and changed to be generateMultipleSizes. This function handles the resizing or cropping of the original image (based on the $creationMethod parameter value):

What was the result?

I created a pull request for the issues of the week and after some improvements, I managed to get it merged to the dev branch which will be merged to the main 4.1-dev branch at the end of the program.

If a picture is worth a thousand words, then a video is worth a million😁:

Demonstration of the functionality created in Week 1

All in all, the first week was amazing! I realized once again that I chose the right project because I had so much fun while working on it.

--

--

Eyvaz Ahmadzada

Highly motivated third-year computer science student at French-Azerbaijani University