Changelog¶
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased¶
0.4.0 - 2026-11-24¶
Added¶
- Documentation website at https://raczeq.github.io/pixel-map/
Changed¶
- Basemaps are drawn by
basemaplibrefrom MapLibre styles, without labels, instead of raster tiles loaded bycontextily.--basemaptakes a name of abasemaplibrestyle, or a URL or a path of a style JSON. Raster tiles (like names ofxyzservices) still work ifcontextilyis installed - Replaced the default ESRI basemap providers with OpenFreeMap Dark and Positron
- Dropped Python 3.10 support (EOL since October 2026). Minimum is now Python 3.11
- Minimum versions of
geopandas(0.14) andtyper(0.16): older ones do not work with current versions ofshapelyandclick
Fixed¶
- Starting with Typer 0.29, which dropped
click_type - Names of the values of
--bbox,--colorand--alphain the help with Typer 0.27 - A basemap that cannot be drawn is reported without a traceback
- Order of the dots of Braille patterns in the
braille,braille-bwandallrenderers
0.3.0 - 2026-09-05¶
Changed¶
- Replaced the
img2unicodedependency with a native dual-colour terminal renderer (pixel_map/terminal_renderers.py). The new engine rasterises glyph templates (geometric for half/quad/braille/block, brightness-ordered Bayer patterns for ASCII) and selects the best character per cell via a fully vectorised Lab-distance optimisation, yielding a 4x-60x speed-up overimg2unicodewhile keeping the exactrender_numpy(image) -> (characters, fg_colors, bg_colors)contract. All nine renderer names are preserved:block,all,ascii,space,half,quad,braille,braille-bw,ascii-bw. - Dropped Python 3.9 support (EOL since October 2025; no numpy wheel exists for both 3.9 and 3.13). Minimum is now Python 3.10.
- The native renderer now has a fast path that skips the Pillow resize when the
matplotlib canvas dimensions already match the subpixel grid (achievable with
--dpi 8), and a row-averaged binreduce for the common 2:1 cell-aspect case. - ASCII renderer now uses brightness-ordered templates with Bayer dithering instead of Pillow-font rasterization. Characters are assigned templates based on predefined brightness values, with denser templates for darker characters.
- Replaced CARTO DarkMatter and Positron basemap providers with ESRI World_Dark_Gray_Base and World_Light_Gray_Base respectively
Fixed¶
- Fixed a
ValueError: cannot reshape arrayon high-DPI (Retina) displays where the matplotlib canvas buffer is physically larger thanget_width_height()reports. The reshape now usesget_width_height(physical=True)and derives correct dimensions from the buffer pixel count. - Replaced the removed
canvas.tostring_rgb()withcanvas.buffer_rgba()for matplotlib 3.10+ compatibility.
Removed¶
img2unicode(and its transitive heavy dependenciesscikit-image,scikit-learnand the Linux-onlyn2ANN library) are no longer required.pillowis now a direct dependency.
0.2.4 - 2024-11-14¶
Fixed¶
- Added automatic bounds checking when providing custom bounding box
0.2.3 - 2024-11-01¶
Changed¶
- Bumped minimal geopandas version
0.2.2 - 2024-10-23¶
0.2.1 - 2024-10-23¶
Added¶
- Option to pass console width and height
- Option to pass plotting DPI
Fixed¶
- Automatic bounds clipping to the EPSG:3857 limits
- Capped minimal contextily zoom at 0
0.2.0 - 2024-10-21¶
Added¶
- Option to change colors
- Option to change opacity
- Option to change basemap
- Default light and dark style
- Single letter flags to the CLI
Changed¶
- Subtitle rendering
Fixed¶
- Canvas not filling the space fully
0.1.2 - 2024-10-21¶
Added¶
- Multiple renderers
- Option to disable border around the map
- Title scaling based on terminal width
- Example geo files
Changed¶
- Cleaned dependencies list
0.1.1 - 2024-10-18¶
Added¶
- Plotting basic functionality with CLI