How to save image with izmennymi width and height?

Tell me how to save the picture and change the resolution height and width, doing so

file_put_contents('../youtube_thumb/'.translit($key).'.jpg',file_get_contents("http://img.youtube.com/vi/".$video_id."/mqdefault.jpg);
June 10th 19 at 16:37
1 answer
June 10th 19 at 16:39
GD / ImageMagic

Find more questions by tags PHP