<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -106,6 +106,7 @@ system_settings_012:
   value: &quot;5&quot;
   section: Extended Fields
 system_settings_013:
+
   name: Flagging Tags
   technically_advanced: false
   required_to_be_configured: true
@@ -240,7 +241,7 @@ system_settings_027:
 
     Note, this only takes effect from this point forward.  No existing image files will be changed.
   id: &quot;27&quot;
-  value: &quot;['image/tiff', 'image/bmp', 'image/x-ms-bmp', 'image/quicktime', 'image/x-quicktime', 'application/postscript', 'application/octet-stream', 'image/vnd.adobe.photoshop', :image]&quot;
+  value: &quot;['image/tiff', 'image/bmp', 'image/x-ms-bmp', 'image/quicktime', 'image/x-quicktime', 'application/postscript', 'application/octet-stream', 'image/vnd.adobe.photoshop', 'image/x-photoshop', 'image/vnd.adobe.photoshop', 'image/x-photoshop', 'application/x-photoshop', 'image/xcf', :image]&quot;
   section: Images
 system_settings_028:
   name: Maximum Uploaded File Size
@@ -259,7 +260,7 @@ system_settings_029:
 
     Note, this only takes effect from this point forward.  No existing document files will be changed.
   id: &quot;29&quot;
-  value: &quot;['text/html', 'text/plain', 'text/rtf', 'text/css', 'application/mac-binhex40', 'application/msword', 'application/word', 'application/pdf', 'application/pics-rules', 'application/postscript', 'application/rtf', 'application/vnd.ms-excel', 'application/vnd.ms-powerpoint', 'application/x-gtar', 'application/x-gzip', 'application/zip', 'application/x-zip', 'application/x-zip-compressed', 'application/x-tar', 'application/x-compressed-tar', 'application/vnd.oasis.opendocument.chart', 'application/vnd.oasis.opendocument.database', 'application/vnd.oasis.opendocument.formula', 'application/vnd.oasis.opendocument.drawing', 'application/vnd.oasis.opendocument.image', 'application/vnd.oasis.opendocument.text-master', 'application/vnd.oasis.opendocument.presentation', 'application/vnd.oasis.opendocument.spreadsheet', 'application/vnd.oasis.opendocument.text', 'application/vnd.oasis.opendocument.text-web', 'image/jpeg', 'image/jpg', 'application/octet-stream', 'application/excel', 'application/x-excel', 'application/x-msexcel' ]&quot;
+  value: &quot;['text/html', 'text/plain', 'text/rtf', 'text/css', 'application/mac-binhex40', 'application/msword', 'application/word', 'application/pdf', 'application/pics-rules', 'application/postscript', 'application/rtf', 'application/vnd.ms-excel', 'application/vnd.ms-powerpoint', 'application/x-gtar', 'application/x-gzip', 'application/zip', 'application/x-zip', 'application/x-zip-compressed', 'application/x-tar', 'application/x-compressed-tar', 'application/vnd.oasis.opendocument.chart', 'application/vnd.oasis.opendocument.database', 'application/vnd.oasis.opendocument.formula', 'application/vnd.oasis.opendocument.drawing', 'application/vnd.oasis.opendocument.image', 'application/vnd.oasis.opendocument.text-master', 'application/vnd.oasis.opendocument.presentation', 'application/vnd.oasis.opendocument.spreadsheet', 'application/vnd.oasis.opendocument.text', 'application/vnd.oasis.opendocument.text-web', 'image/jpeg', 'image/jpg', 'application/octet-stream', 'application/excel', 'application/x-excel', 'application/x-msexcel', 'image/vnd.adobe.photoshop', 'image/x-photoshop', 'application/x-photoshop', 'image/xcf']&quot;
   section: Documents
 system_settings_030:
   name: Audio Content Types</diff>
      <filename>db/bootstrap/system_settings.yml</filename>
    </modified>
    <modified>
      <diff>@@ -305,8 +305,21 @@ namespace :kete do
                                      'kete:upgrade:add_jpegs_to_documents',
                                      'kete:upgrade:add_bmp_to_images',
                                      'kete:upgrade:add_eps_to_images',
+                                     'kete:upgrade:add_psd_and_gimp_to_images_and_documents',
                                      'kete:upgrade:add_file_mime_type_variants']
 
+    desc 'Adds psd variants if needed to images and documents'
+    task :add_psd_and_gimp_to_images_and_documents =&gt; :environment do
+      ['Document Content Types', 'Image Content Types'].each do |setting_name|
+        setting = SystemSetting.find_by_name(setting_name)
+        ['image/vnd.adobe.photoshop', 'image/x-photoshop', 'application/x-photoshop', 'image/xcf'].each do |new_type|
+          if setting.push(new_type)
+            p &quot;added #{new_type} mime type to &quot; + setting.name
+          end
+        end
+      end
+    end
+
     desc 'Adds excel variants if needed'
     task :add_excel_variants_to_documents =&gt; :environment do
       setting = SystemSetting.find_by_name('Document Content Types')</diff>
      <filename>lib/tasks/upgrade.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>402b45b47877732488491271e5cf13a3a9b3406a</id>
    </parent>
  </parents>
  <author>
    <name>Walter McGinnis</name>
    <email>walter@katipo.co.nz</email>
  </author>
  <url>http://github.com/kete/kete/commit/22bfb0a58d6f1e0ce8455f292f7e1a99d95b5f0b</url>
  <id>22bfb0a58d6f1e0ce8455f292f7e1a99d95b5f0b</id>
  <committed-date>2009-06-30T20:47:44-07:00</committed-date>
  <authored-date>2009-06-30T20:47:44-07:00</authored-date>
  <message>adding support for photoshop and gimp files to documents and image uploads, still a problem with image uploads that don't have resizing support under ImageMagik though.</message>
  <tree>0e937604fe0a4c2486f016d91e27ee24c3eda127</tree>
  <committer>
    <name>Walter McGinnis</name>
    <email>walter@katipo.co.nz</email>
  </committer>
</commit>
