Resizing a Image Sprite in the proportion of screen size? (Maybe a Maths question)

I am trying to create a sprite animation.
There are only a couple of frames.
Frames are of different sizes due to the drawings.
I am resizing the first frame proportional to the canvas size.
(Frame width = Canvas.width * 0.2; Frame.height = Frame.width * aspect ratio)

How should I resize the second frame which is of different size?

EDIT: @azaotl Thanks for your great tutorials on Youtube!
Could you hyelp me with the above issue?

I think you should elaborate better.

Anyway, may be it is better to upload a new image with a different size, this way the app won’t have to resize it all the time.