-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix indices of colors read from GIMP Palette file #6640
Closed
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
61b1eeb
Fix indices of colors read from GIMP Palette file
jsbueno d0837bd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 681f77a
Linter fixes, remove hanging unused lambda
jsbueno 4642e02
Only use colors from the palette file
radarhere 1ed6039
Merge pull request #1 from radarhere/gimppalette
jsbueno a12389b
Provide way to load big palettes;
jsbueno 2f6467c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b471158
:lipstick:
jsbueno 0d00d08
Remove n_colors property
jsbueno 2eb6976
Update src/PIL/GimpPaletteFile.py
jsbueno c345080
Update Tests/test_file_gimppalette.py
jsbueno 378471e
Mark 'break' after 'warning' as not "no cover": testing promotes the …
jsbueno 8979f0c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e007a0b
Improved test
radarhere 6893d1d
Merge pull request #3 from radarhere/gimppalette_test
jsbueno cefeab8
Use array for better performance
radarhere ea271be
Merge branch 'main' into fix/gimppalette
radarhere 9239820
Merge branch 'main' into fix/gimppalette
radarhere c7e70d5
Added type hint
radarhere dee9336
Use monkeypatch
radarhere File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're reading RGB data from each line. That's three integers. Under what circumstances would a user need to read more than 100 characters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 4th Column contains the color name, though that is currently unused. And there might be a name with more than 100 characters - moving the number to an attribute just offers a chance of one working around an error imposed by an arbitrary, though reasonable, limit on an otherwise good file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(currently unused in PIL, that is: GIMP uses that name)