A dynamic portfolio try this idea:
If you want a easy solution for importing portfolio stuff, you can use a php script like
$counter = 0;
$pictures=array(); //makes an array to dump your images into
$directory = dirname(__FILE__).'/library/img/'; // define image directory here
foreach (glob($directory.'*.jpg') as $pathToImage) //adds all .jpegs to the array. You can change this to work for whatever image output format you use. Will only pick up jpg's as written, but can be modified for whatever format(s)
$filename = basename($pathToImage);
$image = 'library/img/' . $filename;
var items = <?php echo str_replace('\/','/',json_encode($pictures)); ?>;
This above will spit out all the images in a directory that match the file extension so you don't have to maintain an xml or json file yourself, but you have to be careful that nothing wonky winds up in the directory that way (mis-sized images, malicious scripts, etc). Works pretty good if you are passing the array to a slideshow plugin or something.
To make this work on your page, change the $directory variable to whatever image you store your images in, relative to (__FILE__), which is the location of the page calling the script.