How to view crop selection of an image? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок

How to view crop selection of an image? i have an image within a div tag and width and height of div tag is 100% 100px respectively. but cuz image size is too big its overflow the div tag. and if i set the height and width to img tag then its wrap the image where i want to crop it?

18th Jun 2018, 6:01 AM
ajbura - avatar
3 ответов
+ 5
Add - overflow: hidden; in div.imgContainer Look at the lesson for info
18th Jun 2018, 6:09 AM
Utkαrsh - avatar
+ 1
Hi ajbura ! FYI -- Utkarsh did a good job of answering your exact question. If you have a different one now, you may want to rearticulate it. :)
18th Jun 2018, 6:29 AM
Janning⭐ - avatar
use the JavaScript canvas to crop it
18th Jun 2018, 6:25 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar