by default image is coming in 100% width in readme.md in github code example
Example: github screenshots resize
![test image size]<img src="https://fullpath/assets/yourgif.gif" width="400" height="790">
![test image size]<img src="https://fullpath/assets/yourgif.gif" width="400" height="790">