The picture generation of the "instruction manual" of NetEYun music

https://st.music.163.com/c/m2.

is how to make the original size of the picture on each final result page be an integral multiple of the screen size

know that you can get the screen size, but how to generate a picture


either process it in the background and pass the screen size to the front end


PC can't get in. Demo, who has done NetEase before, probably guesses its effect.

<img src="http://p1.music.126.net/TpCinfY4hmnWhl6JbcPGog==/109951163185285618.jpg?param=140y140"/>

the ? param=$ {width} y ${height} passed from the front end, the width and height can be captured by the back end, and the back end compresses the original image-- this is how the images on his website are optimized. You can take a look at

.

this thing?
clipboard.png

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e49196-43a32.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e49196-43a32.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?