Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to change thumbnail size of file in Liferay

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.52k
    Comment on it

    Hello Guys,
    We need to resize the thumbnail of file according to our requirements or for maintaining aspect ratio of an image. Now we can resize the thumbnail of file using portal properties which we will define in the portal -ext.properties file of the liferay portal.

    Resize thumbnail of document and media :
    Define below properties in portel-ext.properties

    dl.file.entry.thumbnail.enabled =true 
    dl.file.entry.thumbnail.max.height =200 
    dl.file.entry.thumbnail.max.width =200     
    dl.file.entry.thumbnail.min.height =128 
    dl.file.entry.thumbnail.min.width =128
    


    Resize thumbnail of Software catalog
    Define below properties in portel-ext.properties

    sc.image.thumbnail.max.height =200
    sc.image.thumbnail.max.width =200
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: