this post was submitted on 23 Oct 2024
54 points (92.2% liked)

dailygames

1071 readers
66 users here now

Community for daily games like Wordle, Jumblie, Connections etc.

Post your daily games and scores. Discover new games and discuss with others.

Find games

Share your results

It’s useful to wrap your results in a markdown codeblock to preserve the layout. Put three backticks ``` before and after your result to create a codeblock.

πŸŸ¨πŸŸ¨β¬›β¬›β¬›
πŸŸ¨πŸŸ©β¬›β¬›β¬›
πŸŸ©πŸŸ©πŸŸ¨πŸŸ¨β¬›
🟩🟩🟩🟩🟩

Spoilers

Please put possible spoilers in spoiler tags

visible spoiler titlehidden content

Rules

founded 7 months ago
MODERATORS
 

Her name is very memorable. Unless I'm careful, I will mix up the acronyms.

Assuming I did this correctly, here is the image source and the code I used:

from PIL import Image

img = Image.open('image.bmp')
img = img.convert('RGB')
new_img = Image.new('RGB', img.size)

for x in range(img.width):
    for y in range(img.height):
        r, g, b = img.getpixel((x, y))
        new_img.putpixel((x, y), (r, b, g))

new_img.save('flipped_image.png')
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 2 months ago* (last edited 2 months ago) (1 children)
[–] CodexArcanum 4 points 2 months ago

Haha, I actually had to do a similar conversion in a game I was working on to convert BGR to RGB. When's Hexcodle adding CMYK and HSV modes?