Open arpel opened 5 months ago
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.
Still relevant
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.
The changes introduce a new dependency, webp-wasm
, to handle WebP image formats in the project. A new asynchronous function, localloadImage
, is added to improve image loading by integrating webp-wasm
for decoding images. Additionally, the isValidURL
function is updated to accept 'image/webp' as a valid MIME type, enhancing URL validation capabilities. These modifications collectively enhance image processing functionality within the application.
File | Change Summary |
---|---|
api/package.json |
Added webp-wasm dependency, version ^1.0.4 , to handle WebP image formats. |
api/src/controllers/storage.controller.js |
Introduced localloadImage function for improved image loading, integrating webp-wasm for WebP images. |
api/src/util/process.util.js |
Expanded validOptions in isValidURL function to include 'image/webp' for URL validation. |
🐰 In a world where images dance and play,
New formats join us, hip-hip-hooray!
With WebP's charm, our files will gleam,
Loading faster, like a rabbit's dream.
So hop along, let's celebrate,
For every change, we elevate! 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.
Not exactly sure you would want it handled like that : trial and fail method with webp fallback. My understanding is that frigate would completely move to webp at some point.
I'm using compreface so work out of the bow with webp, not sure if this is the case with other backends : tested only with compreface.
Summary by CodeRabbit
New Features
Bug Fixes