Low System Resources when batch processing lots of pictures

Post Reply
RocckLobster

Low System Resources when batch processing lots of pictures

Post by RocckLobster »

I have a folder with approximately 1475 photos in it. I set up a batch task to resize each photo to 800x600 and save to the same folder and then close the file before proceeding to the next one. The task runs until about the 1450th file and then stops with a message indicating that the computer is low on system resources and suggests that I close other programs.

Computer configuration: ASUS A8N-SLI Premium; AMD 64 X2 4400+ Dual Core; 4gb RAM; WD Raptor 74gb 10,000 RPM SATA boot drive; Two WD Caviar 320gb SATA data drives; eVGA nVidia 7800+ GT 256mb.

No other programs are running when I run this task. However, there are other applets running in my system tray, such as anti-virus and Norton Ghost. Canceling all system tray programs does not resolve the problem.

Any suggestions?

Thanks.
keenart

Post by keenart »

You didn't say what the resolution was or to what file type you were saving.

However, try saving to a different and empty Folder. Then you won't have to rewrite all of those files. That takes a lot of resources.

If you have anti-virus auto-protect on you might turn this feature off to conserve more memory, since it will check each file you Batch. You can always scan the Folder later.

If you have Drag and Drop CD\DVD enabled, you might exit the program and conserve a bit more.

Other than that I have batched 5000 files at a time and only have a gig of memory and have never run out of memory yet.
RocckLobster

Post by RocckLobster »

The reason I'm saving them all to the same folder is that I've already gone through the process of using xxcopy to copy them from their original location (My Documents\My Pictures\*\*) to a new folder at the root level for ease of copying from there to a wireless digital picture frame.

What would make this whole task easier is if there were some way to use PI to batch process the size change (jpg format with about 90% quality) from the original location and save to a new folder without preserving the original folder structure. Do you know if there's a way to do that?

Thanks.
keenart

Post by keenart »

Gotcha!! As a matter of fact, Yes, I use the feature Ulead calls Batch Task.

On the Quick Command Panel, next to History click the tab Task. The Icon just below the Task Tab to the far right is called Batch Task.

You Record a Task that modifies an image, much like an Action in Photoshop, or a Script in PSP. You then use the feature Batch Task to call your new Task and batch files with the desired actions.

I have used this feature successfully on as many as 2500 images in one batch.
RocckLobster

Post by RocckLobster »

Yes, that is what I'm trying to do. However, I don't see a way to tell it to batch process all files in all subfolders, but save the results to a new folder WITHOUT creating the subfolder structure and saving the files to the same subfolders in the new folder.

Hope that makes sense....
keenart

Post by keenart »

Okay! Now it is my turn to confuse.

The way Batch Task works is you check the box named Include all subfolders on the Batch Task dialog Box. Then check Save to this folder and close, type in a new Folder name. When Batch Task begins to run, it will ask you if you want to create a new Folder each time is reads from the original. You click OK on the dialog box each time and it creates the Folder or subfolder for you and Saves the files in the new format.

What you have done is change the name of the first Folder. However, all of the remaining Folders will have the original Folder's name. Because the first Folder’s name is different, all of the files processed by Batch Task will be in another location in Folders with original names, with the exception of the first Folder. Your original files remain in tact.
RocckLobster

Post by RocckLobster »

Yes, it sounds like I have been successful in confusing you! Here's what I'm trying to do:

Original folder structure:
My Pictures\Folder 1\File1.jpg
My Pictures\Folder 2\File2.jpg
My Pictures\Folder 3\File 3.jpg

New folder structure:
My New Pictures\File1.jpg
My New Pictures\File2.jpg
My New Pictures\File3.jpg

So, the end result is that all files in My Pictures are copied to My New Pictures but they are moved from their original sub-folders to the root of the new folder. This process is also known as "flattening" the directory structure.

Can the Batch Task do that?

Thanks!
keenart

Post by keenart »

NO! If you deny the request to create the subfolder during the Batch Task process, it will terminate at the last file in the last Folder.

In addition, The Browse Manager also has a Batch Convert and Batch Task.
RocckLobster

Post by RocckLobster »

OK, thanks for all your information!
keenart

Post by keenart »

I often spend a lot of time copying files from subfolders to a temp before converting them to a single folder.
To Batch from subFolders to a single Folder is a good idea. You ought to send Ulead a nice hint and request they put this feature in the next upgrade. I think I have used up my allotment and have already sent in half a dozen requests myself.
http://www.ulead.com/pi/feedback.htm
RocckLobster

Post by RocckLobster »

I use a free tool called xxcopy. Just Google it and you'll find the free download page. It works in a DOS command shell; just type xxcopy /? and you'll see all the parameters. Using the /sg parameter lets you copy from all subfolders to single folder. It's fast too.

Here's an example of a command that can be saved in a batch file and executed from your desktop:

xxcopy "c:\documents and settings\xxUserNamexx\my documents\my pictures\*.jpg" /sg "e:\my pictures\photo frame\"
keenart

Post by keenart »

Thanks!!! I will give it a try.
Post Reply