Foros de discusión
how to create thumbnail for each file in liferay
venkata ashok kumar ananthapalli, modificado hace 9 años.
how to create thumbnail for each file in liferay
New Member Mensajes: 8 Fecha de incorporación: 16/09/14 Mensajes recientes
HI
Can one tell me how to generate thumbnail for every file in liferay for pdf,docx,video,audio
but I can get thumbnails for images file in document and media but other file I unable to get thumbnails
below code for generating thumbnail for images
import com.liferay.portlet.documentlibrary.util.ImageProcessorUtil;
import com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor;
InputStream thumbnail = ImageProcessorUtil.getThumbnailAsStream(fileEntry.getFileVersion(), DLPreviewableProcessor.THUMBNAIL_INDEX_DEFAULT);
Regards,
Ashokkumar.
Can one tell me how to generate thumbnail for every file in liferay for pdf,docx,video,audio
but I can get thumbnails for images file in document and media but other file I unable to get thumbnails
below code for generating thumbnail for images
import com.liferay.portlet.documentlibrary.util.ImageProcessorUtil;
import com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor;
InputStream thumbnail = ImageProcessorUtil.getThumbnailAsStream(fileEntry.getFileVersion(), DLPreviewableProcessor.THUMBNAIL_INDEX_DEFAULT);
Regards,
Ashokkumar.
Malhar Shah, modificado hace 9 años.
RE: how to create thumbnail for each file in liferay
Junior Member Mensajes: 41 Fecha de incorporación: 17/08/14 Mensajes recientes
Are you talking about customizing documents and media portlet?
If not than are you getting any exception in console?
If not than are you getting any exception in console?
venkata ashok kumar ananthapalli, modificado hace 9 años.
RE: how to create thumbnail for each file in liferay
New Member Mensajes: 8 Fecha de incorporación: 16/09/14 Mensajes recientes
its not an customizing portlet, I want to download thumbnails and represent in IPAD, Using webservices I am able to get thumbnails for images only, but I want thumbnails for all fles doc,docx,pdf,ppt, and video
Vilmos Papp, modificado hace 9 años.
RE: how to create thumbnail for each file in liferay
Liferay Master Mensajes: 529 Fecha de incorporación: 21/10/10 Mensajes recientes
David H Nebinger, modificado hace 9 años.
RE: how to create thumbnail for each file in liferay
Liferay Legend Mensajes: 14918 Fecha de incorporación: 2/09/06 Mensajes recientes
If you install the additional tools (image magick, ghostscript, openoffice/libreoffice, xuggler and the like), you will get thumbnails/previews for all of these additional formats.