FileUpload on Image in editor

FileUpload on Image in editor

yu yen kanyu yen kan Posts: 65Questions: 31Answers: 0

When I upload an image file, can I get the dimension or ratio of picture when upload?
And is there any image cropping plugin for data table editor?

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    can I get the dimension or ratio of picture when upload?

    You would use a custom upload action. In PHP you might the getimagesize function inside your custom upload action. Other platforms will probably have something similar. You can also crop the image with server-side methods.

    For cropping the image on the client-side, I'm not aware of any plug-ins at this time, but if you can find a suitable library, it should be quite possible to create a suitable plug-in.

    Allan

This discussion has been closed.