Recently, due to project needs, when implementing images, if the image is larger than 100 X 100, it will be reduced to 100 X 100. If it is smaller than this, the original image size will be maintained. After research, it was found that it can be easily implemented using Javascript code.
Javascript code: