1. 程式人生 > 實用技巧 >.net 呼叫rfc引數_RFC:.NET Core和ASP.NET 5的伺服器端影象和圖形處理

.net 呼叫rfc引數_RFC:.NET Core和ASP.NET 5的伺服器端影象和圖形處理

.net 呼叫rfc引數

.net 呼叫rfc引數

image

The .NET Core and the Core Libraries are open source and run on Windows, Mac, and Linux. In fact, you can run them with support, today, in production on Windows and Linux (Mac is for development, not production).

.NET Core和Core庫是開源的,可以在Windows,Mac和Linux上執行。 實際上,您現在可以在Windows和Linux上的生產環境中

使用support執行它們(Mac用於開發,而不是生產環境)。

Head over to http://get.asp.net to get ASP.NET 5 with .NET Core on any platform. Also get the free cross platform editor Visual Studio Code as well.

轉到http://get.asp.net,以在任何平臺上使用帶有.NET Core的ASP.NET 5。 還可以獲得免費的跨平臺編輯器Visual Studio Code

Because .NET Core runs anywhere, there are things that it doesn't have. It doesn't have a UI layer (no WinForms, for example, because that makes no sense on Linux) or Registry Access (that's only on Windows, so it's simply omitted). While these omissions make sense, others don't exist because of lack of times, changing priorities, or peoplepower.

由於.NET Core可以在任何地方執行,因此有些東西是沒有的。 它沒有UI層(例如,沒有WinForms,因為在Linux上沒有意義)或Registry Access(僅在Windows上,因此將其省略)。 儘管這些遺漏是有道理的,但由於時間緊缺,工作重點不斷變化或人手不足,其他遺漏並不存在。

Currently, as of the time of this blog post's writing, .NET Core has no good built-in option for image resizing or image generation/creation. There is no System.Drawing because there is no Win32 GDI. There are some options, that I'll point out later, but this clearly hasn't been a priority so it's not done yet. There has been some work on System.Drawing.Graphics, but

it seems stalled.

目前,截至撰寫本部落格之時,.NET Core還沒有用於影象大小調整或影象生成/建立的良好內建選項。 因為沒有Win32 GDI,所以沒有System.Drawing。 有一些選項,我將在後面指出,但這顯然不是優先事項,因此尚未完成。 關於System.Drawing.Graphics已有一些工作,但似乎停滯了

Nathanael Jones is the very accomplished author of ImageResizer and the primary at Imazen, an imaging software company. I've talked about ImageResizer before, it's fantastic. Nathanael has been pushing hard to get folks at Microsoft to commit to a story around Server-side Graphics in ASP.NET 5 and recently updated his own roadmap with respect to ImageResizer and the new ASP.NET 5 (that runs on .NET Core as well as the full .NET Framework). Take a moment and read it, there's a lot there. Concerns about how to call native code, how to distribute managed code that has to call native code, and lots more. I've worked with Nathanael for the last year trying to work out some way to solve this problem but it hasn't worked out well. Big company, sigh.

納塔奈爾·瓊斯( Nathanael Jones)ImageResizer的非常有成就的作者,也是成像軟體公司Imazen的主要作者。 之前我已經談論過ImageResizer ,這太棒了。 納薩奈爾(Nathanael)一直在努力促使微軟公司致力於關於ASP.NET 5中伺服器端圖形的故事,並且最近更新了自己關於ImageResizer和新ASP.NET 5(在.NET Core上作為以及完整的.NET Framework)。 花一點時間閱讀它,那裡有很多東西。 有關如何呼叫本機程式碼,如何分發必須呼叫本機程式碼的託管程式碼等問題。 去年,我與Nathanael合作,試圖找到解決該問題的方法,但效果並不理想。 大公司,感嘆。

Another library in the .NET imaging space is called ImageProcessor by James M. South. Jim also wants to solve the program of server side image manipulation. He's currently working on a re-write of his ImageProcessor as a cross-platform library and I'm sure he would appreciate your help.

.NET映像空間中的另一個庫被James M. South稱為ImageProcessor 。 Jim還想解決伺服器端影象處理程式。 他目前正在將ImageProcessor重寫為跨平臺庫我相信他會感謝您的幫助

Jim himself says:

吉姆本人說:

Is this wise? Honestly... I don't know. I could be writing code that may be suddenly obsolete. There has been little feedback on questions I've asked but it's a nice learning process if anything and I will definitely be releasing the code for consumption.

