[Goodies-commits] r2960 - in thunar-thumbnailers/trunk: . pdf-thumbnailer svgz-thumbnailer
Erlend Davidson
erland at xfce.org
Tue Aug 7 13:19:31 CEST 2007
Author: erland
Date: 2007-08-07 11:19:31 +0000 (Tue, 07 Aug 2007)
New Revision: 2960
Added:
thunar-thumbnailers/trunk/pdf-thumbnailer/
thunar-thumbnailers/trunk/pdf-thumbnailer/Makefile.am
thunar-thumbnailers/trunk/pdf-thumbnailer/pdf-thumbnailer
thunar-thumbnailers/trunk/pdf-thumbnailer/pdf-thumbnailer.desktop.in
thunar-thumbnailers/trunk/svgz-thumbnailer/
thunar-thumbnailers/trunk/svgz-thumbnailer/Makefile.am
thunar-thumbnailers/trunk/svgz-thumbnailer/svgz-thumbnailer
thunar-thumbnailers/trunk/svgz-thumbnailer/svgz-thumbnailer.desktop.in
Modified:
thunar-thumbnailers/trunk/ChangeLog
thunar-thumbnailers/trunk/Makefile.am
thunar-thumbnailers/trunk/configure.in.in
Log:
* Added an SVGZ (compressed svg) thumbnailer
* Added a PDF thumbnailer which uses evince-thumbnailer when present, otherwise falls back to ImageMagick (convert).
Modified: thunar-thumbnailers/trunk/ChangeLog
===================================================================
--- thunar-thumbnailers/trunk/ChangeLog 2007-08-07 08:27:31 UTC (rev 2959)
+++ thunar-thumbnailers/trunk/ChangeLog 2007-08-07 11:19:31 UTC (rev 2960)
@@ -1,3 +1,8 @@
+2007-08-07 Erlend Davidson <Erlend.Davidson at gmail.com>
+
+ * Added an SVGZ (compressed svg) thumbnailer
+ * Added a PDF thumbnailer which uses evince-thumbnailer when present, otherwise falls back to ImageMagick (convert).
+
2007-07-04 Erlend Davidson <E.R.M.Davidson at sms.ed.ac.uk>
* Added a new Ogg Thumbnailer which is enabled whenever ffmpeg-thumbnailer is (bug #3183)
Modified: thunar-thumbnailers/trunk/Makefile.am
===================================================================
--- thunar-thumbnailers/trunk/Makefile.am 2007-08-07 08:27:31 UTC (rev 2959)
+++ thunar-thumbnailers/trunk/Makefile.am 2007-08-07 11:19:31 UTC (rev 2960)
@@ -9,6 +9,8 @@
agr-thumbnailer \
ffmpeg-thumbnailer \
ogg-thumbnailer \
+ svgz-thumbnailer \
+ pdf-thumbnailer \
mime
distclean-local:
Modified: thunar-thumbnailers/trunk/configure.in.in
===================================================================
--- thunar-thumbnailers/trunk/configure.in.in 2007-08-07 08:27:31 UTC (rev 2959)
+++ thunar-thumbnailers/trunk/configure.in.in 2007-08-07 11:19:31 UTC (rev 2960)
@@ -103,6 +103,7 @@
AM_CONDITIONAL(DISABLE_UPDATE_MIME_DATABASE, test "$disable_update_mime_database" = "yes")
+
AC_OUTPUT([
Makefile
eps-thumbnailer/Makefile
@@ -113,5 +114,7 @@
agr-thumbnailer/Makefile
ffmpeg-thumbnailer/Makefile
ogg-thumbnailer/Makefile
+svgz-thumbnailer/Makefile
+pdf-thumbnailer/Makefile
mime/Makefile
])
Added: thunar-thumbnailers/trunk/pdf-thumbnailer/Makefile.am
===================================================================
--- thunar-thumbnailers/trunk/pdf-thumbnailer/Makefile.am (rev 0)
+++ thunar-thumbnailers/trunk/pdf-thumbnailer/Makefile.am 2007-08-07 11:19:31 UTC (rev 2960)
@@ -0,0 +1,19 @@
+# $Id: Makefile.am 2296 2007-01-03 11:30:08Z benny $
+
+desktopdir = $(datadir)/thumbnailers
+
+libexec_SCRIPTS=pdf-thumbnailer
+desktop_in_files=pdf-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/pdf-thumbnailer/pdf-thumbnailer
===================================================================
--- thunar-thumbnailers/trunk/pdf-thumbnailer/pdf-thumbnailer (rev 0)
+++ thunar-thumbnailers/trunk/pdf-thumbnailer/pdf-thumbnailer 2007-08-07 11:19:31 UTC (rev 2960)
@@ -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 "pdf:$ifile[0]" -scale "$sizex$size" "png:$ofile"
Property changes on: thunar-thumbnailers/trunk/pdf-thumbnailer/pdf-thumbnailer
___________________________________________________________________
Name: svn:executable
+ *
Added: thunar-thumbnailers/trunk/pdf-thumbnailer/pdf-thumbnailer.desktop.in
===================================================================
--- thunar-thumbnailers/trunk/pdf-thumbnailer/pdf-thumbnailer.desktop.in (rev 0)
+++ thunar-thumbnailers/trunk/pdf-thumbnailer/pdf-thumbnailer.desktop.in 2007-08-07 11:19:31 UTC (rev 2960)
@@ -0,0 +1,10 @@
+
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Type=X-Thumbnailer
+Name=PDF Thumbnailer
+MimeType=application/pdf;
+X-Thumbnailer-Exec=@libexecdir@/pdf-thumbnailer %i %o %s
+
+# vi:set encoding=UTF-8:
Added: thunar-thumbnailers/trunk/svgz-thumbnailer/Makefile.am
===================================================================
--- thunar-thumbnailers/trunk/svgz-thumbnailer/Makefile.am (rev 0)
+++ thunar-thumbnailers/trunk/svgz-thumbnailer/Makefile.am 2007-08-07 11:19:31 UTC (rev 2960)
@@ -0,0 +1,20 @@
+# $Id: Makefile.am 2296 2007-01-03 11:30:08Z benny $
+
+libexec_SCRIPTS = \
+ svgz-thumbnailer
+
+desktopdir = $(datadir)/thumbnailers
+desktop_in_files = \
+ svgz-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/svgz-thumbnailer/svgz-thumbnailer
===================================================================
--- thunar-thumbnailers/trunk/svgz-thumbnailer/svgz-thumbnailer (rev 0)
+++ thunar-thumbnailers/trunk/svgz-thumbnailer/svgz-thumbnailer 2007-08-07 11:19:31 UTC (rev 2960)
@@ -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.
+#
+# eps-thumbnailer - Example thumbnailer script for EPS files.
+#
+# Usage: eps-thumbnailer eps-file png-file size
+#
+
+# command line parameters
+ifile=$1
+ofile=$2
+size=$3
+
+# invoke convert (ImageMagick)
+exec convert "svgz:$ifile" -scale "$sizex$size" "png:$ofile"
Property changes on: thunar-thumbnailers/trunk/svgz-thumbnailer/svgz-thumbnailer
___________________________________________________________________
Name: svn:executable
+ *
Added: thunar-thumbnailers/trunk/svgz-thumbnailer/svgz-thumbnailer.desktop.in
===================================================================
--- thunar-thumbnailers/trunk/svgz-thumbnailer/svgz-thumbnailer.desktop.in (rev 0)
+++ thunar-thumbnailers/trunk/svgz-thumbnailer/svgz-thumbnailer.desktop.in 2007-08-07 11:19:31 UTC (rev 2960)
@@ -0,0 +1,10 @@
+
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Type=X-Thumbnailer
+Name=SVGZ Thumbnailer
+MimeType=image/svg+xml-compressed;
+X-Thumbnailer-Exec=@libexecdir@/svgz-thumbnailer %i %o %s
+
+# vi:set encoding=UTF-8:
More information about the Goodies-commits
mailing list