Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reducing PNG file size in .NET

Tags:

.net

image

png

I often use OptiPNG or pngcrush to reduce the file size of my PNG images.

I would like to be able to do this sort of thing programatically from within a .NET application. I'm dynamically generating PNGs that get sent to a mobile device, so I'd like to keep the filesize down.

Image quality is important, so PNG will definitely win over jpeg in this case.

Are there any existing libraries that I can use to do this?

like image 614
teedyay Avatar asked Sep 02 '11 09:09

teedyay


1 Answers

Why don't you try running any of the applications you've named from within your application using a command parameter. Or, if that's not possible, using windows automation.

like image 116
SaphuA Avatar answered Oct 21 '22 20:10

SaphuA