# image compression API?

Source: https://forum.modalai.com/topic/1455/image-compression-api
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2022-10-17 14:41:59 UTC by Dong Liu
Replies: 7 · Views: 1227

## Dong Liu · 2022-10-17 14:41:59 UTC

Hi,

Does voxl support hardware/GPU image compression? If yes, what is the API?

Thanks!

Dong

## Reply by Eric Katzfey (ModalAI staff) · 2022-10-17 15:12:53 UTC

@Dong-Liu What type of image are you trying to compress? And what is the desired output format?

## Reply by Dong Liu · 2022-10-17 15:25:32 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Like the output of hires camera. JPEG will be very useful to reduce the bandwidth.

Thanks!

## Reply by Dong Liu · 2022-10-17 15:53:26 UTC

Does voxl-camera-server already support producing compressed image?

Thanks,

Dong

## Reply by Chad Sweet (ModalAI staff) · 2022-10-17 15:56:11 UTC

We have this project here: 
https://gitlab.com/voxl-public/voxl-sdk/third-party/voxl-jpeg-turbo

that voxl-portal uses here: https://gitlab.com/voxl-public/voxl-sdk/services/voxl-portal/-/blob/master/src/video_group_manager.cpp#L390

## Reply by Eric Katzfey (ModalAI staff) · 2022-10-17 16:05:07 UTC (in reply to Dong Liu)

@Dong-Liu We currently use software JPEG encoding via turbo jpeg. But there is HW support for JPEG in VOXL / VOXL 2. We have not yet looked into enabling that support though.

## Reply by Dong Liu · 2022-10-17 22:28:16 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Thanks!

Dong

## Reply by Dong Liu · 2022-10-24 20:02:47 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Hi Eric. The jpeg compression imposes a lot of load on the CPU, especially we're using the hires camera. Is there any way you can  make the HW jpeg encoding available for us to test it?

Thanks!
