https://gdal.org
With about 250 lines of code (not counting libdeflate for ZLIB compression...), one can generate PNG files significantly faster than with libpng, and smaller!
By using an optimized code path, one can speed by 36% in some cases tile generation, when using libdeflate. If using zlib only, the gain is more modest, but still there. e.g using https://nz-image...
Quite excited by the new artihmetic #GDAL band on-the-fly capabilities of https://github.com/OSGeo/gdal/pull/12507
```python
with gdal.Open("rgb.tif") as ds:
R = ds.GetRasterBand(1)
G = ds.GetRasterBand(2)
B = ds.GetRasterBand(3)
gray = (0.299 * R + 0.587 * G + 0.114 * B).as_type(gdal.GDT_Byte)
gdal.GetDriverByName("GTiff").CreateCopy("gray.tif", gray)
```
Uses VRTDerivedRasterBand and pixel functions underneath. Demo program converting a RGB image to grey level: Python: from osgeo import gdal gdal.UseExceptions() with gdal.Open("rgbsmall....
The new GDAL 3.11 CLI has context-aware bash completion and spelling suggestions – options, formats, sub-commands, and more! No more fumbling for inconsistent names or orderings.
Join us at the GDAL CLI Deep Dive webinar on June 3rd at 1400 UTC to learn more. https://numfocus-org.zoom.us/webinar/register/WN_oW6mA6DNSKe8FUTm1-tkRQ#/registration