mirror of
https://github.com/kuaifan/dootask.git
synced 2026-04-23 02:08:51 +00:00
fix(ai): AI助手图片压缩阈值从1024提升到1568,减少长图模糊
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
82d2ca6360
commit
fbd1c829a1
@ -1927,9 +1927,8 @@ export default {
|
|||||||
* @returns {Promise<string>} - Base64 data URL (image/jpeg)
|
* @returns {Promise<string>} - Base64 data URL (image/jpeg)
|
||||||
*/
|
*/
|
||||||
async compressImageForAI(file) {
|
async compressImageForAI(file) {
|
||||||
// File 转 dataUrl 后压缩到 1024px,强制质量压缩
|
|
||||||
const dataUrl = await this.fileToDataUrl(file);
|
const dataUrl = await this.fileToDataUrl(file);
|
||||||
return this.resizeDataUrl(dataUrl, 1024, true);
|
return this.resizeDataUrl(dataUrl, 1568, true);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user