Wiki › Project

PPM to PNG converter

Project · tool · 2024

PPM to PNG converter is a small C++ program that turns PPM images, the simplest uncompressed image format, into PNG files using libpng. He wrote it to view the output of his ray tracer, which writes PPM. It is included as a Git submodule in the ray-tracing projects and built with CMake.

What it reads

P1
monochrome bitmaps (PBM).
P3
RGB pixmaps written as plain text.
P6
RGB pixmaps in binary.

It takes two arguments, the PPM file and the PNG to write (ppm_to_png input.ppm output.png), and reports when the conversion succeeded.

See also

In the knowledge graph

PPM to PNG converter and the 9 things it is linked to. Open any dot for its page, or explore it in the full graph.

When
2023202420252026
Jul 2024 · 1 commits

As data

Everything on this page is read from triples in the knowledge graph. These are the 22 it states about PPM to PNG converter, and 3 more its ontology implies; the console runs SPARQL over the whole graph, here in your browser.

Download
@prefix id: <https://ask.chaipat.cc/id/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix cj: <https://ask.chaipat.cc/ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

id:PPM2PNG
    a cj:Project ;
    rdfs:label "PPM to PNG converter" ;
    cj:description "Converts PPM images to PNG in C++ with libpng." ;
    cj:context id:OpenSource ;
    cj:repository "https://github.com/AppleBoiy/ppm2png"^^xsd:anyURI ;
    cj:firstCommit "2024-07-06"^^xsd:date ;
    cj:lastCommit "2024-07-06"^^xsd:date ;
    cj:commitCount 1 ;
    cj:kind "tool" ;
    cj:license "MIT" ;
    cj:theme id:ThemeSystems ;
    cj:uses id:CPP , id:Libpng , id:CMake ;
    cj:tier 2 ;
    cj:handles id:PPMFormat , id:PNGFormat ;
    cj:partOf id:RayTracingSeries ;
    cj:mentions id:RTWeekend ;
    cj:article "https://ask.chaipat.cc/wiki/PPM2PNG"^^xsd:anyURI ;
    cj:activeIn id:Y2024 ;
    cj:activity _:b126 .