dev-master
9999999-devConvert different files into a PNG
The Requires
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Convert different files into a PNG
A tool to convert most file formats to a PNG. This tool was written as I had a requirement to allow users to upload a multitude of file types and for this process to generate a thumbail from the user uploaded file where possible., (*1)
This can be used on the command line with, (*2)
php console.php pngify:convert <file> [<output>], (*3)
php console.php pngify:convert ~/Desktop/awesome_design.psd ~/Desktop/awesome_design.png, (*4)
Ensure you have LibreOffice installed., (*5)
Copy ./config.php.example to ./config.php. Update the binary path to SOffice., (*6)
On OSX the binary path is, (*7)
/Applications/LibreOffice.app/Contents/MacOS/soffice, (*8)
You can fire up a HTTP server for demonstration, (*9)
php -S <host>:<port>, (*10)
php -S localhost:8000, (*11)
and go to http://localhost:8000, (*12)
Finish It., (*13)
Convert different files into a PNG