TCPDF
TCPDF copied to clipboard
Fix: #553
Fix: #553
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Leonardo Petrora seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
I have already signed the CLA but the status is still pending. I tried to recheck but there is no change
Please edit the description to use Fixes: #553 or Fix: #553
to bypass this you have to add a helper variable like
$gdfunction = 'imagecreatefrom'.$type;
$silenceGdfunction = $type === 'png';
...
// GD library
$img = $silenceGdfunction ? @$gdfunction($file) : $gdfunction($file);
but i have no idea if silencing a method was, is oder ever will be a good decision.