-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In TCPDF 6.3.4 after pdf render images with base64 not appear #179
Comments
I'm testing versions: v6.3.4, v6.3.3, v6.3.2, v6.3.1, v6.3.0, v6.2.26, v6.2.25, v6.2.23, v6.2.22 and all broken in v6.2.21 render OK. |
Hi! I'd the same problem, just replace the tcpdf/include/tcpdf_static.php function file_exists (L1879 in tcpdf 6.3.4) like this:
|
Version 6.2.21 works fine in local and server. I have 6.3.2 and render Ok in local and not works in server. |
Do this |
I'm not sure when this happened, but default base64 encoded images were no longer rendered in html text. If the image is rendered like this: ``` <img src="data:image/png;base64,....." /> ``` the image was not rendered when inside of an html text. Instead one has to replace `data:image/png;base64,` with `@`which in my opinion is not ideal and an overhead. tecnickcom#179
@detook solution works, but so is @LittleBigFox's if one is ok with modifying the static file. I personally find it very sad that we have to add an @ instead of the default:
I've created a PR with @LittleBigFox's fix: |
I'm not sure when this happened, but default base64 encoded images were no longer rendered in html text. If the image is rendered like this: ``` <img src="data:image/png;base64,....." /> ``` the image was not rendered when inside of an html text. Instead one has to replace `data:image/png;base64,` with `@`which in my opinion is not ideal and an overhead. tecnickcom#179
I'm not sure when this happened, but default base64 encoded images were no longer rendered in html text. If the image is rendered like this: ``` <img src="data:image/png;base64,....." /> ``` the image was not rendered when inside of an html text. Instead one has to replace `data:image/png;base64,` with `@`which in my opinion is not ideal and an overhead. tecnickcom#179 Update include/tcpdf_static.php Co-authored-by: William Desportes <williamdes@wdes.fr>
I'm not sure when this happened, but default base64 encoded images were no longer rendered in html text. If the image is rendered like this: ``` <img src="data:image/png;base64,....." /> ``` the image was not rendered when inside of an html text. Instead one has to replace `data:image/png;base64,` with `@`which in my opinion is not ideal and an overhead. tecnickcom#179 Update include/tcpdf_static.php Co-authored-by: William Desportes <williamdes@wdes.fr>
I'm not sure when this happened, but default base64 encoded images were no longer rendered in html text. If the image is rendered like this: ``` <img src="data:image/png;base64,....." /> ``` the image was not rendered when inside of an html text. Instead one has to replace `data:image/png;base64,` with `@`which in my opinion is not ideal and an overhead. tecnickcom#179 Update include/tcpdf_static.php Co-authored-by: William Desportes <williamdes@wdes.fr>
I'm not sure when this happened, but default base64 encoded images were no longer rendered in html text. If the image is rendered like this: ``` <img src="data:image/png;base64,....." /> ``` the image was not rendered when inside of an html text. Instead one has to replace `data:image/png;base64,` with `@`which in my opinion is not ideal and an overhead. tecnickcom#179 Update include/tcpdf_static.php Co-authored-by: William Desportes <williamdes@wdes.fr>
I'm use PHP 7.2.5 and after update TCPDF to 6.3.4, not rendering images with base64
images with filepath render OK.
on v6.2.13 rendering OK.
HTML example in text that not rendering base64
html_example.txt
The text was updated successfully, but these errors were encountered: