fix(immersive): increase blur canvas to 512px for smoother background

This commit is contained in:
vicrodh committed 2026-01-30 16:45:50 -06:00
1 parent 223a7f5e1d
commit 442ccae6a5
1 file changed
+4 -4
+4 -4
View File
@@ -19,14 +19,14 @@ const MAX_CACHE_SIZE = 20;
* Returns a data URL that can be used as background-image.
*
* @param artworkUrl - The original artwork URL
* @param size - Output canvas size (default 256, higher = smoother result)
* @param blurRadius - Canvas blur radius (default 20, effective ~80px at fullscreen)
* @param size - Output canvas size (default 512, higher = smoother result)
* @param blurRadius - Canvas blur radius (default 40, produces smooth gradient effect)
* @returns Promise<string> - Data URL of blurred image
*/
export async function generateBlurredBackground(
artworkUrl: string,
size: number = 256,
blurRadius: number = 20
size: number = 512,
blurRadius: number = 40
): Promise<string> {
// Check cache first
const cacheKey = `${artworkUrl}-${size}-${blurRadius}`;