Skip to content

Convert transparent pixels of an image to a specific color e.g. white/black etc. Also process semi-transparent pixels for smooth edges of texts or other objects. This is .Net8-isolated Azure Function V4 app using C#.

License

Notifications You must be signed in to change notification settings

TareqNewazShahriar/process-transparent-pixels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

process-transparent-pixels

Convert transparent pixels of an image to a specific color (white/black) etc. Also process semi-transparent pixels to smoothen the edges of objects.

Framework

.Net6-isolated Azure Function V4 app using C#.

Parameters (using Query-String)

  • fillTransparency: white/black/none.
  • smoothEdge: true/false.
  • blobName: Azure blob path, excluding container name.
  • imageUrl: Public Image Url; e.g. mysite.com/images/logo.png. App will fetch the image and process it. Either blob name or image url will be processed.

An example url query can be: my-function-app.azurebetsites.net/ProcessTransparentImage?fillTransparency=white&smoothEdge=true&blobName=image/log-dark.png With imageUrl instead of blobName: &image-url=https://mycnd.com/images/logo.png

Output

output image with comparison

About

Convert transparent pixels of an image to a specific color e.g. white/black etc. Also process semi-transparent pixels for smooth edges of texts or other objects. This is .Net8-isolated Azure Function V4 app using C#.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages