From 54d282572f29918e3e31882c276ec5c8a13f8818 Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Tue, 15 Nov 2011 14:00:18 +0200
Subject: [PATCH] Use default image if conversion fails with a thumbnail size.

---
 .../default_conversion_failure_image.xml      | 88 +++++++++----------
 bt5/erp5_dms/bt/revision                      |  2 +-
 2 files changed, 42 insertions(+), 48 deletions(-)

diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/default_conversion_failure_image.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/default_conversion_failure_image.xml
index 749bd126bf..8e8aba86e1 100644
--- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/default_conversion_failure_image.xml
+++ b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/default_conversion_failure_image.xml
@@ -14,7 +14,7 @@
         </item>
         <item>
             <key> <string>_EtagSupport__etag</string> </key>
-            <value> <string>ts18922384.14</string> </value>
+            <value> <string>ts21358148.06</string> </value>
         </item>
         <item>
             <key> <string>__name__</string> </key>
@@ -26,53 +26,47 @@
         </item>
         <item>
             <key> <string>data</string> </key>
-            <value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAPAAAAC0CAYAAACqnKHoAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A
-/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sKEgcTF+P+EykAAAAdaVRYdENv
-bW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAACNxJREFUeNrt2llIlG0fx/Gf2t4Yxii5
-RDRlmRKRbQcxeFIk2UEFFdVZBy1GoZlDBxVhUZS02J5kexEdRAQFBVkaeVY5ErRHREJhktpCi+b/
-OXkVdUabxffRnr4fmAPvub3mmmvu79yzRZiZCcAfKZIlAAgYAAEDIGCAgAEQMAACBkDAAAEDIGAA
-BAwQMAACBkDAAAgYIGAABAyAgAEQMEDAAAgYAAEDB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d5na7rbi4
-OKB4/58B19fX244dOywtLc2Sk5MtNzfXfv782ekY7969s4ULF9qwYcMsJSXFPB6PXbt2zSTZ2LFj
-/b7PX7p0qU2YMMEcDoc5nU6bNGmS5eXlmdfr7fI+Bzu3Fjt37mzdp7CwMOxxA1n7UMdsbGy0vLw8
-GzNmjMXHx9uSJUvsw4cPAT2e4axtT+nx30LDV3Z2to4dO6bMzEzduHGDBUHv/ynl32rWrFkqLy9X
-Q0ODKioqtGbNGp07d06StGzZMhYIXf8kmDNwDz8Anfwm2O12q7y8XJGRPMeCM3CvVVZWpjlz5igh
-IUHR0dGaNm2aCgoKdOfOHeIFZ2CAMzAAAgZAwAAIGCBgAAQMgIABAgZAwAAIGAABAwQMgIABEDAA
-AgYIGAABAyBggIABEDAAAgZAwAABAyBgAAQMEDAAAgZAwAAIGCBgAAQMgIABEDBAwAAIGAABAwQM
-gIABEDAAAgYIGAABAyBgAAQMEDAAAgZAwAABAyBgAAQMgIABAgZAwAAIGCBgAAQMgIABEDBAwAAI
-GAABAyBggIABEDAAAgYIGAABAyBgAAQMEDAAAgZAwAAIGCBgAAQMgIABAgZAwAAIGAABAwQMgIAB
-EDAAAgYIGAABAyBggIABEDAAAgbg3z+Nb+Cue/qz9wAAAABJRU5ErkJggg==</string> </value>
+            <value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAHgAAABaCAYAAABzAJLvAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A
+/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sLDws3KDJ5gCQAAAAdaVRYdENv
+bW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAAB4lJREFUeNrtm11Ik20cxq+paR9bGFP8
+qmjkR5MIv+oghidZkh1EYGGeGZQVhcscHlSERWEja2VlktmHQXQQERgUZGnlWeVGUFp2EAnFktQk
+0rZ2vSfvhnObPtuK5vv+f/AceD83/+fe89v97N7uSxVJQvjPEiW3QAQLIlg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+2gkkgTv4MqqysZE5ODgGw
+u7s7rLpKBIdaMzU1lWfOnOHAwAAtFouiRVakJygVCw4mgTgxcJeens64uDgC4LJly8Kuq0RwqDV3
+7doV0tekYBKUkfDI9nv1YBOIburr6z19zGZz2HWVCA61psPhYHV1NTMyMpicnMytW7fyy5cvilbs
+ShOUkSBYEh3yW7QgggURLIhgQQQLIlgQwSJYEMGCCBZEsCCCBREsiGARLIhgQQQLIlgQwYIIFkSw
+IIJFsCCCBREsiGBBBAsiWBDBIlgQwcLM4R9jdtch0SMTQAAAAABJRU5ErkJggg==</string> </value>
         </item>
         <item>
             <key> <string>height</string> </key>
-            <value> <int>180</int> </value>
+            <value> <int>90</int> </value>
         </item>
         <item>
             <key> <string>precondition</string> </key>
@@ -80,7 +74,7 @@ EDAAAgYIGAABAyBggIABEDAAAgbg3z+Nb+Cue/qz9wAAAABJRU5ErkJggg==</string> </value>
         </item>
         <item>
             <key> <string>size</string> </key>
-            <value> <int>2437</int> </value>
+            <value> <int>2098</int> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
@@ -88,7 +82,7 @@ EDAAAgYIGAABAyBggIABEDAAAgbg3z+Nb+Cue/qz9wAAAABJRU5ErkJggg==</string> </value>
         </item>
         <item>
             <key> <string>width</string> </key>
-            <value> <int>240</int> </value>
+            <value> <int>120</int> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision
index 6ee69cb7bb..50a143ce6d 100644
--- a/bt5/erp5_dms/bt/revision
+++ b/bt5/erp5_dms/bt/revision
@@ -1 +1 @@
-1259
\ No newline at end of file
+1260
\ No newline at end of file
-- 
2.30.9