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/cJHtY2f6pTX8e_eyr74qdB47NoAM8nLqvu763u6qYe8/fetch/img/dot-net-core.svg?v=LlJvJAJiqjHsNXmYvDiMMOC9JvTjf9eDFIOtsKKyEyA

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(45.0)

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").Resize(400, 400).DrawText("bat-eared-fox", 65, 0.3, 0.1).BuildUrl()

/image/nKGeLzPjVpHwsJ95O2arISNsHwj9rqeMU8CcMc1yIaU/resize(400,400)/drawtext(text=YmF0LWVhcmVkLWZveA,size=65,x=0.3,y=0.1)/fetch/img/bat-eared-fox.jpg?v=2aD9g966hk7O4NygYHV23M-P6tVLZ3StXdEittBxtrU

Fetch local file (from wwwroot folder)

@Url.ImageWizard().FetchLocalFile("/img/bat-eared-fox.jpg").Resize(400,400).BuildUrl()

/image/C0gVhWMXwX_H5V2hph-vwQE3V33MKV86Q9lFNzm5s5o/resize(400,400)/fetch/img/bat-eared-fox.jpg?v=2aD9g966hk7O4NygYHV23M-P6tVLZ3StXdEittBxtrU

Fetch remote image

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

/image/l9l1WSm4AQsMKc9LDjxKjKqkCHl-wNcN1-1O-M6jvbc/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/dqwWk3Gn11mCyxwxjkvkU3WDxIfw8VANAU6QNSqtOM0/resize(400,400)/youtube/lzyWFew_w8Y

Default

Grayscale

Blur

Fetch gravatar image

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

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

Default

Grayscale

Blur

PDF (page to image)

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

/image/aFLygE-rFRVHgwoPGoWBMVpO6zJsJeE4DjxMi3YRDZ0/pagetoimage(0)/fetch/pdf/earth.pdf?v=Y_ZeAk7tyF1MUgEP74wAMWK-fOg8Nf7O_BnEMJUMi4I