Skip to content

Instantly share code, notes, and snippets.

@cvmat
Created November 13, 2009 02:38
Show Gist options
  • Save cvmat/233536 to your computer and use it in GitHub Desktop.
Save cvmat/233536 to your computer and use it in GitHub Desktop.
diff -r 9d6d50d683d5 twittering-mode.el
--- a/twittering-mode.el Sun Aug 09 23:08:27 2009 +0900
+++ b/twittering-mode.el Fri Nov 13 11:24:51 2009 +0900
@@ -567,7 +567,7 @@
(when (and icon-string twittering-icon-mode)
(set-text-properties
1 2 `(display
- (image :type ,(twittering-image-type fullpath)
+ (image :type png
:file ,fullpath))
icon-string)
icon-string)
@@ -1096,7 +1096,7 @@
#'start-process
"wget-images"
(twittering-wget-buffer)
- "wget"
+ "sh" (expand-file-name "~/bin/wget-and-convert.sh")
(format "--directory-prefix=%s" twittering-tmp-dir)
"--no-clobber"
"--quiet"
#!/bin/sh
TMPDIR=${1#*=}
echo $TMPDIR
wget $*
shift 3
cd $TMPDIR
for url in $* ; do
convert -resize 48x48 ${url##*/} png:- > __tmp.dat
mv __tmp.dat ${url##*/}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment