Author: sevein
Date: Sun Sep 20 06:16:43 2009
New Revision: 3436

Log:
Set image/jpeg as default mime type for thumbnail creations in 
QubitDigitalObject::resizeImage(). This forces sfThumbnail to return a jpg 
resized image even if we are resizing a PDF document.

Modified:
   trunk/lib/model/QubitDigitalObject.php

Modified: trunk/lib/model/QubitDigitalObject.php
==============================================================================
--- trunk/lib/model/QubitDigitalObject.php      Sun Sep 20 00:02:43 2009        
(r3435)
+++ trunk/lib/model/QubitDigitalObject.php      Sun Sep 20 06:16:43 2009        
(r3436)
@@ -273,7 +273,7 @@
           
$parentDigitalObject->getInformationObject()->setDisplayAsCompoundObject(1);
         }
 
-        $this->createReferenceImage();
+        $this->createRepresentations(QubitTerm::MASTER_ID);
       }
       else
       {
@@ -1274,7 +1274,7 @@
       return false;
     }
 
-    return $newImage->toString();
+    return $newImage->toString('image/jpeg');
   }
 
   /**

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to