🎨 Reduced favicon requirements (#2408)

refs TryGhost/Team#1652

- Support picking new image types in the favicon image uploader.
- Added support for non-square and not resizable files (e.g., svg files) as favicon (cover background image).
This commit is contained in:
Simon Backx 2022-05-27 16:20:40 +02:00 committed by GitHub
parent cab7f2cd74
commit 191c7e312b
2 changed files with 4 additions and 4 deletions

View File

@ -14,11 +14,11 @@ import {run} from '@ember/runloop';
import {inject as service} from '@ember/service';
export const IMAGE_MIME_TYPES = 'image/gif,image/jpg,image/jpeg,image/png,image/svg+xml,image/webp';
export const IMAGE_EXTENSIONS = ['gif', 'jpg', 'jpeg', 'png', 'svg', 'webp'];
export const IMAGE_EXTENSIONS = ['gif', 'jpg', 'jpeg', 'png', 'svg', 'svgz', 'webp'];
export const IMAGE_PARAMS = {purpose: 'image'};
export const ICON_EXTENSIONS = ['ico', 'png'];
export const ICON_MIME_TYPES = 'image/png,image/x-icon';
export const ICON_EXTENSIONS = ['gif', 'ico', 'jpg', 'jpeg', 'png', 'svg', 'svgz', 'webp'];
export const ICON_MIME_TYPES = 'image/x-icon,image/vnd.microsoft.icon,image/gif,image/jpg,image/jpeg,image/png,image/svg+xml,image/webp';
export const ICON_PARAMS = {purpose: 'icon'};
export default Component.extend({

View File

@ -174,7 +174,7 @@
width: 32px;
height: 32px;
background-color: transparent;
background-size: 32px;
background-size: cover;
border-radius: 6px;
}