diff --git a/src/main/assemblies/files/generate-thumbnail b/src/main/assemblies/files/generate-thumbnail
index effa2cd79f297f2e83dc4335c85e0fb6e75d1c54..1217dbc3c163d61bb9229838b61102e9aa6ea0e6 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 b3e0b94e67af6daea67157b6f855554056d60af5..68c149c441f9de1487cc6f458e0b0aca1bdc561f 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 dc7a894d6f2af3d127409d5007e76f8eebb2d0ce..72ba5e3ef1e7c96ad80c6b85c3adb2f22af80624 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"
+
+
+