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: 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 | # ]