I have created an image manipulation form, so that users can very simply rotate, crop and resize photos without leaving the database.
It uses the excellent free image software Irfanview, with a Shell call and command line arguments. (You put the path to the Irfanview folder at the start of the module).
The main problem is that if a user clicks a button before the previous command has completed, the whole database crashes. I have tried several bits of code to wait till the shell process finishes, but they dont seem to work with all the command line arguments I need to use.
The second problem is that I cant find a way to get the width and height of the images, which I need in order to crop.
There is code in module 3 that supposedly does this, but I cant get it to work.
It uses the excellent free image software Irfanview, with a Shell call and command line arguments. (You put the path to the Irfanview folder at the start of the module).
The main problem is that if a user clicks a button before the previous command has completed, the whole database crashes. I have tried several bits of code to wait till the shell process finishes, but they dont seem to work with all the command line arguments I need to use.
The second problem is that I cant find a way to get the width and height of the images, which I need in order to crop.
There is code in module 3 that supposedly does this, but I cant get it to work.