Hi,
first you should populate PictureModel for manufacturer model. To do this add the following code to the Manufacturer method of the CatalogController:
//prepare picture model
int pictureSize = 100;
var categoryPictureCacheKey = string.Format(ModelCacheEventConsumer.MANUFACTURER_PICTURE_MODEL_KEY, manufacturer.Id, pictureSize, true, _workContext.WorkingLanguage.Id, _webHelper.IsCurrentConnectionSecured(), _storeContext.CurrentStore.Id);
model.PictureModel = _cacheManager.Get(categoryPictureCacheKey, () =>
{
var pictureModel = new PictureModel()
{
FullSizeImageUrl = _pictureService.GetPictureUrl(manufacturer.PictureId),
ImageUrl = _pictureService.GetPictureUrl(manufacturer.PictureId, pictureSize),
Title = string.Format(_localizationService.GetResource("Media.Category.ImageLinkTitleFormat"), manufacturer.Name),
AlternateText = string.Format(_localizationService.GetResource("Media.Category.ImageAlternateTextFormat"), manufacturer.Name)
};
return pictureModel;
});
And then you can use
<img alt="@Model.PictureModel.AlternateText" src="@Model.PictureModel.ImageUrl" title="@Model.PictureModel.Title" />
in the ManufacturerTemplate.ProductsInGridOrLines.cshtml