[Goodies-commits] r4833 - in thunar-thumbnailers/trunk: . psd-thumbnailer xcf-thumbnailer

Erlend Davidson erland at xfce.org
Wed May 21 16:31:12 CEST 2008


Author: erland
Date: 2008-05-21 14:31:12 +0000 (Wed, 21 May 2008)
New Revision: 4833

Added:
   thunar-thumbnailers/trunk/psd-thumbnailer/
   thunar-thumbnailers/trunk/psd-thumbnailer/Makefile.am
   thunar-thumbnailers/trunk/psd-thumbnailer/psd-thumbnailer
   thunar-thumbnailers/trunk/psd-thumbnailer/psd-thumbnailer.desktop.in
Modified:
   thunar-thumbnailers/trunk/Makefile.am
   thunar-thumbnailers/trunk/configure.in.in
   thunar-thumbnailers/trunk/xcf-thumbnailer/xcf-thumbnailer
Log:
Fixed a bug in the xcf thumbnailer, which stopped it flattening images
Added a new PSD (Photoshop) image thumbnailer


Modified: thunar-thumbnailers/trunk/Makefile.am
===================================================================
--- thunar-thumbnailers/trunk/Makefile.am	2008-05-19 22:40:52 UTC (rev 4832)
+++ thunar-thumbnailers/trunk/Makefile.am	2008-05-21 14:31:12 UTC (rev 4833)
@@ -14,6 +14,7 @@
 	dvi-thumbnailer							\
 	odf-thumbnailer							\
 	xcf-thumbnailer							\
+	psd-thumbnailer							\
 	mime
 
 distclean-local:

Modified: thunar-thumbnailers/trunk/configure.in.in
===================================================================
--- thunar-thumbnailers/trunk/configure.in.in	2008-05-19 22:40:52 UTC (rev 4832)
+++ thunar-thumbnailers/trunk/configure.in.in	2008-05-21 14:31:12 UTC (rev 4833)
@@ -128,5 +128,6 @@
 dvi-thumbnailer/Makefile
 odf-thumbnailer/Makefile
 xcf-thumbnailer/Makefile
+psd-thumbnailer/Makefile
 mime/Makefile
 ])

Added: thunar-thumbnailers/trunk/psd-thumbnailer/Makefile.am
===================================================================
--- thunar-thumbnailers/trunk/psd-thumbnailer/Makefile.am	                        (rev 0)
+++ thunar-thumbnailers/trunk/psd-thumbnailer/Makefile.am	2008-05-21 14:31:12 UTC (rev 4833)
@@ -0,0 +1,20 @@
+# $Id: Makefile.am 2296 2007-01-03 11:30:08Z benny $
+
+libexec_SCRIPTS =							\
+	psd-thumbnailer
+
+desktopdir = $(datadir)/thumbnailers
+desktop_in_files =							\
+	psd-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/psd-thumbnailer/psd-thumbnailer
===================================================================
--- thunar-thumbnailers/trunk/psd-thumbnailer/psd-thumbnailer	                        (rev 0)
+++ thunar-thumbnailers/trunk/psd-thumbnailer/psd-thumbnailer	2008-05-21 14:31:12 UTC (rev 4833)
@@ -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.
+#
+# psd-thumbnailer - Thumbnailer script for PSD files.
+#
+# Usage: psd-thumbnailer psd-file png-file size
+#
+
+# command line parameters
+ifile=$1
+ofile=$2
+size=$3
+
+# invoke convert (ImageMagick)
+exec convert "psd:$ifile[0]" -scale "$sizex$size" "png:$ofile"


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

Added: thunar-thumbnailers/trunk/psd-thumbnailer/psd-thumbnailer.desktop.in
===================================================================
--- thunar-thumbnailers/trunk/psd-thumbnailer/psd-thumbnailer.desktop.in	                        (rev 0)
+++ thunar-thumbnailers/trunk/psd-thumbnailer/psd-thumbnailer.desktop.in	2008-05-21 14:31:12 UTC (rev 4833)
@@ -0,0 +1,10 @@
+
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Type=X-Thumbnailer
+Name=PSD Thumbnailer
+MimeType=image/x-psd;
+X-Thumbnailer-Exec=@libexecdir@/psd-thumbnailer %i %o %s
+
+# vi:set encoding=UTF-8:

Modified: thunar-thumbnailers/trunk/xcf-thumbnailer/xcf-thumbnailer
===================================================================
--- thunar-thumbnailers/trunk/xcf-thumbnailer/xcf-thumbnailer	2008-05-19 22:40:52 UTC (rev 4832)
+++ thunar-thumbnailers/trunk/xcf-thumbnailer/xcf-thumbnailer	2008-05-21 14:31:12 UTC (rev 4833)
@@ -27,4 +27,4 @@
 size=$3
 
 # invoke convert (ImageMagick)
-exec convert "xcf:$ifile" -scale "$sizex$size" "png:$ofile"
+exec convert -background transparent -flatten "xcf:$ifile" -scale "$sizex$size" "png:$ofile"




More information about the Goodies-commits mailing list