Is there a way to remove the preview icon of a gif or jpeg file ?
I made very little image file for the web, but they weight 45 Ko ! I guess this comes from the preview icons
Edit : I've added a screenshot to show you the informations i've got. Preview.app seems to be the most accurate…
As you can see, i used 3 ways to get the size information :
- from the finder, in the folder himself (45 ko)
- from the Get Info dialog box (45 ko)
- from the preview.app, General Info Box (0,5 Ko)
Best Answer
As mankoff said, the large size is probably a resource fork (with things like previews). To confirm this, use the Terminal command
ls -l@ /Volumes/Database/WebFolder/imgs/confirm.gif
-- you'll probably see something like this:If it doesn't show a 40kb resource fork, report back so we'll all have a better idea what's going on.
As long as the image is just for web use, a big resource fork isn't really an issue, since the web server will only serve the data fork (which is just 539 bytes long). If want to compact the file anyway, use the command
xattr -d com.apple.ResourceFork /Volumes/Database/WebFolder/imgs/confirm.gif
to remove the fork.