0

As part of a PHP based application which I have to develop, I have been asked to incorporate a feature which allows non-tech-savvy users to make a simple advertising poster, just some text & maybe images, possibly by choosing from a few templates, possibly by drag/drop almost like a drawing program.

I have argued that the user should use an external web page design program and then import it into my app, but to no avail.

using templates could be simple enough, drag/drop like a drawing program would require more effort on my part.

Is there any existing gratis software that would let me incorporate simple poster design into my PHP application?

2

1 Answer 1

1

Fabric.js

  • Provides rich functionality around a drawing <canvas>.
  • Objects (shapes) can be moved, scaled and rotated. Text fields and images are such objects, for instance.

  • Drag and Drop with canvas-external objects can be easily implemented. I've once done it with images which can be moved onto the canvas via the mouse.

  • Loading the state from JSON and saving to it is possible. This method could be used for your templates: When loading the site or when clicking a reset button, the program would just reload the default JSON data.

Further possibilities are outlined in another answer of mine: Custom drawing tool with HTML Canvas

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.