Gibt es ein unkomprimiertes Format für PNG?

4202
user1032421

Wie wir wissen, ist das PNG-Bildformat das verlustfreie Format für Bilddateien. Im Vergleich zu verlustfreien Audiodateiformaten wie beispielsweise FLAC: Wenn ich sie dekomprimiere, erhalte ich unkomprimiertes .WAV-Dateiformat.

Ich frage mich also, welches unkomprimierte Format komprimiert PNG? Ist es das Bitmap-Dateiformat?

2
PNG hat GIF als Open-Source-Alternative abgelöst. Ich denke, beide komprimieren BMP oder TIFF Raystafarian vor 12 Jahren 0

2 Antworten auf die Frage

10
mtone

FLAC is not compressed .WAV.

  • FLAC is a format that stores and compress digital waveforms (PCM) without loss.
  • WAV is a format that store PCM data without compression.

What I'm saying is that when you uncompressed a FLAC, you're not magically getting a .WAV file. Rather, the program you're using is decoding the PCM data and writing it back into the .WAV format just because it's the most common format. Since both formats are lossless, there's no loss in this transition, but the PCM waveform could just as well be written back to other lossless formats: such as Apple AIFF and CD audio.

Due to the age and popularity of the .WAV format in both consumer and professional, it just happens - by tradition and device support - to be lowest common denominator format, but wouldn't necessarily have to be.

I hope this provides a new angle to your question.

Similarly, a lossless image is a raster graphic, or bitmap, but bitmap data is not necessarily linked to the .BMP format, which is just specific way for storing bitmap data. Just like .WAVs, the popular usage of BMP mainly derive out of their simplicity (well documented, don't support lossy content, etc), and having been around for a while.

Other common lossless formats that are also uncompressed include:

  • TIFF has been around for a long time in business applications, but it is a more flexible/complex format that can be both lossy and lossless
  • RAW which is found in many digital cameras can also be lossless.

In summary, there are no original format for either "audio" or "image" data, anyone could store it anyway they wish. What we have are common file formats and softwares that know how to translate between them.

To answer your question, it seems .BMP is not as much the de facto standard that .WAV got the be in the audio world. Whether the uncompressed format of choice is BMP, TIFF or RAW (or others) will depend on the type of application/business.

Danke für eine nette Antwort. Also ist .WAV sowohl ein komprimiertes als auch ein verlustfreies Format, wie .BMP [anscheinend] (http://superuser.com/a/386039/115584)? user1032421 vor 12 Jahren 0
Bitte. Wenn Sie ".WAV bedeutet sowohl unkomprimiert als auch verlustfrei wie .BMP" bedeuten, dann ja. mtone vor 12 Jahren 1
@ mtone- das stimmt nicht genau. Bitte sehen Sie meine Antwort unten. Tom vor 6 Jahren 3
4
Tom

Was @mtone schrieb, braucht ein paar Worte, um die Dinge zu klären:

  • .WAV ist kein Format. Es ist ein Container für andere Formate. Sie können viele verschiedene Audioformate in einen WAV-Container einfügen. Sie können eine .WAV-Datei mit einem MP3-Song erstellen. Daher kann .WAV sowohl verlustlos als auch verlustbehaftet sein (nicht sein).
  • .TIFF ist auch kein Format, sondern ein Container. Sie können JPEG-Bilder in einem TIF platzieren. Genau wie mtone schrieb, kann es verlustfreie und verlustbehaftete Formate enthalten.
  • Es gibt kein RAW-Format. Verschiedene Kameras verwenden unterschiedliche Rohformate. Canon verwendet .CRW und .CR2, Nikon verwendet .NEF und .NRW und so weiter.
  • Neben "Camera Raw" gibt es auch "echte" Rohformate, die lange vor der Erfindung der Digitalkameras verwendet wurden. "Echte" Rohformate sind so roh, dass sie nur die Pixel enthalten, sonst nichts. Viele Spiele verwendeten in der Vergangenheit Rohformate. Wie haben diese funktioniert? Ein Spielentwickler entschied, dass er 640x480-Pixel-Bilder mit 24-Bit-Farbpixeln und nichts anderes brauche. Daher haben sie diese Bilder ohne Kopf- oder Metadaten in Dateien gespeichert. Solche Bilder waren genau 640 x 480 x 3 Byte groß. Ein anderer Spieleentwickler hat entschieden, dass sein Spiel 320x200 Bilder mit 8 Bit pro Pixel in Graustufen benötigt. Daher sind alle Bilder für dieses Spiel genau 320x200 Byte groß. Dies ist die einfachste Möglichkeit, Bilder zu speichern.
  • .BMP ist ein Format (kein Container), kann jedoch komprimiert werden. Verlustfrei mit RLE-Methode, kann aber komprimiert werden. Es ist also eigentlich kein so einfaches Format, das jeder für sich hält. Es ist populär und weit verbreitet, nur weil Microsoft es populär gemacht hat und es einfach war, das teilweise Speichern / Laden von BMP zu implementieren. Es gibt jedoch kein Programm, das alle möglichen BMP-Images lesen und speichern kann. So kompliziert ist dieses Format.