The ngSwitchOn directive doesn't require curly brackets, as shown by the documentation. It's probably a better idea to make something like that :
<span ng-switch on="isMarketplaced(image)">
<img ng-switch-when="true" ng-src="{{image.value}}?wid=100&hei=100">
<img ng-switch-when="false" ng-src="{{image.value}}&wid=100&hei=100">
<img ng-switch-default ng-src="{{image.value}}">
</span>
And in the controller :
$scope.isMarketplaced = function (image)
{
return image.marketplace == -1;
}
In addition, it will help you to make unit tests on this function.