TomSchimansky / TomSchimansky/TkinterMapView

Use Tkinter PhotoImage instead of Pillow for PNG

Open
#148 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
743
Forks
110
PR merge metrics
No merged PRs in 30d

Description

If Pillow is used only for zoom and crop, then hacked PhotoImage can be used instead to reduce the list of dependencies for non-satellite maps.
It can be done like this: https://discuss.python.org/t/add-additional-options-for-the-tkinters-photoimage-copy-method/51598
I know that jpeg is also needed, but it looks very interesting, so I decided to write.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating where Pillow is used for PNG loading, zoom, and crop, then read the linked Python discussion about Tkinter PhotoImage.copy options. Done means PNG handling no longer requires Pillow while JPEG support remains available.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.