[Goodies-commits] r3000 - in thunar-thumbnailers/trunk: . dvi-thumbnailer odf-thumbnailer pdf-thumbnailer

Erlend Davidson erland at xfce.org
Wed Aug 15 19:02:23 CEST 2007


Author: erland
Date: 2007-08-15 17:02:23 +0000 (Wed, 15 Aug 2007)
New Revision: 3000

Added:
   thunar-thumbnailers/trunk/dvi-thumbnailer/
   thunar-thumbnailers/trunk/dvi-thumbnailer/Makefile.am
   thunar-thumbnailers/trunk/dvi-thumbnailer/dvi-thumbnailer
   thunar-thumbnailers/trunk/dvi-thumbnailer/dvi-thumbnailer.desktop.in
   thunar-thumbnailers/trunk/odf-thumbnailer/
   thunar-thumbnailers/trunk/odf-thumbnailer/Makefile.am
   thunar-thumbnailers/trunk/odf-thumbnailer/odf-thumbnailer
   thunar-thumbnailers/trunk/odf-thumbnailer/odf-thumbnailer.desktop.in
Modified:
   thunar-thumbnailers/trunk/ChangeLog
   thunar-thumbnailers/trunk/Makefile.am
   thunar-thumbnailers/trunk/configure.in.in
   thunar-thumbnailers/trunk/pdf-thumbnailer/pdf-thumbnailer
Log:
* Added a DVI thumbnailer which uses evince-thumbnailer when present, otherwise falls back to ImageMagick (convert).
* Added an OpenDocument Format thumbnailer

Modified: thunar-thumbnailers/trunk/ChangeLog
===================================================================
--- thunar-thumbnailers/trunk/ChangeLog	2007-08-15 06:32:08 UTC (rev 2999)
+++ thunar-thumbnailers/trunk/ChangeLog	2007-08-15 17:02:23 UTC (rev 3000)
@@ -1,3 +1,8 @@
+2007-08-15	Erlend Davidson <Erlend.Davidson at gmail.com>
+
+	* Added a DVI thumbnailer which uses evince-thumbnailer when present, otherwise falls back to ImageMagick (convert).
+	* Added an OpenDocument Format thumbnailer
+
 2007-08-13	Erlend Davidson <Erlend.Davidson at gmail.com>
 
 	* Implemented raw-thumbnailer (http://code.google.com/p/raw-thumbnailer) for thumbnailing of raw images - much faster

Modified: thunar-thumbnailers/trunk/Makefile.am
===================================================================
--- thunar-thumbnailers/trunk/Makefile.am	2007-08-15 06:32:08 UTC (rev 2999)
+++ thunar-thumbnailers/trunk/Makefile.am	2007-08-15 17:02:23 UTC (rev 3000)
@@ -11,6 +11,8 @@
 	ogg-thumbnailer							\
 	svgz-thumbnailer						\
 	pdf-thumbnailer							\
+	dvi-thumbnailer							\
+	odf-thumbnailer							\
 	mime
 
 distclean-local:

Modified: thunar-thumbnailers/trunk/configure.in.in
===================================================================
--- thunar-thumbnailers/trunk/configure.in.in	2007-08-15 06:32:08 UTC (rev 2999)
+++ thunar-thumbnailers/trunk/configure.in.in	2007-08-15 17:02:23 UTC (rev 3000)
@@ -43,6 +43,10 @@
       if test -z "$CONVERT"; then
 	 AC_MSG_ERROR([ImageMagick is required to build thunar-thumbnailers])
       fi
+AC_PATH_PROG(UNZIP, unzip)
+      if test -z "$UNZIP"; then
+	 AC_MSG_ERROR([unzip is required to build thunar-thumbnailers])
+      fi
 
 dnl *** check if we want raw image thumbnailing ***
 AC_ARG_ENABLE(enable-raw,
@@ -121,5 +125,7 @@
 ogg-thumbnailer/Makefile
 svgz-thumbnailer/Makefile
 pdf-thumbnailer/Makefile
+dvi-thumbnailer/Makefile
+odf-thumbnailer/Makefile
 mime/Makefile
 ])

Added: thunar-thumbnailers/trunk/dvi-thumbnailer/Makefile.am
===================================================================
--- thunar-thumbnailers/trunk/dvi-thumbnailer/Makefile.am	                        (rev 0)
+++ thunar-thumbnailers/trunk/dvi-thumbnailer/Makefile.am	2007-08-15 17:02:23 UTC (rev 3000)
@@ -0,0 +1,19 @@
+# $Id: Makefile.am 2296 2007-01-03 11:30:08Z benny $
+
+desktopdir = $(datadir)/thumbnailers
+
+libexec_SCRIPTS=dvi-thumbnailer
+desktop_in_files=dvi-thumbnailer.desktop.in
+
+%.desktop: %.desktop.in
+	sed -e "s,\@libexecdir\@,$(libexecdir),g" < $< > $@
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+
+EXTRA_DIST =								\
+	$(desktop_in_files)						\
+	$(libexec_SCRIPTS)
+
+DISTCLEANFILES =							\
+	$(desktop_DATA)
+
+# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:

