1👍
✅
This sort of thing was quite possible in the past with the help of Java applets. In fact, I built one of the first applets to do so. It could resize images on the fly or compress any file before update but I digress. Nowadays applets are not widely supported in browsers.
You do have the option of using one of several javascript file uploaders that allow loading an image into a canvas. See this excellent tutorial on MDN on how to use the canvas. This QA explains how to load an image into the canvas.
👤e4c5
1👍
That’s not a thing you can do. Django code runs on the server. The only code you can run locally is Javascript in the browser.
- [Answered ]-How to get latest value of a field on a related model in Django?
- [Answered ]-Serialize the creation of user and profile django rest framework
- [Answered ]-OneToOneField is not working django
- [Answered ]-Django 1054, "Unknown column 'emp_id' in 'field list"
- [Answered ]-Django: call standard command from a custom command
Source:stackexchange.com