Welcome to ImageWizard

Image processing webservice based on ASP.NET Core and ImageSharp / SkiaSharp / SvgNet / DocNET

Use the standalone version or middleware.

Go to GitHub

SVG transforming

@Url.ImageWizard().FetchLocalFile("/img/dot-net-core.svg").BuildUrl()

/image/KMSYmMLGDjFCrIqIz71bo2Z3vN9yLqhp9EfFOe3Vce4/fetch/img/dot-net-core.svg?v=34HCQbe0PuFcjakOouFI7LkBcKWL2StcyK0PHDr36jE

Original (width=100px, height=100px)

RemoveSize()

Rotate(45.0)

Blur()

Grayscale()

Invert()

Saturate(0.3)

ImageSharp filters

resize(400,800,pad)

resize(400,800,crop)

resize(400,800,stretch)

resize(400,800,min)

resize(400,800,max)

blackwhite()

Grayscale()

blur()

rotate(90.0)

rotate(180.0)

rotate(270.0)

flip(vertical)

flip(horizontal)

invert()

brightness(0.5)

brightness(0.5)

crop(0.17, 0.22, 0.3, 0.3)

Draw text

@Url.ImageWizard().FetchLocalFile("/img/bat-eared-fox.jpg").AsImage().Resize(400, 400).DrawText("bat-eared-fox", 65, 0.3, 0.1, false).BuildUrl()

/image/Z0yeVHJappr_ETa4uSRhDBj4ji9985vXPysYbsBzkTQ/resize(400,400)/drawtext(text='bat-eared-fox',size=65,x=0.3,y=0.1)/fetch/img/bat-eared-fox.jpg?v=cZ_mpq1rXmgYEcFQya0iysWEqpioK49IMbfykegPPqo

Fetch local file (from wwwroot folder)

@Url.ImageWizard().FetchLocalFile("/img/meerkat.jpg").AsImage().Resize(400,400).BuildUrl()

/image/4fMCPw7wxt9aq0vEDqE0PHQ3gImhRrmCgTXUdJgHl2k/resize(400,400)/fetch/img/meerkat.jpg?v=DDHMhNqv1zwnIBMLXHQBFv62wCEmtOoDMyb2K5Zl9TY

Fetch remote image

@Url.ImageWizard().Fetch("https://upload.wikimedia.org/wikipedia/commons/b/b7/Europe_topography_map.png").AsImage().Resize(400,400).BuildUrl()

/image/GgTXbQOZpUPyjfXxRyH7KIIx4T_GHreeVc4BtSgyc18/resize(400,400)/fetch/https://upload.wikimedia.org/wikipedia/commons/b/b7/Europe_topography_map.png

Default

Grayscale

Blur

Fetch youtube image

@Url.ImageWizard().Youtube("lzyWFew_w8Y").Resize(400,400).BuildUrl()

/image/lT7u3UPdrRcgYO0U5tJ6J3zCub93ukkg9xqaTDC-zPg/resize(400,400)/youtube/lzyWFew_w8Y

Default

Grayscale

Blur

Use youtube taghelper (DSGVO friendly)

<youtube video-id="AQHZQ8p6FCA" width="1920" height="1080" grayscale="true" blur="true" />

Fetch gravatar image

@Url.ImageWizard().Gravatar("MyEmailAddress@example.com").Resize(200,200).BuildUrl()

/image/PY_v9Bw94i8QjEQV4gpmdDwUXRLXATvYwduVdpjozJ0/resize(200,200)/gravatar/0bc83cb571cd1c50ba6f3e8a78ef1346

Default

Grayscale

Blur

PDF (page to image)

@Url.ImageWizard().FetchLocalFile("/pdf/earth.pdf").AsPdf().PageToImage(0).BuildUrl()

/image/Avp626vaZNCMIOmR78GUFA4gQRa01XHmtJ02FHNpkgw/pagetoimage(0)/fetch/pdf/earth.pdf?v=S8BcC2lBUCJRKBJO1VAWsjmcQ0FCnNbKoaC0-uXE9mA