Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow webp in image selector #4087

Merged
merged 3 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### Changed

### Fixed
- Allowed webp in image selector, added webp consistantly #4087

<a id="1_46_5"></a>

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/ImageSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function ImageSelector({
filters: [
{
name: tx('images'),
extensions: ['jpg', 'png', 'gif', 'jpeg'],
extensions: ['jpg', 'png', 'gif', 'jpeg', 'webp'],
},
],
properties: ['openFile'],
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/dialogs/CreateChat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ export function useGroupImage(image: string | null) {
)
const file = await runtime.showOpenFileDialog({
title: tx('select_group_image_desktop'),
filters: [{ name: 'Images', extensions: ['jpg', 'png', 'gif'] }],
filters: [{ name: 'Images', extensions: ['jpg', 'png', 'gif', 'webp'] }],
properties: ['openFile'],
defaultPath,
})
Expand Down
2 changes: 1 addition & 1 deletion src/shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const enum AutodeleteDuration {
ONE_YEAR = Timespans.ONE_YEAR_IN_SECONDS,
}

export const IMAGE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'apng', 'gif']
export const IMAGE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'apng', 'gif', 'webp']

// Videochat Server URLs
export const VIDEO_CHAT_INSTANCE_SYSTEMLI = 'https://meet.systemli.org/$ROOM'
Expand Down
Loading