Photoshop: is there a size limit for brushes preferences file?

  • 1
  • Question
  • Updated 9 months ago
  • (Edited)
Lately I have come across two threads in which Photoshop users lost Brushes they had added on quitting. 
https://forums.adobe.com/thread/2453251?sr=inbox&ru=2186120
https://forums.adobe.com/thread/2451020?sr=inbox
In both cases reducing the »volume« below 2GB seemed to alleviate the problem. 

I found no definitive statement on this but I wonder if there is a size limit (or some other factor that could effectively act like that) for the »Brushes.psp« Preferences file? 

Regards, 
Pfaffenbichler
Photo of christoph pfaffenbichler

christoph pfaffenbichler, Champion

  • 1232 Posts
  • 178 Reply Likes

Posted 9 months ago

  • 1
Photo of Jaroslav Bereza

Jaroslav Bereza

  • 809 Posts
  • 187 Reply Likes
This file will be most likely in binary form like this: https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/

And there usually are values which contain a length of a segment. These lengths usually are 2,4,8 bytes length.

For example length of length layer and mask section is 4 bytes but in PSB it is 8 bytes. And PSB supports bigger documents.

So with file format specification, we could be sure.
Photo of christoph pfaffenbichler

christoph pfaffenbichler, Champion

  • 1232 Posts
  • 178 Reply Likes
I guess the psp is identical to a corresponding abr but that does not seem to turn up on that page. 
Photo of Jaroslav Bereza

Jaroslav Bereza

  • 809 Posts
  • 187 Reply Likes
.ABR is here in specification from 2007 https://www.fsdeveloper.com/forum/attachments/photoshop-file-formats-pdf.9252/
So there might be a new version.
Photo of Jaroslav Bereza

Jaroslav Bereza

  • 809 Posts
  • 187 Reply Likes
The number of brushes has 2 bytes so... limit should be 65 536 brushes in the file.
Photo of Jaroslav Bereza

Jaroslav Bereza

  • 809 Posts
  • 187 Reply Likes
And there is section:  Number of bytes in the remainder of the brush definition. Photoshop uses this information to skip over brush types that it doesn't understand.

It has 4 bytes length which leads me to 4 294 967 296 which should be 4.295 GB but maybe I don't understand properly. But if first bit would allow negative values then it could be 2.1474 GB or not?
Photo of christoph pfaffenbichler

christoph pfaffenbichler, Champion

  • 1232 Posts
  • 178 Reply Likes
Thanks for the research.