I have multiple svg files in a single folder and only a few of them have thumbnails – all those less than 10MB have thumbnails and all those larger do not. Is there a size limit for generating thumbnails in finder? Is there some way of increasing that limit?
MacOS – Thumbnails in Finder for larger files
findermacos
Related Solutions
The setting your refer to, is stored in a hidden Finder file called .DS_STORE
This file is obviously overwritten by your friend’s Mac who obviously uses different settings.
As far as I know, there’s no way (other than perhaps making the file .DS_STORE read only in the USB so your friend’s Mac cannot write the “new annoying settings” to it).
You’ll need to jump into the Terminal (/Applications/Utilities/Terminal.app)
Connect your USB Drive, open Terminal.
In Terminal, type:
cd /Volumes
ls
You should see your own Macintosh HD (or whatever name your internal drive(s) have) and the USB drive (with the name it might have).
Cd into the USB drive like:
cd MyUSBDrive
if the drive has spaces in its name, you must enclose it between quotes
For example:
cd “My Strange USB”
Once in there, you can perform an ‘ls’ to view the contents of the USB. Do that to make sure it’s the right one. Else go back to cd /Volumes and start over :)
Now adjust the settings in the finder the way you want them.
Done?
Now to change the permissions in the USB drive:
sudo chmod 444 .DS_Store
NOTE: The above command might ask you for your password, that is ok. The password won’t be seen when you type it. Just type your password and press enter. Remember the commands in Terminal are case sensitive.
What does that do?: chmod is a command that changes the permissions of files and/or directories. In this case, since the file is a hidden file from the finder, we have to do the job from the terminal (which can always see hidden things). The numbers (444) are read only for everybody.
If you don’t know what chmod does or how it works (or why 444) I recommend you take a look at the help (man page) for the command. In Terminal type:
man chmod
Will this work? To be honest, I don’t know. I believe it will, but I’m not sure if ACLs are preserved in USB devices. If the USB is formatted with FAT32 (they usually are so Windows can read/write) the above might not work.
Other than that, there’s no magical way to tell finder do this, and do it this way. Because if there’s a .DS_Store file, Finder will read settings from there.
Any subsequent attempts to rename them or change their extension fails to remove their thumbnail or JPEG association.
Why is this? And how can clear the thumbnails?
These image files might have the thumbnails saved as resource-fork-based custom icon resources.
Images saved from apps like Photoshop, Graphic Converter, etc. will sometimes generate a thumbnail that becomes part of the file. For example, here's a look at an image file in an app that shows the different fork sizes:
While the data fork is less than 4 KB, the resource fork is 44 KB.
Inside the resource fork is all kinds of stuff, like:
and then the custom icon resource:
While image apps can do this, you can also give a file or folder a custom icon by opening a Get Info window for different files, and copy and paste the icon from one file to another.
[EDIT] NOTE: See the AppleScript that I mention below, which will do everything you need. I'll leave the following step by step instructions FWIW.
So, you may be able to clear the custom icons by using the following method:
1) Open up the Finder's Inspector window by pressing Command-Option-i (the Inspector is basically a dynamic Get Info window).
2) In a Finder window, select the files that still have their thumbnail icon.
3) In the Inspector panel, click on the icon of the documents, as shown in the image below:
(The icon will have a blue outline when selected).
4) Press the delete key to delete the custom icons.
————————————
Regarding the following comment you posted above:
"I was merely renaming the extensions so the thumbnails would not show. Now they are all of the form "123.info", but some still show thumbnails and even open as if they were still .jpeg files."
What's most likely happening here is that the files were saved in an application that set a file type of 'JPEG'. In Mac OS X, Launch Services uses a combination of the file's filename extension (if any) along with its file type (if any) to determine what type of content the file represents. "info" isn't a normal filename extension that's built-in to the OS, so if there's no application on your Mac that claims that filename extension, then the Finder (Launch Services, really) will regard the file as a JPEG image.
I created a combination AppleScript that will both clear any file type and creator code information, as well as delete the resource fork. (Contrary to common belief, file type and creator codes aren't stored in the resource fork, but in the disk directory information (FSCatalogInfo
), so deleting only the resource fork isn't sufficient. Also, when a file has a custom icon, there is also a flag that is set in the FSCatalogInfo
to that effect. This flag needs to be cleared in addition to deleting the resource fork).
ClearCustomIconFileTypeAndCreatorCode.zip
Drop a selection of files onto it to have the custom icon, file type, and creator codes cleared.
The contents of the script are as follows:
on open droppedItems
repeat with i from 1 to count of droppedItems
set droppedItem to item i of droppedItems as alias
set droppedItemInfo to info for droppedItem
if (folder of droppedItemInfo) is false then
do shell script "/usr/bin/xattr -d com.apple.FinderInfo " & quoted form of POSIX path of droppedItem
do shell script "/usr/bin/xattr -d com.apple.ResourceFork " & quoted form of POSIX path of droppedItem
end if
end repeat
end open
Related Question
- MacOS – How to disable thumbnails icon preview only for video files in Finder
- MacOS – Limit the scope of tag search in Finder on Mavericks
- MacOS – Why do symlinks in a duplicated folder turn into files after a few seconds
- Finder/Terminal: Find files that contain less than 21 lines of text
- Is it possible to configure Finder to report hard-links size only once
- N SVG version of the Finder icon from macOS Big Sur
Best Answer
Finder will not generate thumbnails for files larger than 10 MB, unless it's a package with a Quick Look preview pre-generated, such as a large Pages document. It doesn't seem to be possible to increase the limit currently. You can provide feedback to Apple here: