jbildstein / nanojpeg.net Goto Github PK
View Code? Open in Web Editor NEWC# port of NanoJpeg
License: MIT License
C# port of NanoJpeg
License: MIT License
I found and fixed a nasty bug regarding greyscale JPEGs. The following condition in the else
branch of Image.ConvertYcc
is wrong:
NanoJpeg.Net/NanoJpeg/Image.Convert.cs
Line 76 in c200b00
If stride and width are equal, greyscale images will not be handled and have the Data
field left at null
.
The difference between stride and width is checked a few lines below and the case where they are equal is completely fine, and even handled correctly. The condition should rather be:
else if (channels.Length == 1)
Note that this is already a bug in the original NanoJPEG.
While adding jpg support I ran into a bug with clipping where it was hiding images. Clipping has been disabled and needs to be fixed.
I added NanoJpg library to process jpg files but it does not support CMYK color space. There might be a problem with Grayscale as well.
I want to pass it a stream so I can process images consistently
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.