Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Create icon previews and more in the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Create icon previews and more in the Terminal
Authored by: elmimmo on Feb 15, '04 03:50:29PM

It looked sort of a nice way to create thumbnails for image files, but it turned rather useless for me since instead of just adding a thumbnail, it seems to delete the original file after creating a copy of it, effectively erasing the original creation date and any custom comments the file might have. Is there any trick for it not to mess with more than just adding (or updating) an icon to the resource fork?



[ Reply to This | # ]
10.3: Create icon previews and more in the Terminal
Authored by: alys on May 06, '04 10:24:02PM

First, create a copy of your image file yourself. Run the sips command over that COPY. Then view the info for the modified image (cmd-i). At the top of the info window is the tiny icon. Click on the icon so that it's surrounded by a blue line (look carefully! It's not very obvious.) Do a Copy command to put the icon image in the clipboard. Now view the info for your original image, click on the icon and Paste.



[ Reply to This | # ]
10.3: Create icon previews and more in the Terminal
Authored by: Mikehkg on Dec 03, '07 09:24:57AM

re: It looked sort of a nice way to create thumbnails for image files, but it turned rather useless for me since instead of just adding a thumbnail, it seems to delete the original file after creating a copy of it

answer: This is due to your wrong command; just add the new filename you want for the thumbnail after the filename to be cp'd:

cp /Users/me/documents/large.jpg /Users/me/documents/small.jpg

then execute a second command to resize the thumb into the wanted size:
sips -Z 180 /Users/me/documents/small.jpg -- 180 is the target pixel size
i also like the rotate function:
sips -r 90 /Users/me/documents/small.jpg

Nothing beats a Mac.



[ Reply to This | # ]