這明智嗎? 老實說...我不知道。 我可能正在編寫可能突然過時的程式碼。 我提出的問題反饋很少,但是如果有的話,這是一個很好的學習過程,我肯定會發布該程式碼以供使用。

Over in the Microsoft corefxlab repo Jim has asked some questions and tried to push as well, but the issue is currently closed. Fortunately it is just closed for lack of interest. Krzysztof Cwalina from Microsoft says:

Jim在Microsoft corefxlab儲存庫中詢問了一些問題,並嘗試進行推送,但該問題目前已解決。 幸運的是,由於缺乏興趣,它剛剛關閉。 微軟的Krzysztof Cwalina說

We have nobody working actively on this. It's a interesting problem space, but it does not align with our current priorities. I will close this for now. Please let me know if anybody wants to work on it and I will reopen.

我們沒有人為此積極地工作。 這是一個有趣的問題空間,但與我們當前的優先重點不符。 我現在將關閉它。 請讓我知道是否有人要工作,我將重新開放。

Enter, you, us, the community. Jim has asked for help, and I'm also asking for help. Is Server-Side graphics manipulation in ASP.NET 5 important? Jim asks:

輸入您,我們,社群。 吉姆尋求幫助,我也在尋求幫助。 ASP.NET 5中的伺服器端圖形操作重要嗎? 吉姆問:

Please... Spread the word, contribute algorithms, submit performance improvements, unit tests. Help me set up CI for nightly releases.

請...傳播這個詞,貢獻演算法,提交效能改進和單元測試。 幫我設定每晚釋出的CI。

Performance is a biggie, if you know anything about the new vector types and can apply some fancy new stuff with that it would be awesome.

如果您對新的向量型別一無所知,並且可以應用一些新奇的功能,那麼效能就是一個大問題。

There's a lot of developers out there who could write this stuff a lot better and faster than I and I would love to see what we collectively can come up with so please, if you can help in any way it would be most welcome and beneficial for all.

有很多開發人員可以寫出比我快得多,更快的東西,我很樂意看到我們共同提出的建議,如果您能以任何方式提供幫助,那將是最受歡迎和有益的所有。

So, two things.

所以,兩件事。

First, head over to https://github.com/JimBobSquarePants/ImageProcessor/tree/V3 and talk to James M. South on Twitter. If you can, offer support. Perhaps help with a AppVeyor setup, or offer your own CI server for builds. Do you have a need for server-side image work now or perhaps you have a cache of unit tests? See what you can offer. Even if you're a First Timer to Open Source.

首先,轉到https://github.com/JimBobSquarePants/ImageProcessor/tree/V3並在Twitter上與James M. South交談。 如果可以,請提供支援。 也許對AppVeyor的安裝有幫助,或者提供自己的CI伺服器進行構建。 您現在是否需要伺服器端映像工作,或者您有一個單元測試快取? 看看您能提供什麼。 即使您是開源的初學者

Second, if you want to work on it, either with James, or with Microsoft, check out the closed issues on GitHub at https://github.com/dotnet/corefxlab/issues/86#issuecomment-158459437 and engage there. It'd be awesome to see this problem solved.

其次,如果您想與James或與Microsoft合作,請訪問GitHub上已解決的問題,網址https://github.com/dotnet/corefxlab/issues/86#issuecomment-158459437並參與其中。 看到這個問題解決了,真是太棒了。



Sponsor: Thanks to RedGate for sponsoring the blog this week. They're offering a free .NET eBook! Discover 52 tips to improve your .NET performance! Our new eBook features dozens of tips and tricks to boost .NET performance. With contributions from .NET experts around the world, you’ll have a faster app in no time. Download your free copy.

贊助商:感謝RedGate本週為部落格提供贊助。 他們正在提供免費的.NET電子書發現52條技巧來改善.NET效能! 我們的新電子書具有許多技巧和竅門,可提高.NET效能。 得益於.NET專家的大力支援,您將很快擁有一個更快的應用程式。 下載免費副本

關於斯科特 (About Scott)

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

斯科特·漢塞爾曼(Scott Hanselman)是前教授,前金融首席架構師,現在是演講者,顧問,父親,糖尿病患者和Microsoft員工。 他是一位失敗的單口相聲漫畫家,一個玉米種植者和一本書的作者。

facebook twitter subscribe About 關於 Newsletter 時事通訊 Hosting By 主持人 Hosted in an Azure App Service

翻譯自: https://www.hanselman.com/blog/rfc-serverside-image-and-graphics-processing-with-net-core-and-aspnet-5

.net 呼叫rfc引數