Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Custom imagescaler
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
Powered by Liferay™