<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Custom imagescaler</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=123086380" />
  <subtitle>Custom imagescaler</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=123086380</id>
  <updated>2026-04-04T14:15:18Z</updated>
  <dc:date>2026-04-04T14:15:18Z</dc:date>
  <entry>
    <title>Custom imagescaler</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123086379" />
    <author>
      <name>Sebastian Wikholm</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123086379</id>
    <updated>2024-11-21T08:01:50Z</updated>
    <published>2024-11-21T08:01:49Z</published>
    <summary type="html">&lt;p&gt;I´m trying to make a custom image scaler for adaptive media. The
  reason being that liferay assumes that i do not want to compress
  modern image formats like webp or avif. So a compressed webp which is
  360kb in native resolution is rescaled as lossless with filesizes up
  to 6500kb.&lt;/p&gt;
&lt;p&gt;So I´ve done the service as instructed in the guides, ie:&lt;/p&gt;

&lt;p&gt;https://help.liferay.com/hc/en-us/articles/360028726012-Creating-an-Image-Scaler&lt;br&gt;
  I did need to include the
  &amp;quot;com.liferay.adaptive.media.image.api&amp;quot; version 13.1.0 in my
  build.gradle for the thing to compile. Ive checked thath the
  adaptivemedia api is version is 13.1.0  on my version of Liferay.
  Everything seems to work ok with no errors, but when trying to deploy
  the service i get the following error:&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;BundleComponentActivator : Unexpected failure enabling component holder xxxx.ModernImageScaler

java.lang.NoClassDefFoundError: com/liferay/adaptive/media/image/scaler/AMImageScaler&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I feel like a noob for this but, why would &lt;/p&gt;</summary>
    <dc:creator>Sebastian Wikholm</dc:creator>
    <dc:date>2024-11-21T08:01:49Z</dc:date>
  </entry>
</feed>
