I am trying to display thumbnails of uploaded images in a custom form. While I can see the images in my form array after uploading them to the tmp directory in Drupal, here is what I am trying to use to display them:
$url = file_create_url($form_object->uploads[$key]->uri); $output .= '<div class="grid-3">'.theme_image_style(array('style' => 'form-preview', 'path' => $url)).'</div>';
$url points to the file resource, I cannot show a resized image for the life of me. If I use an img tag and put
$url as its source, the images do show up, but they are huge.
Can I not call
theme_image_style() because these are just temp images and not permanent? I can make them appear with