Commit 7311512
authored
feat: add WebP export support for generated badges (JhaSourav07#1112)
## Description
Added WebP export support for generated dashboard badges.
Fixes JhaSourav07#1002
## Pillar
* [x] Other (Bug fix, refactoring, docs)
## Checklist
- [x] Code follows the project style guidelines
- [x] Tested the feature locally
- [x] No breaking changes introduced
- [x] Linked the PR to the assigned issue
## Changes Made
* Added handleDownloadWEBP export handler
* Integrated WebP option into the ShareSheet export menu
* Added .webp image generation using `toCanvas()` and
`canvas.toDataURL('image/webp')`
## Result
Users can now export optimized WebP images with improved compression and
better compatibility for modern platforms while preserving dashboard
visuals.1 parent d6e94fc commit 7311512
2 files changed
Lines changed: 44 additions & 1 deletion
File tree
- components/dashboard
- hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
183 | 193 | | |
184 | 194 | | |
185 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
107 | 139 | | |
108 | 140 | | |
109 | 141 | | |
| |||
192 | 224 | | |
193 | 225 | | |
194 | 226 | | |
| 227 | + | |
195 | 228 | | |
196 | 229 | | |
197 | 230 | | |
| |||
0 commit comments