.Net Core 2.0项目上的ImageProcessor.Web [英] ImageProcessor.Web on .Net Core 2.0 project

查看:290
本文介绍了.Net Core 2.0项目上的ImageProcessor.Web的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使还原了它,我也可以在.net Core 2.0项目上使用imageprocessor.Web,目标是.NETFramework,版本= v4.6.1吗?

Can i use the imageprocessor.Web on .net Core 2.0 project even if the it's restored, targeting .NETFramework, Version=v4.6.1?

更新

在新的.Net Core 2.0项目上,安装了以下软件包: 影像处理器 imageprocessor.web imageprocessor.web.config

On a fresh .Net Core 2.0 project the following Packages where installed: imageprocessor imageprocessor.web imageprocessor.web.config

通常在Asp.net Mvc模板(framework = v4.6.1)上,通过在任何视图中为诸如<img alt="Picture for category Electronics" src="http://localhost:15536/images/thumbs/0000005_electronics_600.jpeg?crop=0.5,0,0,0.1&amp;cropmode=percentage" title="Show products in category Electronics">之类的图像创建简单标记,将根据图像URL中提供的查询字符串裁剪图像,如指定在文档中: http://imageprocessor.org/imageprocessor-web/imageprocessingmodule/crop/但是

Normally on a Asp.net Mvc Template (framework=v4.6.1) by creating simple markup for images such as <img alt="Picture for category Electronics" src="http://localhost:15536/images/thumbs/0000005_electronics_600.jpeg?crop=0.5,0,0,0.1&amp;cropmode=percentage" title="Show products in category Electronics"> in any view would crop an image base on the querystrings provided in the url of the image, as specified in the documentation: http://imageprocessor.org/imageprocessor-web/imageprocessingmodule/crop/ however

A:提供的查询字符串均不影响任何结果 B:当尝试通过安装nuget软件包ImageProcessor.Web.Config来添加配置文件时,未编辑App.Config,并且没有任何可配置的内容

A: None of the query strings provided take any affect whatsoever B: When attempted to also add the configuration file by installing the nuget package ImageProcessor.Web.Config the App.Config isn't edited and am left with nothing to configure

我所需要的只是对图像进行一些简单的图像处理,如imageprocessor.web文档此处所述: http ://imageprocessor.org/imageprocessor-web/

All I need is some simple image processing done on images as described by the imageprocessor.web documentation here: http://imageprocessor.org/imageprocessor-web/

推荐答案

否.你不能.

Imageprocessor.Web是针对.NET 4.5.2构建的,这是Windows桌面特有的完全不同的目标框架.您需要以netstandard或.NET Core 2.0为目标的产品.

Imageprocessor.Web is built against .NET 4.5.2 which is a completely different target framework specific to Windows desktop. You need something that targets either a netstandard or .NET Core 2.0.

这篇关于.Net Core 2.0项目上的ImageProcessor.Web的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