diff --git a/src/main/assemblies/files/generate-thumbnail b/src/main/assemblies/files/generate-thumbnail
index effa2cd79..1217dbc3c 100755
--- a/src/main/assemblies/files/generate-thumbnail
+++ b/src/main/assemblies/files/generate-thumbnail
@@ -30,6 +30,14 @@ elif [ x"$CMD_TYPE" = "xpdf" ] ; then
check_command convert
TARGET_FILE=`echo $URL | sed -e "s#^file:/*#/#g"`
convert -thumbnail $IMAGE_SIZE ${TARGET_FILE}[0] $OUTPUT_FILE
+elif [ x"$CMD_TYPE" = "xps" ] ; then
+ check_command convert
+ TARGET_FILE=`echo $URL | sed -e "s#^file:/*#/#g"`
+ convert -thumbnail $IMAGE_SIZE ${TARGET_FILE}[0] $OUTPUT_FILE
+elif [ x"$CMD_TYPE" = "ximage" ] ; then
+ check_command convert
+ TARGET_FILE=`echo $URL | sed -e "s#^file:/*#/#g"`
+ convert -thumbnail $IMAGE_SIZE ${TARGET_FILE}[0] $OUTPUT_FILE
else
echo "Unsupported type: $CMD_TYPE"
exit 1
diff --git a/src/main/resources/fess_thumbnail.xml b/src/main/resources/fess_thumbnail.xml
index b3e0b94e6..68c149c44 100644
--- a/src/main/resources/fess_thumbnail.xml
+++ b/src/main/resources/fess_thumbnail.xml
@@ -12,6 +12,12 @@
pdfThumbnailGenerator
+
+ psThumbnailGenerator
+
+
+ imageThumbnailGenerator
+
"htmlThumbnailGenerator"
@@ -98,4 +104,85 @@
-
+
+ "psThumbnailGenerator"
+
+ ["${path}/generate-thumbnail",
+ "ps",
+ "${url}",
+ "${outputFile}"]
+
+
+ "mimetype"
+ "application/postscript"
+
+
+
+
+ "imageThumbnailGenerator"
+
+ ["${path}/generate-thumbnail",
+ "image",
+ "${url}",
+ "${outputFile}"]
+
+
+ ["${path}/generate-thumbnail"]
+
+
+ "mimetype"
+ "image/jpeg"
+
+
+
+ "mimetype"
+ "image/tiff"
+
+
+
+ "mimetype"
+ "image/bmp"
+
+
+
+ "mimetype"
+ "image/x-windows-bmp"
+
+
+
+ "mimetype"
+ "image/x-ms-bmp"
+
+
+
+ "mimetype"
+ "image/gif"
+
+
+
+ "mimetype"
+ "image/png"
+
+
+
+ "mimetype"
+ "image/vnd.adobe.photoshop"
+
+
+
+ "mimetype"
+ "image/photoshop"
+
+
+
+ "mimetype"
+ "application/x-photoshop"
+
+
+
+ "mimetype"
+ "application/photoshop"
+
+
+
+
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/crawler/resources/crawler_thumbnail.xml b/src/main/webapp/WEB-INF/crawler/resources/crawler_thumbnail.xml
index dc7a894d6..72ba5e3ef 100644
--- a/src/main/webapp/WEB-INF/crawler/resources/crawler_thumbnail.xml
+++ b/src/main/webapp/WEB-INF/crawler/resources/crawler_thumbnail.xml
@@ -12,6 +12,12 @@
pdfThumbnailGenerator
+
+ psThumbnailGenerator
+
+
+ imageThumbnailGenerator
+
"htmlThumbnailGenerator"
@@ -86,4 +92,85 @@
+
+ "psThumbnailGenerator"
+
+ ["${path}/generate-thumbnail",
+ "ps",
+ "${url}",
+ "${outputFile}"]
+
+
+ "mimetype"
+ "application/postscript"
+
+
+
+
+ "imageThumbnailGenerator"
+
+ ["${path}/generate-thumbnail",
+ "image",
+ "${url}",
+ "${outputFile}"]
+
+
+ ["${path}/generate-thumbnail"]
+
+
+ "mimetype"
+ "image/jpeg"
+
+
+
+ "mimetype"
+ "image/tiff"
+
+
+
+ "mimetype"
+ "image/bmp"
+
+
+
+ "mimetype"
+ "image/x-windows-bmp"
+
+
+
+ "mimetype"
+ "image/x-ms-bmp"
+
+
+
+ "mimetype"
+ "image/gif"
+
+
+
+ "mimetype"
+ "image/png"
+
+
+
+ "mimetype"
+ "image/vnd.adobe.photoshop"
+
+
+
+ "mimetype"
+ "image/photoshop"
+
+
+
+ "mimetype"
+ "application/x-photoshop"
+
+
+
+ "mimetype"
+ "application/photoshop"
+
+
+