Question

I have a bit of an interesting one here. In our team there are 2 people working on one project on macs, both using MAMP Pro and the same codebase, why then is it that one machine can happily produce PDF documents with images in in the data:image... format and the other one can't?

Both can see the data uri and both can generate the html with it in, both are happy with normal images but one of them throws an error: file_put_contents(): Filename cannot be empty error.

I'm at a loss with this so can anyone please shed some light on it?

Many thanks everyone, Gareth

Was it helpful?

Solution

Quick requirements for image processing:

  1. Read/Write access to DOMPDF_TEMP_DIR
  2. Availability of the GD PHP extension
  3. For images fetched via web server, allow_url_fopen enabled
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top