Skip to content

Commit

Permalink
Merge pull request #10 from simPRO-Software/bugfix/min-SIM-38946-Unab…
Browse files Browse the repository at this point in the history
…le-to-get-the-size-of-the-image

SIM-38946-Unable-to-get-the-size-of-the-image
  • Loading branch information
vmckillop authored Aug 1, 2024
2 parents 343b280 + 6b277e5 commit 57bf1bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tcpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -6990,6 +6990,10 @@ public function Image($file, $x=null, $y=null, $w=0, $h=0, $type='', $link='', $
if ($imsize === FALSE) {
unlink($file);
$file = $original_file;
// The file is not image file.
if ($w == 0 || $h == 0) {
return false;
}
}
}
if ($imsize === FALSE) {
Expand Down

0 comments on commit 57bf1bc

Please sign in to comment.