Skip to content

Commit

Permalink
SIM-38946-Unable-to-get-the-size-of-the-image
Browse files Browse the repository at this point in the history
  • Loading branch information
minchensimprogroup committed Aug 1, 2024
1 parent 343b280 commit 6b277e5
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 6b277e5

Please sign in to comment.