I've the next form.
$form['imagen'] = array(
'#title' => t('Image'),
'#type' => 'managed_file',
'#upload_validators' => array('file_validate_extensions' => array('jpeg jpg png gif')),
'#upload_location' => 'public://',
'#progress_indicator' => 'throbber',
'#status' => FILE_STATUS_PERMANENT,
'#progress_message' => 'One moment while we save your file...',
);
That generates something like this:
What I need is to give the user the option to see the image that he has upload, and resize the image. The functionality that I need, is the same that the ImageField_crop module gives.
I'm totally lost. I don't know how to add this functionality to the form. It's totally necessary for the project to insert this form in a custom module, because I have a multistep form.
Does anybody know how to do this??
Thank you very much.