mirror of
https://github.com/immich-app/immich.git
synced 2026-09-30 13:23:21 +08:00
fix: thumbnail generation for specific SVGs (#30908)
This commit is contained in:
@@ -21,6 +21,7 @@ export enum OAuthUser {
|
||||
WITH_QUOTA = 'with-quota',
|
||||
WITH_USERNAME = 'with-username',
|
||||
WITH_ROLE = 'with-role',
|
||||
WITH_EMBEDDED_PROFILE_PICTURE = 'with-embedded-profile-picture',
|
||||
}
|
||||
|
||||
const claims = [
|
||||
@@ -49,6 +50,13 @@ const claims = [
|
||||
email_verified: true,
|
||||
immich_role: 'admin',
|
||||
},
|
||||
{
|
||||
sub: OAuthUser.WITH_EMBEDDED_PROFILE_PICTURE,
|
||||
email: 'oauth-with-embedded-profile-picture@immich.app',
|
||||
email_verified: true,
|
||||
picture:
|
||||
'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NHB4IiBoZWlnaHQ9IjY0cHgiIHZpZXdCb3g9IjAgMCA2NCA2NCIgdmVyc2lvbj0iMS4xIj48cmVjdCBmaWxsPSIjMzc3YjM3IiBjeD0iMzIiIGN5PSIzMiIgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0IiByPSIzMiIvPjx0ZXh0IHg9IjUwJSIgeT0iNTAlIiBzdHlsZT0iY29sb3I6ICNmZmY7IGxpbmUtaGVpZ2h0OiAxOyBmb250LWZhbWlseTogJ1JlZEhhdFRleHQnLCdPdmVycGFzcycsb3ZlcnBhc3MsaGVsdmV0aWNhLGFyaWFsLHNhbnMtc2VyaWY7ICIgZmlsbD0iI2ZmZiIgYWxpZ25tZW50LWJhc2VsaW5lPSJtaWRkbGUiIGRvbWluYW50LWJhc2VsaW5lPSJtaWRkbGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtc2l6ZT0iMjgiIGZvbnQtd2VpZ2h0PSI0MDAiIGR5PSIuMWVtIj5BQTwvdGV4dD48L3N2Zz4=',
|
||||
},
|
||||
];
|
||||
|
||||
const privateKey = await importPKCS8(PRIVATE_KEY_PEM, 'RS256', {
|
||||
@@ -124,6 +132,7 @@ const setup = async () => {
|
||||
'immich_quota',
|
||||
'immich_username',
|
||||
'immich_role',
|
||||
'picture',
|
||||
],
|
||||
},
|
||||
features: {
|
||||
|
||||
Reference in New Issue
Block a user