# AMB82 MINI JPEG Rotate

**URL:** <https://forum.amebaiot.com/t/amb82-mini-jpeg-rotate/2131>\
**Category:** Multimedia\
**Tags:** evb-amb82, rtl8735b\
**Created:** [August 8, 2023, 3:29am UTC](https://forum.amebaiot.com/t/amb82-mini-jpeg-rotate/2131 "2023-08-08T03:29:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Po\_Quan\_Hsieh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/po_quan_hsieh/32/1065_2.png) [@Po\_Quan\_Hsieh](https://forum.amebaiot.com/u/Po_Quan_Hsieh)\
**Post date:** [August 8, 2023, 3:29am UTC](https://forum.amebaiot.com/t/amb82-mini-jpeg-rotate/2131/1 "2023-08-08T03:29:31Z")

</div>

I’m using AMB82 MINI with Arduino 4.0.4 SDK, and I wondering know how to rotate image in HTTPDisplayJPEGContinuous exaple? Thanks.

---

<div class="post-metadata">

**Author:** ![Pammy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pammy/32/936_2.png) [@Pammy](https://forum.amebaiot.com/u/Pammy)\
**Post date:** [August 8, 2023, 9:46am UTC](https://forum.amebaiot.com/t/amb82-mini-jpeg-rotate/2131/2 "2023-08-08T09:46:38Z")

</div>

Hi @Po_Quan_Hsieh,

We have just added this function, however it is on the dev branch ([GitHub - ambiot/ambpro2\_arduino](https://github.com/ambiot/ambpro2_arduino)). If you would like to use the rotation function, you can download the following files and replace them in your Arduino15 folder.

1. video\_drv.c (cores folder)
2. video\_drv.h (cores folder)
3. VideoStream.cpp (src folder)
4. VideoStream.h (src folder)

For example, you can add the line highlighted.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/2X/b/b6841c31bd88063a70de6ed7bc8ade19730a4b0d.png)

0 (default): 0 degree  
1: 90 degree (Rotate Right)  
2: 90 degree (Rotate Left)  
3: 180 degree

This function will be officially released in our next release, v4.0.5.

Thank you!

---

<div class="post-metadata">

**Author:** ![Po\_Quan\_Hsieh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/po_quan_hsieh/32/1065_2.png) [@Po\_Quan\_Hsieh](https://forum.amebaiot.com/u/Po_Quan_Hsieh)\
**Post date:** [August 8, 2023, 11:25am UTC](https://forum.amebaiot.com/t/amb82-mini-jpeg-rotate/2131/3 "2023-08-08T11:25:02Z")

</div>

Hi @Pammy,  
Thanks for your reply, it works perfectly!
