<p>Copying the bytes of a JPEG file to the framebuffer device doesn't display the image represented by the JPEG file. The file needs to be decoded by an application that understands the JPEG format, to get the actual image. Your system is working normally. You can use a command like <code>display</code> to decode the file and draw the image to the screen.</p>

CC BY-SA 4.0
2019-09-13T08:10:49.240Z
In the embedded OS I am building, the command 'display' is not recognized.
abunickabhi
CC BY-SA 4.0
2019-09-13T09:01:57.893Z
Well, you need to use some program that is available in your embedded Linux distribution, or add one. I can't help you with that part.
Dan Hulme
CC BY-SA 4.0
2019-09-13T08:06:22.600Z
2019-09-13T08:06:22.600Z
Dan Hulme
<p>The command,</p>

<pre><code>fb-test -f 0
</code></pre>

<p>generates and displays a test pattern on the screen.</p>

<p>But, the command,</p>

<pre><code>cp /home/root/test.jpg /dev/fb0
</code></pre>

<p>copies test image into dev/fb0 file but fails to display anything on the screen?</p>

<p>How to resolve this issue?</p>

<frame-buffer>
Framebuffer not detecting image
abunickabhi
# Framebuffer not detecting image

(Asked by: username_0 on 2019-09-13)

The command,

```
fb-test -f 0

```

generates and displays a test pattern on the screen.

But, the command,

```
cp /home/root/test.jpg /dev/fb0

```

copies test image into dev/fb0 file but fails to display anything on the screen?

How to resolve this issue?

**Tags:** frame-buffer


---

## 1 answers

### Answer by username_1 on 2019-09-13. Score: 1

Copying the bytes of a JPEG file to the framebuffer device doesn't display the image represented by the JPEG file. The file needs to be decoded by an application that understands the JPEG format, to get the actual image. Your system is working normally. You can use a command like `display` to decode the file and draw the image to the screen.

> **Comments:**
> **username_0**: In the embedded OS I am building, the command 'display' is not recognized.  
> **username_1**: Well, you need to use some program that is available in your embedded Linux distribution, or add one. I can't help you with that part.  

---

