Image-viewer colours not right

Hello.

I am trying out Image-Viewer. But the image I am trying to display doesn’t display the image in the correct colours.

I am new to Raspberry Pi’s-ish. I tinker around with a Pi 3B, and a Pi 4B, then leave it for months, then tinker with them again for a bit. I get by via google searches and YT tutorials. But can’t find a fix for this issue.

I am using a Raspberry Pi 4B, with Waveshare RGB 64x32 panels.

I have three of these in a chain. And three of these chains in parallel. Making a 192x96 pixel display.

I put DietPi on the SD Card as the OS. Cloned Rpi-RGB-LED-Matrix from Github via SSH from my Windows 10 PC. All worked well.

I have successfully tested the examples in ‘/rpi-rgb-led-matrix/examples-api-use’, like demo, c-example, minimal-example, text-example, and clock.

Now am trying out Image-Viewer, as I’d like to show stuff on this display.

Here’s the image I have copied into the ‘utils’ directory:

(Due to being a new user, and only one media allowed, I’ll post the original in a comment)

And here’s what it looks like on the display:

The command I am using is this:

sudo ./led-image-viewer FlouroShrooms_192x96.jpg --led-cols=64 --led-rows=32 --led-chain=3 --led-parallel=3 --led-slowdown-gpio=2 -led-gpio-mapping=regular

So as you can see, the sides around the image are a beige-brown colour and not purple. And the actual image is aqua, and not blue.

I did try adding –led-inverse into the command, but the image was all white, and didn’t resolve the issue.

I made the file (FlouroShrooms_192x96_Purple.jpg) in GIMP. A program I rarely use. So I might have a colour scheme wrong or something, I don’t know?

Anyway, can anyone point me in the right direction please? Again, am a novice, so explain like I’m 5 haha! (By the way, this whole thing is excellent, am having a LOT of fun here… so to makers of this, thank you!!)

FlouroShrooms_192x96_Purple

This is the image in /home/dietpi/rpi-rgb-led-matrix/utils/ called FlouroShrooms_192x96_Purple.jpg

The first thing that comes to mind is that your picture or panel has the color order mixed up. Try to change the --led-rgb-sequence option from the default RGB to something like “BGR” or “GRB”…

Hey, thank you for replying!

I tried adding in what you suggested, and playing around with the rgb sequence.

What worked was this: –led-rgb-sequence=rbg

What’s weird is that before trying Led-Image-Viewer, when I tried out the examples in the ‘examples-api-use’ directory, like demo, c-example, minimal-example, text-example, and clock. All the colours expected were correct, without using –led-rgb-sequence Must be something in the Led-Image-Viewer code, or something??? Idk.

Anyway, really happy! Thanks very much for your time and help!! :+1:

May be the problem is in the FlouroShrooms_192x96_Purple.jpg picture?

Very-well could be my image. Very-well could be.

I made it on Gimp, which I don’t play around with nearly enough to be an expert on. So some colour scheme, or some setting or other, that might have caused the weird colour stuff. I don’t know.