pypng


Namepypng JSON
Version 0.20220715.0 PyPI version JSON
download
home_pagehttps://gitlab.com/drj11/pypng
SummaryPure Python library for saving and loading PNG images
upload_time2022-07-15 14:11:05
maintainer
docs_urlNone
authorDavid Jones
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # README for PyPNG

drj@pobox.com


# INTRODUCTION

PNG module for Python. PyPNG is written entirely in Python.

- PyPNG home page: https://gitlab.com/drj11/pypng/
- PyPNG Documentation: https://pypng.readthedocs.io/en/latest/
- PyPNG mailing list: https://groups.google.com/forum/#!forum/pypng-users


## QUICK START

    import png
    png.from_array([[255, 0, 0, 255],
                    [0, 255, 255, 0]], 'L').save("small_smiley.png")

After that, try `import png` then `help(png)`.
Also, lickable HTML documentation appears in the `html/` directory.
If HTML is no good then you could try the ReST sources
in the `man/` directory.


## INSTALLATION

PyPNG is pure Python and has no dependencies.
It requires Python 3.5 or any compatible higher version.

To install PyPNG package via pip use:

    python -m pip install git+https://gitlab.com/drj11/pypng@pypng-0.20220715.0

After install use

    `import png`

to access the `png` module in your Python program.

You can also install from source using `setuptools`.
PyPNG uses `setup.cfg` and `pyproject.toml` to record its
configuration.

To install from (version controlled) sources using a suitable
version of `pip`:

`cd` into the directory and execute the command:

    python -m pip install .

PyPNG is so simple, that you don't need installation tools.
You can copy `code/png.py` wherever you like.
It's intended that you can copy `png.py` into
your application and distribute it.
The following `curl` command should copy the latest version into
your current directory:

    curl -LO https://gitlab.com/drj11/pypng/-/raw/main/code/png.py


## RELEASE NOTES

