Is there any way I can resize uploaded images to a smaller size?
E.g. somebody uploads an image of 1800 x 1800, and I would like to reduce the size to 800x800 max.
Would be saving big amounts of database storage. Esp. if there is no encoding of the images → can we convert them actually for better encoding?
Here is an example of a PNG of my users (it has 418 KB°!)
Using the image editor XNView and saving it again I have a PNG of only 16 KB°!
You can use something like PHP imagecopyresized() and then substitute the new image. If you Google that, you will find some sample code and even some functions where all you need are the input file.
You could even make a script that does this to your existing blobs. Q2A blob images can be output with an url like: http://talksec.com//?qa=blob&qa_blobid=8746650502015071737 so you can get this image, resize it, and rewrite it back to the db.
I would recommend doing this instead of trying to incorporate resizing into the editor.
To resize uploaded images to a smaller size is difficult if you don't have an image program.
I believe there must be an powerful image program which supports to do that.
You can just add one.Best wishes.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.
May 7, 2020: Q2A 1.8.4 released!