Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIL Python
#1
There are two files. one file has a color depth of 24 second 32 bits.
The PIL library gives an error.
How to convert 32 bits to 24?
What are the methods for assigning values? Or can you set the depth yourself?
For example, modify the file and save as 24?
Reply
#2
(Jul-12-2020, 11:37 AM)ABVSVL Wrote: The PIL library gives an error.
What does it mean? PIL gives an error when you try to read a file or when you call .convert method?
Reply
#3
Post your code (minimal reproducible example) in python tags as well as the full traceback you get - in error tags
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020