简体   繁体   中英

Images rendering on HTML canvas in poor quality on smaller screen size

i made a website - clone of million dollar homepage. But i have a major problem. Images rendered on canvas on big screens appear normal (good quality). Here's the picture: 在此处输入图像描述

But when i open the webiste on my phone, all pictures are barely visible. See here: 在此处输入图像描述 and here is a closer look在此处输入图像描述

the images are drawn on canvas by this function

  context.drawImage(img, myOptions.x, myOptions.y, myOptions.sw, myOptions.sh)

do you have any solution how to fix this issue? Thanks

Ahoj, Try to check if there isn't some special resolution for smaller screens. or maybe change resolution od that canvas. Because on desktop you can see normally some picture but on smaller resolution canvas can crop or edit pictures to fit into to the screen

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM