We obtain the coordinates of the ImgAreaSelect selection and cut the image with php to create our banner.
Hi all guys and welcome back to my channel, today as promised in the last video guide, we continue the programming of our CMS and specifically the section customize Layout, obtaining the coordinates of the selection of imgAreaSelect and cut the image in php realizing the banner for customizing our header.
previous video : • ImgAreaSelect | CMS fai da te | Backend de...
#cms #frontend #backenddeveloper
Download link :
[ Apache ] : https://httpd.apache.org/download.cgi
[ Notepad++ ] : https://notepad-plus-plus.org/downloads/
[ PHP ] : https://www.php.net/downloads.php
[ MySQL Server ] : https://dev.mysql.com/downloads/mysql/
[ PhpMyAdmin ] : https://www.phpmyadmin.net/downloads/
[ JQuery ] : https://jquery.com/download/
[ ImgAreaSelect ] : https://plugins.jquery.com/imgareasel...
My configuration :
[ Apache ] : v2.4.48
[ PHP ] : v7.4.23
[ MySQL Server ] : v5.7.35
[ PhpMyAdmin ] : v5.1.1
[ JQuery ] : v3.7.1
[ ImgAreaSelect ] : v0.9.11-rc.1
Social link:
[ Instagram ] : / odlaproduction
video chapters :
00:00 Intro
00:42 Let's get the coordinates
03:30 Let's define the cut image button
07:20 Original image scaling calculation
09:29 Coordinate calculation based on scaling
10:20 imagecreatefrompng( )
11:55 am imagecreatetruecolor( )
12:33 imagecopyresized( )
15:00 imagepng( )
15:32 Image cut test
17:30 We include the banner in the header.php file
19:13 Outro