Scratch disk fills up while batch processing

  • 1
  • Problem
  • Updated 1 year ago
Using Photoshop CC 2017.1.1. Scratch disk fills up completely when batch processing about 500 JPGs of around 12MB each. Reproducible as follows:

1. Start recording a new action
2. Open one JPG
3. Save to new location as JPG with quality 10 (it will reduce the 12MB JPG to about 4MB)
4. Close the JPG
5. Stop recording the action
6. File -> Automate -> Batch...
7. Choose the just recorded action
8. Choose the folder with the 500 JPGs
9. Choose override action open commands
10. Choose destination Folder
11. Choose a different folder to save the JPGs to
12. Choose override action save as commands

All other options are unchecked. After starting the action the first ~100 JPGs are processed reasonably fast (opened, saved, closed). After that the process slows down and the scratch disk (which is a different one than the system drive or the drive with the JPGs) starts to fill up. With 500 JPGs of 12MB each it manages to fill about 60GB of data, which in my case meant every bit of free space on it. About 20 JPGs where not processed because the scratch disk was full.

After closing PS is releases the scratch disk data and I can process the last few files. The processed folder is approximately 2GB. PS does not seem to release the memory of a file processed after it has been closed until PS is closed as well.

Exact version copied from system info:
Adobe Photoshop Version: 2017.1.1 20170425.r.252 2017/04/25:23:00:00 CL 1113967  x64
Photo of Paul van de Sande

Paul van de Sande

  • 4 Posts
  • 0 Reply Likes
  • disappointed

Posted 1 year ago

  • 1
Photo of Todd Shaner

Todd Shaner, Champion

  • 1071 Posts
  • 346 Reply Likes
It sounds like the action File> Close step isn't happening. Try unchecking 'Save in Background' in PS Preferences, restart PS, and then recreate the action.
Photo of Paul van de Sande

Paul van de Sande

  • 4 Posts
  • 0 Reply Likes
Thanks. Visually I see each file opening and closing. After the batch ends normally (with a small number of files to process) I see no open files in Photoshops workspace. Edit: tried unchecking 'Save in background' and recreating the action, but alas my harddrive still fills up with a Photoshop Temp file.
(Edited)
Photo of eartho

eartho

  • 814 Posts
  • 198 Reply Likes
By the way, what you're creating as an action is already built into Ps with the File / Scripts / Image Processor or Image Processor Pro if you need more options.
(Edited)
Photo of Paul van de Sande

Paul van de Sande

  • 4 Posts
  • 0 Reply Likes
Thank you. The action above to reproduce the problem is a simplified version of the actual action I want to run on my files. This simple version leads to the exact same scratch disk problems. Easier to follow than an action with a bunch of other steps between the open and save steps of the action.