Legacy Knowledge Base
Published Jun. 30, 2025

No preview is generated when Gifsicle is enabled

Written By

Jamilly Macedo

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • With Gifsicle enabled, when uploading a new image, its preview and adapted images are not generated.
  • The following warning is reported in logs:

WARN  [liferay/adaptive_media_processor-5786][AMMessageListener:79] null
com.liferay.adaptive.media.exception.AMRuntimeException$IOException: java.util.concurrent.ExecutionException: com.liferay.petra.process.TerminationProcessException: Subprocess terminated with exit code 1
    at com.liferay.adaptive.media.image.internal.scaler.AMGIFImageScaler.scaleImage(AMGIFImageScaler.java:85) ~[?:?]
    at com.liferay.adaptive.media.image.internal.processor.AMImageAMProcessor.process(AMImageAMProcessor.java:105) ~[?:?]
    at com.liferay.adaptive.media.image.internal.processor.AMImageAMProcessor.process(AMImageAMProcessor.java:63) ~[?:?]
    at com.liferay.adaptive.media.image.internal.processor.AMImageAMProcessor.process(AMImageAMProcessor.java:35) ~[?:?]
    at com.liferay.adaptive.media.web.internal.messaging.AMProcessorCommand$2.execute(AMProcessorCommand.java:34) ~[bundleFile:?]
    at com.liferay.adaptive.media.web.internal.messaging.AMMessageListener.doReceive(AMMessageListener.java:70) [bundleFile:?]
    at com.liferay.portal.kernel.messaging.BaseMessageListener.doReceive(BaseMessageListener.java:39) [portal-kernel.jar:?]
    at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25) [portal-kernel.jar:?]
    at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65) [portal-kernel.jar:?]
    at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:47) [bundleFile:?]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
    at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.util.concurrent.ExecutionException: com.liferay.petra.process.TerminationProcessException: Subprocess terminated with exit code 1
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
    at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?]
    at com.liferay.adaptive.media.image.internal.scaler.AMGIFImageScaler.scaleImage(AMGIFImageScaler.java:70) ~[?:?]
    ... 12 more
Caused by: com.liferay.petra.process.TerminationProcessException: Subprocess terminated with exit code 1
    at com.liferay.petra.process.ProcessUtil$ProcessStdOutCallable.call(ProcessUtil.java:227) ~[com.liferay.petra.process.jar:?]
    at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
  ... 1 more

Environment

  • Liferay DXP 7.4

Resolution

  • The issue is addressed by LPS-202947.
  • Please request a Hotfix with this fix.
Did this article resolve your issue ?

Legacy Knowledge Base