A
A
Alexander Ivanov2022-03-02 14:00:44
PHP
Alexander Ivanov, 2022-03-02 14:00:44

How to fix error in FPDF with PNG files?

How to fix error in FPDF with PNG files? Uncaught Exception: FPDF error: Not a PNG file: Media/images/users/1/20220130155154793.png however the file is in .png format

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Adamos, 2022-03-02
@Adamos

Based on discussions of similar issues on SO, FPDF has a problem with transparent PNGs.

N
Nikolay Kaspor, 2022-03-03
@this_nicco

Use https://mpdf.github.io/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question