Skip to content

osuritz/PNGNormalizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PNGNormalizer

Provides PNG normalization for files that have been crushed, especially PNGs optimized for iOS with Apple's version of pngcrush.

How To Use

This example shows how to read a crushed PNG, named [email protected], and save a normalized version as [email protected].

    // Get crushed PNG file as a byte array
    byte[] sourcePngData = System.IO.File.ReadAllBytes("[email protected]");
  
    // Parse the crushed data
    var png = new PngFile(sourcePngData);
    
    // Get the normalized PNG data
    byte[] normalizedPngData = png.Data;
    
    // Save the normalized file
    System.IO.File.WriteAllBytes("[email protected]", normalizedPngData);

About

A .NET library for normalizing iOS PNG images (crushed)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages