We are trying to run a ClientSide clip on an image service layer using the JavaScript API. Ideally we would want it to work like the the create feature layer from shapefile sample (https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-shapefile/) where we would like to generate landcover charts using the clipped extent.
While it seems that creating a GP task is a good alternative, will this be possible over client side and if so could someone direct us to any samples.
Thanks for your help!