# imstack profile for priview in archive
{
    'sub' =>
        [
         { 
             # [ w, h, keep-exif(0/1) ]
             'sizes' => [ [1400,1050, 1],
                          [1024, 768, 1],
                          [ 800, 600, 1],
                          [ 600, 450, 0],
                          [ 400, 300, 0],
                          [ 300, 225, 0],
                          [ 200, 150, 0] ],

             # sub( $dirpart, $filepart, $w )
             'dir_file' => sub { 
                 my ($d,$f,$w) = @_; 
                 return ( sprintf( "%.4i/$d", $w ), "$f.jpg" );
             },

             'convert' => [ '-quality', '75' ],
         },
        
         ],
};
