Hi,
I am trying to use web-optimized image delivery with my custom component's sling model, following documentation here and here.
It makes use of the `AssetDelivery` service, which I was told to inject like either of these.
com.adobe.cq.wcm.spi.AssetDelivery
//...
@reference(cardinality = ReferenceCardinality.OPTIONAL)
private volatile AssetDelivery assetDelivery;
//...
@OSGiService(injectionStrategy = InjectionStrategy.OPTIONAL)
private AssetDelivery assetDelivery;
But the problem is that `com.adobe.cq.wcm.spi.AssetDelivery` does not exist as a service per OSGi Manager Console, so the injected `assetDelivery` is always null.
I am using the latest AEMaaCS locally. Could it be that this service is only available when the project is deployed to the cloud environment? Otherwise, how to make that service available on my localhost so the injection works?
Thank you,