(For issues see https://gitlab.com/drj11/pypng/-/issues/ )


### Release (the next)

### Release 0.20220715.0

Development moved to gitlab: https://gitlab.com/drj11/pypng

If you pass an empty file to PyPNG
it now raises the builtin Python exception `EOFError`.
This should make it easier to diagnose _empty file_ problems separately
from genuine format errors
(which use `png.FormatError`).
This is a slightly breaking change to the API.

New `prirowpng` tool to join PNG images in a row left-to-right
(old internal `pipcat` tool).

New `pricolpng` tool to join PNG images in a column top-to-bottom.

Support for plain PGM files (magic number P2) added to `pripamtopng`.

New `priplan9topng` tool to convert from Plan 9 image format to PNG.
In reality this has been lurking in the codebase for years, but
has recently been converted to Python 3.
The author has only a limited collection of Plan 9 images,
which limits the testing that can be done.
The author welcomes bug reports for Plan 9 images.

The `priplan9topng` tool has an even more experimental option
`--font` which converts Plan 9 subfont files to a sequence of
PNG files.


### Release 0.0.21

Support for Python 2 is dropped.
Python 3.5 and onwards are supported.
Some of the ancillary tools are modified to work on Python 3.

Installs via wheel files.

`prichunkpng` command line tool now has some new options to add
chunks:
- `--iccprofile` to add a `iCCP` chunk (ICC Profile);
- `--physical` to add a `pHYs` chunk,
  specifying the intended pixel size;
- `--sigbit` to add a `sBIT` chunk,
  specifying the encoded significant bits;
- `--transparent` to add a `tRNS` chunk,
  specifying the transparent colour.

`priditherpng` command line tool standardised and
converted to Python 3.

`pripngtopam` tool now has a `--plain` option to output plain PGM
and PPM formats. The `topam` part of the name is a bit of a
misnomer: when possible (L and RGB PNG files) the tool will
output either a PGM (grey) or a PPM (RGB) file. Essentially all
tools that can process a PAM file can also process a PGM or a
PPM file. PAM files cannot be _plain_ so using the option
will raise an error in the case where a true PAM file is
written.

Better error messages when you write the wrong number of rows.

(Slightly experimentally) running the `png` module as a command
line tool, with `python -m png`, will report the version and
file location of the `png` module.


### Release 0.0.20

Support for earlier versions of Python is dropped.
Python 3.4 and onwards are supported.
Python 2.7 also works, but this is the last
release to support any version of Python 2.

Cython code is removed, which simplifies the implementation.

Removed the (optional) dependency `setuptools`.

Changed the default for `png.Writer` to be greyscale.

Removed 3D support from `.from_array()`.


### Release 0.0.19

Support for earlier versions of Python is dropped in order to
simplify the code.
From the Python 3.x series all versions from 3.2 onward are supported.
From the 2.x series only Python 2.6 and 2.7 are supported.

Code cleaned.
Tests renamed and more organised.
Generally Flake 8 compliant.
Fewer special cases for ancient versions of Python.

The row length is checked when writing PNG files.
Previously it was possible to write badly formed PNG files
by passing in rows of the wrong length.

`pHYS` chunk is now processed.

The `Writer()` interface now supports source pixels
that have a different bitdepth for each channel.
To exploit this, pass in a tuple for the bitdepth argument.

Ancillary tools regularised and simplified.

`pripamtopng` command line tool converts NetPBM PNM/PAM files to PNG.
Previously `png.py` did this.
Note that only one input file is converted,
if you have intensity and opacity in separate files,
you have two options:
either use `pamstack` to convert them into a single PAM file and
convert that, or
convert each file to PNG, then use `priweavepng` to weave them together.
Both will work.

`pripngtopam` command line tool converts PNG to NetPBM PNM/PAM file.
Previously `png.py` did this.

`python -m pngsuite` is now a command line tool to
write various images from the PNG suite of test images.
Previously this was possible using `gen`.

`priweavepng` command line tool performs channel extraction across
multiple images.
This is a more general version of `pipstack` (which has been removed),
and is inspired by `pamstack` from NetPBM.

The `--interlace` option available on many previous tools is
now only available on `priweavepng`,
making it the preferred tool for generating interlaced PNGs.

`prichunkpng` command line tool adds and deletes chunks and
"intelligently" knows about transparent, gamma, background chunks.
It is the preferred tool for adding those chunks,
which was previously possible using various options of other tools.

`gen` has been renamed to `priforgepng`.

`priforgepng` uses centre pixel sampling, which means that a 256 pixel
wide 8-bit gradient takes on all possible 256 values.
It also improves output for very small images.

`priforgepng` uses `Fraction` for internal maths meaning that
the stripe patterns are accurate and do not have loose pixels.

`priforgepng` only outputs greyscale PNG files
(but see next item for a feature to generate colour PNGs).

`priforgepng` can output multiple PNGs onto the same stream.
This aligns well with a feature of `priweavepng` which
accepts multiple PNGs from stdin.
LA, RGB, and RGBA test images can be generated by
piping `priforgepng` into `priweavepng`:
`priforgepng RTL RTR RBR | priweavepng - - -`
will generate an RGB PNG.


### Release 0.0.18

Thanks to `github.com/sean-duffy`,
`.from_array()` can now take a 3D array.

Converting to PNMs was broken in Python 3; this is now fixed.
Issue 26: https://gitlab.com/drj11/pypng/-/issues/26


### Release 0.0.17

Various fixes when running on Python 3 and Windows.
Merging pull requests from `github.com/ironfroggy` and
`github.com/techtonik`,
and merging by hand a commit from `github.com/Scondo`.


### Release 0.0.16

Compatible with nose: `nosetests png.py` now works.

Allow any "file-like" object as an input.

Handle newlines in `texttopng`.


### Release 0.0.15

Fixed various URLs to point at github.com instead of googlecode.


### Release 0.0.14

When using `png.py` as a command line tool,
it can now produce non-square test images.

PyPNG now installs "out of the box" on Python 3 on a plain install
(previously `distribute` or `pip` was required).

PyPNG welcomes the following community contributions:

  JoaquĆ­n Cuenca Abela speeds up PNG reading when Cython is available.

  Josh Bleecher Snyder adds a lenient mode
  which has relaxed checksum checking.

  nathan@dunfield.info fixed a problem writing files
  when using the command line tool on Windows (Issue 62).

The following issues have been fixed:

  On github:

  Issue 6: Palette processing is annoying

  On googlecode:

  Issue 62: Problem writing PNG files on Windows

Development has moved from googlecode to github.
All issues below here, and the one immediately above,
are from the googlecode issue tracker.
All newer issue should be on github.


### Release 0.0.13

PyPNG now installs "out of the box" on Python 3.
Thanks to simon.sapin@kozea.fr and nathan@dunfield.info for the patch.

The following issues have been fixed:

  Issue 63: setup.py does not use 2to3
  Issue 64: Typo in documentation


### Release 0.0.12

PyPNG now works on Python 3 if you use the `2to3` tool.
Fix for converting grey images to RGBA.

The following issues have been fixed:

  Issue 60: Greyscale images not properly being converted to RGBA
  Issue 61: Doesn't work on Python 3


### Release 0.0.11

Added the "How Fast is PyPNG" section to the documentation.
Changed it so that more PNG formats return their rows as
Python `array.array` instances.


### Release 0.0.10

Fix for read_flat method (broken for ages).

The following issues have been fixed:

  Issue 56:  read_flat broken


### Release 0.0.9

Tentative fix for a deprecation warning on 64-bit Python 2.5 systems.
Conversion tool for Plan 9 images.

Issue 54 (below) is tentative.
The PyPNG developers have been unable to reproduce the error
(as it seems to be on 64-bit Python 2.5 systems);
any user reports would be most welcome.

The following issues have been fixed:

  Issue 54:  Deprecation warnings when using pypng.
  Issue 55:  Cannot convert Plan 9 images.


### Release 0.0.8

Mostly more robust to dodgy input PNGs,
as a result of testing with `brokensuite`.
One fixed bug was a critical:
an infinite loop for a least one input (Issue 52 below).

The following issues have been fixed:

  Issue 47:  Leading blanks when using write_packed.
  Issue 48:  pipdither fails when input has no gamma chunk.
  Issue 49:  pipdither fail with 1-bit input.
  Issue 50:  pipchunk adds second gamma chunk.
  Issue 51:  piprgb and pipasgrey fail for color mapped images.
  Issue 52:  Some inputs cause infinite loop.


### Release 0.0.7

Better documentation (in `html/ex.html` mostly) for NumPy integration.

The following issues have been fixed:

  Issue 46:  Unclear how to get PNG pixel data into and out of NumPy.


### Release 0.0.6

NumPy integer types now work.

The following issues have been fixed:

  Issue 44:  Cannot use numpy.uint16 for pixel values.


### Release 0.0.5

`sBIT` chunks are now handled,
meaning that PyPNG can handle any (single) bit depth from 1 to 16
from end to end.

The following issues have been fixed:

  Issue 28:  Does not add sBIT chunk.
  Issue 36:  Ignores sBIT chunk when present.


### Release 0.0.4

PyPNG now works on Python 2.2
(significant for Symbian users as PyS60 is based on Python 2.2).
Not all features are supported on Python 2.2.

The following issues have been fixed:

  Issue 16:  Source and doc uses 'K' where it should use 'L'.
  Issue 32:  Does not accept packed data.
  Issue 33:  Cannot create greyscale PNG with transparency.
  Issue 35:  Does not work on Python 2.2.


### Release 0.0.3

Handling PAM files allows end to end handling of alpha channels in
workflows that involve both Netpbm formats and PNG.
PyPNG now works in Python 2.3.

The following issues have been fixed:

  Issue 14:  Does not read PAM files.
  Issue 15:  Does not write PAM files.
  Issue 25:  Incorrect handling of tRNS chunk.
  Issue 26:  asRGBA8 method crashes out for color type 2 images.
  Issue 27:  Fails on Python 2.3.


### Release 0.0.2

Lickable HTML documentation is now provided (see the html/ directory),
generated by Sphinx.

The following issues have been fixed:

  Issue 8:  Documentation is not lickable.
  Issue 9:  Advantage over PIL is not clear.
  Issue 19: Bogus message for PNM inputs with unsupported maxval
  Issue 20: Cannot write large PNG files


### Release 0.0.1

Stuff happened.


## MANIFEST

- .../ - top-level crud (like this README, and setup.py).
- .../asset - assets (needed for testing)
- .../code/ - the Python code.
- .../man/ - manuals (in source/plain-text).
- .../proc/ - documented procedures (release procedure).


## REFERENCES

- Python: www.python.org
- PNG: http://www.w3.org/TR/PNG/

## END

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/drj11/pypng",
    "name": "pypng",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "David Jones",
    "author_email": "drj@pobox.com",
    "download_url": "https://files.pythonhosted.org/packages/93/cd/112f092ec27cca83e0516de0a3368dbd9128c187fb6b52aaaa7cde39c96d/pypng-0.20220715.0.tar.gz",
    "platform": null,
    "description": "# README for PyPNG\n\ndrj@pobox.com\n\n\n# INTRODUCTION\n\nPNG module for Python. PyPNG is written entirely in Python.\n\n- PyPNG home page: https://gitlab.com/drj11/pypng/\n- PyPNG Documentation: https://pypng.readthedocs.io/en/latest/\n- PyPNG mailing list: https://groups.google.com/forum/#!forum/pypng-users\n\n\n## QUICK START\n\n    import png\n    png.from_array([[255, 0, 0, 255],\n                    [0, 255, 255, 0]], 'L').save(\"small_smiley.png\")\n\nAfter that, try `import png` then `help(png)`.\nAlso, lickable HTML documentation appears in the `html/` directory.\nIf HTML is no good then you could try the ReST sources\nin the `man/` directory.\n\n\n## INSTALLATION\n\nPyPNG is pure Python and has no dependencies.\nIt requires Python 3.5 or any compatible higher version.\n\nTo install PyPNG package via pip use:\n\n    python -m pip install git+https://gitlab.com/drj11/pypng@pypng-0.20220715.0\n\nAfter install use\n\n    `import png`\n\nto access the `png` module in your Python program.\n\nYou can also install from source using `setuptools`.\nPyPNG uses `setup.cfg` and `pyproject.toml` to record its\nconfiguration.\n\nTo install from (version controlled) sources using a suitable\nversion of `pip`:\n\n`cd` into the directory and execute the command:\n\n    python -m pip install .\n\nPyPNG is so simple, that you don't need installation tools.\nYou can copy `code/png.py` wherever you like.\nIt's intended that you can copy `png.py` into\nyour application and distribute it.\nThe following `curl` command should copy the latest version into\nyour current directory:\n\n    curl -LO https://gitlab.com/drj11/pypng/-/raw/main/code/png.py\n\n\n## RELEASE NOTES\n\n(For issues see https://gitlab.com/drj11/pypng/-/issues/ )\n\n\n### Release (the next)\n\n### Release 0.20220715.0\n\nDevelopment moved to gitlab: https://gitlab.com/drj11/pypng\n\nIf you pass an empty file to PyPNG\nit now raises the builtin Python exception `EOFError`.\nThis should make it easier to diagnose _empty file_ problems separately\nfrom genuine format errors\n(which use `png.FormatError`).\nThis is a slightly breaking change to the API.\n\nNew `prirowpng` tool to join PNG images in a row left-to-right\n(old internal `pipcat` tool).\n\nNew `pricolpng` tool to join PNG images in a column top-to-bottom.\n\nSupport for plain PGM files (magic number P2) added to `pripamtopng`.\n\nNew `priplan9topng` tool to convert from Plan 9 image format to PNG.\nIn reality this has been lurking in the codebase for years, but\nhas recently been converted to Python 3.\nThe author has only a limited collection of Plan 9 images,\nwhich limits the testing that can be done.\nThe author welcomes bug reports for Plan 9 images.\n\nThe `priplan9topng` tool has an even more experimental option\n`--font` which converts Plan 9 subfont files to a sequence of\nPNG files.\n\n\n### Release 0.0.21\n\nSupport for Python 2 is dropped.\nPython 3.5 and onwards are supported.\nSome of the ancillary tools are modified to work on Python 3.\n\nInstalls via wheel files.\n\n`prichunkpng` command line tool now has some new options to add\nchunks:\n- `--iccprofile` to add a `iCCP` chunk (ICC Profile);\n- `--physical` to add a `pHYs` chunk,\n  specifying the intended pixel size;\n- `--sigbit` to add a `sBIT` chunk,\n  specifying the encoded significant bits;\n- `--transparent` to add a `tRNS` chunk,\n  specifying the transparent colour.\n\n`priditherpng` command line tool standardised and\nconverted to Python 3.\n\n`pripngtopam` tool now has a `--plain` option to output plain PGM\nand PPM formats. The `topam` part of the name is a bit of a\nmisnomer: when possible (L and RGB PNG files) the tool will\noutput either a PGM (grey) or a PPM (RGB) file. Essentially all\ntools that can process a PAM file can also process a PGM or a\nPPM file. PAM files cannot be _plain_ so using the option\nwill raise an error in the case where a true PAM file is\nwritten.\n\nBetter error messages when you write the wrong number of rows.\n\n(Slightly experimentally) running the `png` module as a command\nline tool, with `python -m png`, will report the version and\nfile location of the `png` module.\n\n\n### Release 0.0.20\n\nSupport for earlier versions of Python is dropped.\nPython 3.4 and onwards are supported.\nPython 2.7 also works, but this is the last\nrelease to support any version of Python 2.\n\nCython code is removed, which simplifies the implementation.\n\nRemoved the (optional) dependency `setuptools`.\n\nChanged the default for `png.Writer` to be greyscale.\n\nRemoved 3D support from `.from_array()`.\n\n\n### Release 0.0.19\n\nSupport for earlier versions of Python is dropped in order to\nsimplify the code.\nFrom the Python 3.x series all versions from 3.2 onward are supported.\nFrom the 2.x series only Python 2.6 and 2.7 are supported.\n\nCode cleaned.\nTests renamed and more organised.\nGenerally Flake 8 compliant.\nFewer special cases for ancient versions of Python.\n\nThe row length is checked when writing PNG files.\nPreviously it was possible to write badly formed PNG files\nby passing in rows of the wrong length.\n\n`pHYS` chunk is now processed.\n\nThe `Writer()` interface now supports source pixels\nthat have a different bitdepth for each channel.\nTo exploit this, pass in a tuple for the bitdepth argument.\n\nAncillary tools regularised and simplified.\n\n`pripamtopng` command line tool converts NetPBM PNM/PAM files to PNG.\nPreviously `png.py` did this.\nNote that only one input file is converted,\nif you have intensity and opacity in separate files,\nyou have two options:\neither use `pamstack` to convert them into a single PAM file and\nconvert that, or\nconvert each file to PNG, then use `priweavepng` to weave them together.\nBoth will work.\n\n`pripngtopam` command line tool converts PNG to NetPBM PNM/PAM file.\nPreviously `png.py` did this.\n\n`python -m pngsuite` is now a command line tool to\nwrite various images from the PNG suite of test images.\nPreviously this was possible using `gen`.\n\n`priweavepng` command line tool performs channel extraction across\nmultiple images.\nThis is a more general version of `pipstack` (which has been removed),\nand is inspired by `pamstack` from NetPBM.\n\nThe `--interlace` option available on many previous tools is\nnow only available on `priweavepng`,\nmaking it the preferred tool for generating interlaced PNGs.\n\n`prichunkpng` command line tool adds and deletes chunks and\n\"intelligently\" knows about transparent, gamma, background chunks.\nIt is the preferred tool for adding those chunks,\nwhich was previously possible using various options of other tools.\n\n`gen` has been renamed to `priforgepng`.\n\n`priforgepng` uses centre pixel sampling, which means that a 256 pixel\nwide 8-bit gradient takes on all possible 256 values.\nIt also improves output for very small images.\n\n`priforgepng` uses `Fraction` for internal maths meaning that\nthe stripe patterns are accurate and do not have loose pixels.\n\n`priforgepng` only outputs greyscale PNG files\n(but see next item for a feature to generate colour PNGs).\n\n`priforgepng` can output multiple PNGs onto the same stream.\nThis aligns well with a feature of `priweavepng` which\naccepts multiple PNGs from stdin.\nLA, RGB, and RGBA test images can be generated by\npiping `priforgepng` into `priweavepng`:\n`priforgepng RTL RTR RBR | priweavepng - - -`\nwill generate an RGB PNG.\n\n\n### Release 0.0.18\n\nThanks to `github.com/sean-duffy`,\n`.from_array()` can now take a 3D array.\n\nConverting to PNMs was broken in Python 3; this is now fixed.\nIssue 26: https://gitlab.com/drj11/pypng/-/issues/26\n\n\n### Release 0.0.17\n\nVarious fixes when running on Python 3 and Windows.\nMerging pull requests from `github.com/ironfroggy` and\n`github.com/techtonik`,\nand merging by hand a commit from `github.com/Scondo`.\n\n\n### Release 0.0.16\n\nCompatible with nose: `nosetests png.py` now works.\n\nAllow any \"file-like\" object as an input.\n\nHandle newlines in `texttopng`.\n\n\n### Release 0.0.15\n\nFixed various URLs to point at github.com instead of googlecode.\n\n\n### Release 0.0.14\n\nWhen using `png.py` as a command line tool,\nit can now produce non-square test images.\n\nPyPNG now installs \"out of the box\" on Python 3 on a plain install\n(previously `distribute` or `pip` was required).\n\nPyPNG welcomes the following community contributions:\n\n  Joaqu\u00edn Cuenca Abela speeds up PNG reading when Cython is available.\n\n  Josh Bleecher Snyder adds a lenient mode\n  which has relaxed checksum checking.\n\n  nathan@dunfield.info fixed a problem writing files\n  when using the command line tool on Windows (Issue 62).\n\nThe following issues have been fixed:\n\n  On github:\n\n  Issue 6: Palette processing is annoying\n\n  On googlecode:\n\n  Issue 62: Problem writing PNG files on Windows\n\nDevelopment has moved from googlecode to github.\nAll issues below here, and the one immediately above,\nare from the googlecode issue tracker.\nAll newer issue should be on github.\n\n\n### Release 0.0.13\n\nPyPNG now installs \"out of the box\" on Python 3.\nThanks to simon.sapin@kozea.fr and nathan@dunfield.info for the patch.\n\nThe following issues have been fixed:\n\n  Issue 63: setup.py does not use 2to3\n  Issue 64: Typo in documentation\n\n\n### Release 0.0.12\n\nPyPNG now works on Python 3 if you use the `2to3` tool.\nFix for converting grey images to RGBA.\n\nThe following issues have been fixed:\n\n  Issue 60: Greyscale images not properly being converted to RGBA\n  Issue 61: Doesn't work on Python 3\n\n\n### Release 0.0.11\n\nAdded the \"How Fast is PyPNG\" section to the documentation.\nChanged it so that more PNG formats return their rows as\nPython `array.array` instances.\n\n\n### Release 0.0.10\n\nFix for read_flat method (broken for ages).\n\nThe following issues have been fixed:\n\n  Issue 56:  read_flat broken\n\n\n### Release 0.0.9\n\nTentative fix for a deprecation warning on 64-bit Python 2.5 systems.\nConversion tool for Plan 9 images.\n\nIssue 54 (below) is tentative.\nThe PyPNG developers have been unable to reproduce the error\n(as it seems to be on 64-bit Python 2.5 systems);\nany user reports would be most welcome.\n\nThe following issues have been fixed:\n\n  Issue 54:  Deprecation warnings when using pypng.\n  Issue 55:  Cannot convert Plan 9 images.\n\n\n### Release 0.0.8\n\nMostly more robust to dodgy input PNGs,\nas a result of testing with `brokensuite`.\nOne fixed bug was a critical:\nan infinite loop for a least one input (Issue 52 below).\n\nThe following issues have been fixed:\n\n  Issue 47:  Leading blanks when using write_packed.\n  Issue 48:  pipdither fails when input has no gamma chunk.\n  Issue 49:  pipdither fail with 1-bit input.\n  Issue 50:  pipchunk adds second gamma chunk.\n  Issue 51:  piprgb and pipasgrey fail for color mapped images.\n  Issue 52:  Some inputs cause infinite loop.\n\n\n### Release 0.0.7\n\nBetter documentation (in `html/ex.html` mostly) for NumPy integration.\n\nThe following issues have been fixed:\n\n  Issue 46:  Unclear how to get PNG pixel data into and out of NumPy.\n\n\n### Release 0.0.6\n\nNumPy integer types now work.\n\nThe following issues have been fixed:\n\n  Issue 44:  Cannot use numpy.uint16 for pixel values.\n\n\n### Release 0.0.5\n\n`sBIT` chunks are now handled,\nmeaning that PyPNG can handle any (single) bit depth from 1 to 16\nfrom end to end.\n\nThe following issues have been fixed:\n\n  Issue 28:  Does not add sBIT chunk.\n  Issue 36:  Ignores sBIT chunk when present.\n\n\n### Release 0.0.4\n\nPyPNG now works on Python 2.2\n(significant for Symbian users as PyS60 is based on Python 2.2).\nNot all features are supported on Python 2.2.\n\nThe following issues have been fixed:\n\n  Issue 16:  Source and doc uses 'K' where it should use 'L'.\n  Issue 32:  Does not accept packed data.\n  Issue 33:  Cannot create greyscale PNG with transparency.\n  Issue 35:  Does not work on Python 2.2.\n\n\n### Release 0.0.3\n\nHandling PAM files allows end to end handling of alpha channels in\nworkflows that involve both Netpbm formats and PNG.\nPyPNG now works in Python 2.3.\n\nThe following issues have been fixed:\n\n  Issue 14:  Does not read PAM files.\n  Issue 15:  Does not write PAM files.\n  Issue 25:  Incorrect handling of tRNS chunk.\n  Issue 26:  asRGBA8 method crashes out for color type 2 images.\n  Issue 27:  Fails on Python 2.3.\n\n\n### Release 0.0.2\n\nLickable HTML documentation is now provided (see the html/ directory),\ngenerated by Sphinx.\n\nThe following issues have been fixed:\n\n  Issue 8:  Documentation is not lickable.\n  Issue 9:  Advantage over PIL is not clear.\n  Issue 19: Bogus message for PNM inputs with unsupported maxval\n  Issue 20: Cannot write large PNG files\n\n\n### Release 0.0.1\n\nStuff happened.\n\n\n## MANIFEST\n\n- .../ - top-level crud (like this README, and setup.py).\n- .../asset - assets (needed for testing)\n- .../code/ - the Python code.\n- .../man/ - manuals (in source/plain-text).\n- .../proc/ - documented procedures (release procedure).\n\n\n## REFERENCES\n\n- Python: www.python.org\n- PNG: http://www.w3.org/TR/PNG/\n\n## END\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Pure Python library for saving and loading PNG images",
    "version": "0.20220715.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "13cd4530ec1eaf02c361b334ee33e1e7",
                "sha256": "4a43e969b8f5aaafb2a415536c1a8ec7e341cd6a3f957fd5b5f32a4cfeed902c"
            },
            "downloads": -1,
            "filename": "pypng-0.20220715.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "13cd4530ec1eaf02c361b334ee33e1e7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 58057,
            "upload_time": "2022-07-15T14:11:03",
            "upload_time_iso_8601": "2022-07-15T14:11:03.713872Z",
            "url": "https://files.pythonhosted.org/packages/3e/b9/3766cc361d93edb2ce81e2e1f87dd98f314d7d513877a342d31b30741680/pypng-0.20220715.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "7d9cce86ceb19524784ade86fb13a063",
                "sha256": "739c433ba96f078315de54c0db975aee537cbc3e1d0ae4ed9aab0ca1e427e2c1"
            },
            "downloads": -1,
            "filename": "pypng-0.20220715.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7d9cce86ceb19524784ade86fb13a063",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 128992,
            "upload_time": "2022-07-15T14:11:05",
            "upload_time_iso_8601": "2022-07-15T14:11:05.301096Z",
            "url": "https://files.pythonhosted.org/packages/93/cd/112f092ec27cca83e0516de0a3368dbd9128c187fb6b52aaaa7cde39c96d/pypng-0.20220715.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-07-15 14:11:05",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "gitlab_user": "drj11",
    "gitlab_project": "pypng",
    "lcname": "pypng"
}
        
Elapsed time: 0.01191s