Added: thunar-thumbnailers/trunk/dvi-thumbnailer/dvi-thumbnailer
===================================================================
--- thunar-thumbnailers/trunk/dvi-thumbnailer/dvi-thumbnailer	                        (rev 0)
+++ thunar-thumbnailers/trunk/dvi-thumbnailer/dvi-thumbnailer	2007-08-15 17:02:23 UTC (rev 3000)
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+#  Copyright 2007 Erlend Davidson <Erlend.Davidson at gmail.com>
+#
+#  This program is free software; you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; either version 2 of the License, or
+#  (at your option) any later version.
+#
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU Library General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program; if not, write to the Free Software
+#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# ps-thumbnailer - thumbnailer script for PS files.
+#
+# Usage: ps-thumbnailer ps-file png-file size
+#
+
+# command line parameters
+ifile=$1
+ofile=$2
+size=$3
+
+# evince-thumbnailer is better, check if that is installed
+if [ `which evince-thumbnailer` ]; then
+    exec evince-thumbnailer -s 128 "$ifile" "$ofile"
+fi
+
+# invoke convert (ImageMagick)
+exec convert "dvi:$ifile[0]" -scale "$sizex$size" "png:$ofile"


Property changes on: thunar-thumbnailers/trunk/dvi-thumbnailer/dvi-thumbnailer
___________________________________________________________________
Name: svn:executable
   + *

Added: thunar-thumbnailers/trunk/dvi-thumbnailer/dvi-thumbnailer.desktop.in
===================================================================
--- thunar-thumbnailers/trunk/dvi-thumbnailer/dvi-thumbnailer.desktop.in	                        (rev 0)
+++ thunar-thumbnailers/trunk/dvi-thumbnailer/dvi-thumbnailer.desktop.in	2007-08-15 17:02:23 UTC (rev 3000)
@@ -0,0 +1,10 @@
+
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Type=X-Thumbnailer
+Name=DVI Thumbnailer
+MimeType=application/x-dvi;
+X-Thumbnailer-Exec=@libexecdir@/dvi-thumbnailer %i %o %s
+
+# vi:set encoding=UTF-8:

Added: thunar-thumbnailers/trunk/odf-thumbnailer/Makefile.am
===================================================================
--- thunar-thumbnailers/trunk/odf-thumbnailer/Makefile.am	                        (rev 0)
+++ thunar-thumbnailers/trunk/odf-thumbnailer/Makefile.am	2007-08-15 17:02:23 UTC (rev 3000)
@@ -0,0 +1,21 @@
+# $Id: Makefile.am 2296 2007-01-03 11:30:08Z benny $
+
+if ENABLE_FFMPEG
+    libexec_SCRIPTS=odf-thumbnailer
+    desktop_in_files=odf-thumbnailer.desktop.in
+endif
+
+desktopdir = $(datadir)/thumbnailers
+
+%.desktop: %.desktop.in
+	sed -e "s,\@libexecdir\@,$(libexecdir),g" < $< > $@
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+
+EXTRA_DIST =								\
+	$(desktop_in_files)						\
+	$(libexec_SCRIPTS)
+
+DISTCLEANFILES =							\
+	$(desktop_DATA)
+
+# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:

Added: thunar-thumbnailers/trunk/odf-thumbnailer/odf-thumbnailer
===================================================================
--- thunar-thumbnailers/trunk/odf-thumbnailer/odf-thumbnailer	                        (rev 0)
+++ thunar-thumbnailers/trunk/odf-thumbnailer/odf-thumbnailer	2007-08-15 17:02:23 UTC (rev 3000)
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+#  Copyright 2007 Erlend Davidson <Erlend.Davidson at gmail.com>
+#
+#  This program is free software; you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; either version 2 of the License, or
+#  (at your option) any later version.
+#
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU Library General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program; if not, write to the Free Software
+#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# ffmpeg-thumbnailer - thumbnailer script for OGG files.
+#
+# Usage: ffmpeg-thumbnailer video-file png-file size
+#
+
+# command line parameters
+ifile=$1
+ofile=$2
+size=$3
+
+
+unzip -p "$ifile" Thumbnails/thumbnail.png | convert - +matte -scale "$sizex$size" "png:$ofile"


Property changes on: thunar-thumbnailers/trunk/odf-thumbnailer/odf-thumbnailer
___________________________________________________________________
Name: svn:executable
   + *

Added: thunar-thumbnailers/trunk/odf-thumbnailer/odf-thumbnailer.desktop.in
===================================================================
--- thunar-thumbnailers/trunk/odf-thumbnailer/odf-thumbnailer.desktop.in	                        (rev 0)
+++ thunar-thumbnailers/trunk/odf-thumbnailer/odf-thumbnailer.desktop.in	2007-08-15 17:02:23 UTC (rev 3000)
@@ -0,0 +1,9 @@
+
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Type=X-Thumbnailer
+Name=ODF Thumbnailer
+TryExec=unzip
+MimeType=application/vnd.oasis.opendocument.presentation;application/vnd.oasis.opendocument.presentation-template;application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.spreadsheet-template;application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;
+X-Thumbnailer-Exec=@libexecdir@/odf-thumbnailer %i %o %s

Modified: thunar-thumbnailers/trunk/pdf-thumbnailer/pdf-thumbnailer
===================================================================
--- thunar-thumbnailers/trunk/pdf-thumbnailer/pdf-thumbnailer	2007-08-15 06:32:08 UTC (rev 2999)
+++ thunar-thumbnailers/trunk/pdf-thumbnailer/pdf-thumbnailer	2007-08-15 17:02:23 UTC (rev 3000)
@@ -28,7 +28,7 @@
 
 # evince-thumbnailer is better, check if that is installed
 if [ `which evince-thumbnailer` ]; then
-    exec evince-thumbnailer -s 128 $ifile $ofile
+    exec evince-thumbnailer -s 128 "$ifile" "$ofile"
 fi
 
 # invoke convert (ImageMagick)




More information about the Goodies-commits mailing list