2017 © Pedro Peláez
 

library pngify

Convert different files into a PNG

image

simonbowen/pngify

Convert different files into a PNG

  • Wednesday, March 9, 2016
  • by simonbowen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PNGify

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)

Usage

Console

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)

Set up

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)

TODO

Finish It., (*13)

  • Validation on the HTTP request to ensure that we can handle the POST'd file
  • Write some more tests
  • Allow user to specify a file already on the server via HTTP, maybe with a $_GET var
  • Rudimentary thumbnailing of the generated files

The Versions

09/03 2016

dev-master

9999999-dev

Convert different files into a PNG

  Sources   Download

The Requires

 

The Development Requires