掲示板

Serious Issue: JPG Image thumbnail showing as /file_system/large/image.png

10年前 に Pushpinder Singh によって更新されました。

Serious Issue: JPG Image thumbnail showing as /file_system/large/image.png

Junior Member 投稿: 84 参加年月日: 10/07/21 最新の投稿
Liferay Portal Enterprise Edition 6.1.20 EE (Paton / Build 6120 / July 31, 2012)

Liferay production environment is showing loaded JPG image thumbnails as /file_system/large/image.png rather than correct file.

When we access same images from URL, it is showing fine (because of direct url to image in liferay repository)

Some JPG files (taken from IPhone) are showing correctly as thumbnail.

Same images when loaded in test or development environment are showing fine too.

We loading image using control panel in 'Document and Media' menu.

This seems serious issue to go live.

Will appreciate any advise or hint.
thumbnail
10年前 に Juan Gonzalez によって更新されました。

RE: Serious Issue: JPG Image thumbnail showing as /file_system/large/image.

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Seems that images aren't detected as real images, so thumbnail isn't created (or there are errors while trying to).

Did you see any error in server logs when uploading those images?
10年前 に Pushpinder Singh によって更新されました。

RE: Serious Issue: JPG Image thumbnail showing as /file_system/large/image.

Junior Member 投稿: 84 参加年月日: 10/07/21 最新の投稿
Following exception is showing in log after adding trouble some images through control panel.


Exception in thread "liferay/document_library_image_processor-399" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1182)
at java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1172)
at com.liferay.portal.image.ImageToolImpl.scale(ImageToolImpl.java:306)
at com.liferay.portal.kernel.image.ImageToolUtil.scale(ImageToolUtil.java:81)
at com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor.storeThumbnailmage(DLPreviewableProcessor.java:1055)
at com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor.storeThumbnailImages(DLPreviewableProcessor.java:1022)
at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl._generateImages(ImageProcessorImpl.java:266)
at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl.generateImages(ImageProcessorImpl.java:75)
at com.liferay.portlet.documentlibrary.util.ImageProcessorUtil.generateImages(ImageProcessorUtil.java:39)
at com.liferay.portlet.documentlibrary.messaging.ImageProcessorMessageListener.doReceive(ImageProcessorMessageListener.java:36)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:63)
at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:64)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:671)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:582)
at java.lang.Thread.run(Thread.java:701)
thumbnail
10年前 に Juan Gonzalez によって更新されました。

RE: Serious Issue: JPG Image thumbnail showing as /file_system/large/image.

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Seems you have to add this JVM parameter:

-Djava.awt.headless=true


when starting your Liferay server.
10年前 に Pushpinder Singh によって更新されました。

RE: Serious Issue: JPG Image thumbnail showing as /file_system/large/image. (回答)

Junior Member 投稿: 84 参加年月日: 10/07/21 最新の投稿
Thanks Juan. Adding suggested options -Djava.awt.headless=true solved the problem.
7年前 に Jakub Rehak によって更新されました。

RE: Serious Issue: JPG Image thumbnail showing as /file_system/large/image.

New Member 投稿: 3 参加年月日: 14/02/28 最新の投稿
Hi, i have the same problem. but this solution does not work for me.
when i upload jpg image, nothing happens. no logs.
i have liferay 6.2.5 with tomcat 7.

any suggestions please?