Hey alle tweakere.
Jeg er PT i gang med at skrive om billedformater til min eksamen, og sidder lidt fast i PNG.
Jeg skal forklare lidt om komprimeringen. Jeg ved at det er noget med at den forudser pixels(wikipedia.org).
Men er der en der kan forklare det lidt på n00b sprog? Jeg har fundet det her på wikipedia, som måske siger jer meget, men jeg kan af en eller anden grund ikke forstå det:
QuoteCompression
PNG uses a non-patented lossless data compression method known as DEFLATE, which is the same algorithm used in the zlib compression library. This method is combined with prediction, where for each image line, a filter method is chosen that predicts the color of each pixel based on the colors of previous pixels and subtracts the predicted color of the pixel from the actual color. An image line filtered in this way is often more compressible than the raw image line would be, especially if it is similar to the line above (since deflate has no understanding that an image is a 2D entity, and instead just sees the image data as a stream of bytes).
På forhånd tak ![]()
