I need to resize, adjust and overwrite uploaded photos.
I cannot find documentation on how to save the image back over itself.
I have so far
var newImage = document.transformImage("image/jpeg","-normalize -resize 1024x768", document.parent);
This gives me an error about the file existing.