There is a way of getting this done explained in the Floorplanner Tech Blog. To compile dump-gnash on a fresh Maverick you'll need
sudo apt-get install gcc libboost-dev libboost-thread-dev libagg-dev libsdl1.2-dev libcairo-dev libgstreamer0.10-dev libatk1.0-dev libglib2.0-dev libpango1.0-dev libgtk2.0-dev libgtkglext1-dev libgl1-mesa-dev libgif-dev libjpeg-dev libgstreamer-plugins-base0.10-dev libspeex-dev libcurl-dev
And then you just follow the steps. This will take a long time.
NOTE: For Step 7 use the following script instead:
if [[ $3 ]]; then
raw="$(mktemp)"
dump-gnash $2 -P "FlashVars=url=file://$1" -D "$raw" --max-advances 1 -j 500 -k 500
tail -c 1MB "$raw" | convert -size 500x500 -depth 8 rgba:- -separate -swap 0,2 -combine -trim png:"$3"
trap "rm $raw" EXIT
else
echo "Insufficient arguments (expected 3 arguments)"
exit 1
fi
Once you have the final script running you just hook it into gconf-editor
gconftool-2 -s "/desktop/gnome/thumbnailers/application@swf" -t string "/usr/bin/swfthumbnailer.sh %s %i %o"
gconftool-2 -s "/desktop/gnome/thumbnailers/application@swf/enable" -t boolean 'true'
gconftool-2 -s "/desktop/gnome/thumbnailers/application@x-swf" -t string "/usr/bin/swfthumbnailer.sh %s %i %o"
gconftool-2 -s "/desktop/gnome/thumbnailers/application@x-swf/enable" -t boolean 'true'
gconftool-2 -s "/desktop/gnome/thumbnailers/application@x-shockwave-flash/command" -t string "/usr/bin/swfthumbnailer.sh %s %i %o"
gconftool-2 -s "/desktop/gnome/thumbnailers/application@x-shockwave-flash/enable" -t boolean 'true'
Then restart (or restart gnome-settings-daemon), and you've got swf thumbs!
P.S.: This is a huge hack. A better way to do this would be vastly appreciated.
Perhaps you can try turning off thumbnail rendering as a workaround: in Nautilus go to Edit>Preferences>Preview, and try turning a few of those options off.
I asked a similar question in the Inkscape user forum, and got this answer:
AFAIK the library used by Nautilus to render the preview thumbnails for SVG files (librsvg) supports fewer SVG features than Inkscape, and chokes on certain filter effects and linked images (IIRC of type 'jpeg' or 'tiff'), and possibly other items too.
See also: Bug #305546 in librsvg (Ubuntu): “Nautilus crashing/freezing when opening folder with svg file”.
Nothing Inkscape can do about that-> needs to be addressed in Nautilus (don't freeze) and librsvg (handle failures to render certain SVG files more graciously).
The bug report is here: https://bugs.launchpad.net/ubuntu/+source/librsvg/+bug/305546. Does that sound familiar?
Best Answer
This may happen if you get a different UID from the one you had before (this will remove you the ownership of those files). Try executing this on a terminal:
From 12.10 onward, thumbnais are also stored in
~/.cache/thumbnails
, so you may repeat the same process for this location.If none of those solves your issue, you can always remove them (they are automatically generated, and I think failed thumbs generations are cached):
Note: it's not the case of OP, but if you don't get previews to video files (ex: mkv, mp4) probably you are missing the video codec. This can be easily fixed by open the video with "Movie Player": it will propose a suitable codec.