cancel
Showing results for 
Search instead for 
Did you mean: 

Thumbnails on contents

itayh
Champ in-the-making
Champ in-the-making
Hi All,

I add "Create thumbnails of the item" content rule for all the items in a space (taken from version 0.2 of thumbnails).

When I add an image content to the space I don't see any thumbnail.

Can someone help?

Basically what I want to see is that when I add pictures or movies to space I will see small pictures that will represents the movies/pictures.

Itay
2 REPLIES 2

itayh
Champ in-the-making
Champ in-the-making
Hi,

I manage to run thumbnails on jpeg items.
Does any one know how to convert video type (3pg) to jpeg in order to have thumbnail on video also.

Thanks in advance

rgauss
Champ in-the-making
Champ in-the-making
A new version of the thumbnails project has been released which supports video thumbnails.

For that particular video type you'll also have to register a new mimetype in alfresco.

See http://wiki.alfresco.com/wiki/Adding_a_Mime_Type for details but you should be able to create a file named something like mimetype-map-custom.xml containing:

<alfresco-config area="mimetype-map">
  
   <config evaluator="string-compare" condition="Mimetype Map">
      <mimetypes>
         <mimetype mimetype="video/x-3gpp2" display="3GPP2 Multimedia File">
            <extension display="3GPP2 Multimedia File" default="true">3g2</extension>
         </mimetype>
      </mimetypes>
   </config>
  
</alfresco-config>

and a mimetype-map-context.xml:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>

   <bean id="mimetypeConfigService" class="org.alfresco.config.xml.XMLConfigService" init-method="init">
        <constructor-arg>
            <bean class="org.alfresco.config.source.UrlConfigSource">
                <constructor-arg>
                    <list>
                        <value>classpath:alfresco/mimetype/mimetype-map.xml</value>
                        <value>classpath:alfresco/mimetype/mimetype-map-openoffice.xml</value>
                        <value>classpath:alfresco/extension/mimetype-map-custom.xml</value>
                    </list>
                </constructor-arg>
            </bean>
        </constructor-arg>
    </bean>

</beans>

place both files in your alfresco/extensions conig directory and the new mimetype should be registered.