This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM debian:bullseye | |
| WORKDIR /var/www | |
| SHELL ["/bin/bash", "-l", "-euxo", "pipefail", "-c"] | |
| # installing minimum packages to get it started | |
| RUN apt-get update; \ | |
| apt-get full-upgrade -y; \ | |
| apt-get install -y --no-install-recommends \ | |
| ca-certificates \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // testando manipulacao de imagens com API WideImage | |
| $image = WideImage_Image::load( APPLICATION_PATH.'/../public/img/front/icon/64/image.jpg' )->resize(null, 500); | |
| $waterMark = WideImage_Image::load( APPLICATION_PATH.'/../public/img/front/icon/64/php.png' )->resize(100); | |
| // obtendo o canvas da imagem para escrever sobre ela | |
| $canvas = $image->getCanvas(); | |
| $canvas->useFont('fonts/GOTHIC.TTF', 18, $image->allocateColor(100, 100, 115) ); | |
| $canvas->writeText('center', 'bottom-10', 'legenda para a imagem'); |