Why file names matter at all
Google's image-search documentation lists the filename in the URL as one signal among several that contribute to how the algorithm understands an image. The signal is small individually — significantly smaller than alt text or surrounding context — but it is free to add at upload time, and it compounds. A site with 500 product images, each named descriptively, has 500 small URL-level signals supporting image search visibility. The same site with images named IMG_4982, IMG_4983, IMG_4984 throws away every one of them.
What Squarespace preserves and what it strips
Squarespace processes uploads through a sanitiser: spaces become hyphens, uppercase becomes lowercase, special characters are stripped, and the resulting slug is appended to a hash-prefixed CDN path. The descriptive part of your filename survives — that is the part you control. The hash prefix Squarespace adds is not editable, but it does not affect SEO because Google reads the human-readable slug in the URL, not the hash.
The naming pattern that works
Three rules cover almost every case. (1) Describe the image content, not the page topic. 'kitchen-renovation-before-after.jpg' is better than 'best-kitchen-renovator-nyc.jpg' on a kitchen image — the latter is keyword-stuffed, the former is descriptive. (2) Use hyphens between words, never underscores or spaces. (3) Keep it under 60 characters where possible. Longer names work but are harder to scan in the CDN URL.