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/Ms1PcX6xGHVQ4FVaCTFPpHWToKvQPZvnmK3ILukEdtA/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/9pBlrvZyByUEE3u2-TNYEX0w1SjiWwIeogtLaUHhsC0/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/1hGwPqubav27Mhi6cwQ0DIf18St1hG-LJQAw2solot0/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/Tr4PrYKbP6Uj2KyGEyvZHitHA29NdHM33KD3TtsWxUc/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/fDDnpVV6HCF3odXWpxJ-0VuMhIW7hffVL5qm2e7wzZ4/resize(400,400)/youtube/lzyWFew_w8Y

Default

Grayscale

Blur

Use youtube taghelper (DSGVO friendly)

Fetch gravatar image

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

/image/1cmnFhsjaMcNj_MonDZmkN-E6twAQuoTcBOCM3_uKDM/resize(200,200)/gravatar/0bc83cb571cd1c50ba6f3e8a78ef1346

Default

Grayscale

Blur

PDF (page to image)

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

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