Мне нужно создать образ кадра, используя кусок изображения.
Пример:
Пользователь загрузит фрагмент изображения из исходного кода:
Теперь мне нужно создать фрейм на front-end в соответствии с требованиями пользователя переднего плана (пользователь будет выбирать высоту и ширину кадра, а затем выбрать эту часть изображения) следующим образом:
Я не получаю никакого способа сделать это, я пытался сделать это с помощью css и html canvas, но не повезло.
Может кто-нибудь предложить мне, как я могу достичь этого, используя PHP или CSS или HTML или JavaScript или любой способ.
Здесь вы можете увидеть рабочий пример, который мне действительно нужно сделать.