Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

19
Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. PNG Portable Network Graphics

Transcript of Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

Page 1: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

Kleines SeminarIngo Freitag

2003

Prof. Dr. KneiselDr. Ing. Klement

PNG Portable Network Graphics

Page 2: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

2

Was ist PNG? Geschichtlicher Überblick Anwendungsgebiete PNG Vor und Nachteile PNG Genereller Aufbau einer PNG Datei Adam-7 Algorithmus Beispiel zu Adam-7 Quellen

Inhaltsverzeichnis

Page 3: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

3

Was ist PNG

Portable Network Graphics

Flexibles und lizenzfreies Grafikformat

Transparenz

16bit pro Kanal (RGB = 48 bit)

Progressiver Bildaufbau

Netzanwendung

Page 4: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

4

1987 Compuserve macht GIF als lizenzfreies Format bekannt.

bis 1993 Gif entwickelt sich zu einem der beliebtesten Grafikformate im Netz.

1993 UniSys bemerkt, dass der in GIF verwendete LZW Algorithmus ihr Patent berührt.

1993 UniSys verlangt Lizenz Gebühren für die Nutzung von GIF.

Vor-Geschichte PNG

Page 5: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

5

1995

In Diskussionsforen entstehen innerhalb wenige Monate die Entscheidung nach einen komplett neuen, lizenzfreien Format.

Es entsteht die PNGlib, die bis heute die Funktionalität für PNG bereitstellt.

Ende 1995 hat das W3C (www-Consortium) die PNG –Spezifikationen 0.92 als offizielles Arbeitsdokument verabschiedet.

Aktuelle Version von PNG 1.2

Kurzüberblick PNG Entstehung

Page 6: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

6

Vorteile:

Leichte Erweiterbarkeit

Echter Alphakanal

Nachteile:

Kein CMYK-Farbmodell

Nur verlustlose Komprimierung

Keine animierten Bilder

Vor- und Nachteile von PNG

Page 7: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

7

Blocktypen:

Critical chunks Ancillary chunks

Namensgebung:

Blocknamen bestehen aus 4 Buchstaben Groß Kleinschreibung unterscheidet sich in Bit 5

Chunks

Page 8: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

8

1. Ancillary bit 0: critical chunk1: ancillary chunk

2. Private bit0: public chunk1: private chunk

3: Reserved bit0: laut Spezifkation immer 01: „Reserviert“

Namensgebung der Chunks

Page 9: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

9

4. Safe-to-copy bit0: unsafe to copy1: safe to copy

Namensgebung der Chunks

Beispiel: tEXT

t = 1 zusätzlicher Block

E = 0 In den Spezifikationen enthalten

X = 0 „Reserviertes Bit“

T = 0 Darf gefahrlos kopiert werden

Page 10: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

10

Signatur:

Chunks (Blöcke)

Genereller Aufbau

Page 11: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

11

Critical Chunks - IHDR

Image Header - IHDR:

Page 12: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

12

Critical Chunks - PLTE

Palette - PLTE:

Page 13: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

13

Critical Chunks - IDAT

Pixeldatenblock IDAT:

Page 14: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

14

Critical Chunks - IEND

Image End – IEND:

Page 15: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

15

Ancillary chunks

Zusatzblöcke

tEXt Textual datazTXt Compressed textual datatIME Zeitstempel der letzten Änderung

Page 16: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

16

Interlacing – Adam-7

Benannt nach Adam M.Castello lizenzfreier Algorithmus Progressive Anzeige in 7 Durchgängen

Page 17: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

17

Adam7 – Beispiel

Beispiel eines 8x8 pixel großen Bildes:

Page 18: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

18

Quellen:

http://www.w3.org/TR/PNG/

http://www.libpng.org/pub/png/

http://goethe.ira.uka.de/seminare/redundanz/vortrag12/

Quellen

Page 19: Kleines Seminar Ingo Freitag 2003 Prof. Dr. Kneisel Dr. Ing. Klement PNG Portable Network Graphics.

03. Juni 2003 Grafikformat PNG - Ingo Freitag

19

Ende