I'm designing the backend for a blog system. (I'm a beginner) In the page where I create the post I use a big form for title, summary, category, content, tags etc.
Inside this form the committer request to me also the image upload form and the option to crop the uploaded image in 3 different format.
The problem of course is that I don't have uploaded my picture yet (usually I upload picture when I submit the form) but here I need tu upload, crop and save cropped file before submitting my form.
How can I obtain something like this?
My idea is to upload the image using ajax, then I will place a crop button that open a popup with a new page (and a new form) to crop the uploaded image.
I know that if I close the page without submitting form I create "spam", but I can't imagine other ways to obtain this.
Any idea or suggestion?