# \[ANNOUNCE\] node-red-contrib-libjpeg-turbo v1.0.1 released

**URL:** <https://discourse.nodered.org/t/announce-node-red-contrib-libjpeg-turbo-v1-0-1-released/75966>\
**Category:** Share Your Nodes\
**Created:** [1 March 2023 20:35 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-libjpeg-turbo-v1-0-1-released/75966 "2023-03-01T20:35:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [1 March 2023 20:35 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-libjpeg-turbo-v1-0-1-released/75966/1 "2023-03-01T20:35:40Z")

</div>

Hi folks,

While experimenting with my outdoor camera's, I needed a node to encode and decode the jpeg images arriving from my MJPEG camera streams.

Therefore I have now implemented the [node-red-contrib-libjpeg-turbo](https://github.com/bartbutenaers/node-red-contrib-libjpeg-turbo) node 🍾 🎉 🥳  
Version _ **1.0.1** _ is now available in the palette.

In the following demo you can see - althought it is pretty dark at the moment in Europe - the node being used for both decoding and afterwards encoding of an mjpeg stream of 15 images per second (arriving via my multipart-stream-decoder node) on my poor Raspberry Pi 4:

![decode-encode-demo](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/8/e84a2c93a6242c418e178e8e05aa5ed058627e6f.gif)

Of course this is a pure theoretical demo, but it shows a bit of how it can be used...

Note that there will be quite a lot of _ **CPU** _ consumption involved, even though this node is based on the highly optimized [libjpeg-turbo/](https://libjpeg-turbo.org/) C library...

Have fun with it!!  
Bart

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [2 March 2023 06:27 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-libjpeg-turbo-v1-0-1-released/75966/2 "2023-03-02T06:27:38Z")

</div>

Hey Bart, could you elaborate why this node was needed??

_decode a jpeg image (which is fetched from the internet) to raw image pixels_

You do some surgery on the pixel level ??  
Best regards, Walter

PS If you eventually need to mask some parts of an image, you can use OpenCV

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [2 March 2023 08:33 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-libjpeg-turbo-v1-0-1-released/75966/3 "2023-03-02T08:33:50Z")

</div>

Hi Walter,

> [@krambriw](#):
>
> elaborate why this node was needed??

For example when I want to do object detection on my images with my Coral TPU stick, that stick requires raw images in format 300x300 for the model I am using. So I need to have a way to decompress my jpeg images to raw images. And since my Raspberry 4 has quite limited resources, I need to have something that is fast and does not use all of my CPU. This library is until now the best I found. Although CPU usage is still quite high, but the best (= less worst) I found ...
