Custom imagescaler

Sebastian Wikholm, modified 10 Months ago. Regular Member Posts: 110 Join Date: 3/10/11 Recent Posts

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.

So I´ve done the service as instructed in the guides, ie:

https://help.liferay.com/hc/en-us/articles/360028726012-Creating-an-Image-Scaler
I did need to include the "com.liferay.adaptive.media.image.api" 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:

BundleComponentActivator : Unexpected failure enabling component holder xxxx.ModernImageScaler

java.lang.NoClassDefFoundError: com/liferay/adaptive/media/image/scaler/AMImageScaler

I feel like a noob for this but, why would