I added one line to show a thumbnail of the images to be imported with Image_Import. To wit:


      $form['files']['dimensions'][$index] = array(
        '#type' => 'item',
        '#value' => $file->width .'x'. $file->height,
        '#suffix' => '<img src="'. base_path() . $file->filename . '" height="50px" />', //creates thumbnail for imported images before node creation
      );

Please comment and/or test.

Comments

neoliminal’s picture

I realized I didn't add enough information. New to patches and such.

file:
image_import.pages.inc

Line number 74-78...

Adding the line starting '#suffix' will put a thumbnail 50px in height under the height and width in that column.

neoliminal’s picture

Version: 6.x-1.x-dev » 6.x-1.0-alpha4
sun’s picture

Status: Needs review » Closed (duplicate)