Add epsacrop to programmatically added image field I'm adding an image field to my theme form in order to setup a default image for the user.
I'd like the user to be able to use EPSAcrop to crop the image he uploads here.

Is this possible, if so; How?

This is what I have now:

function MYTHEME_form_system_theme_settings_alter(&amp;$form, &amp;$form_state, $form_id = NULL)  {
  $form['header_images'] = array(
    '#title' =&gt; t('Header image'),
    '#type' =&gt; 'managed_file',
    '#description' =&gt; t('The default header image on every page. Unless a header image is selected in the node of the page.'),
    '#default_value' =&gt; variable_get('header_images', ''),
    '#upload_location' =&gt; 'public://header_images/',
    '#upload_validators' =&gt; array('file_validate_extensions' =&gt; array('png, jpg, gif')),
  );
}
I had the same problem. If you change managed_file to media, you will have availability to manage EPSA cropping for the form image.