Skip to content

Commit

Permalink
webp support for scan
Browse files Browse the repository at this point in the history
  • Loading branch information
ozntel committed Aug 20, 2024
1 parent 90f24d3 commit 8477a77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ In case all images are used, you will see communication as below:

<img src="https://github.com/ozntel/oz-clear-unused-images-obsidian/raw/master/images/nothing-deleted.png">

**Scanned Image Formats** : jpg, jpeg, png, gif, svg, bmp
**Scanned Image Formats** : jpg, jpeg, png, gif, svg, bmp, webp

## Planned Features

Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getAllLinkMatchesInFile, LinkMatch } from './linkDetector';

const imageRegex = /.*(jpe?g|png|gif|svg|bmp)/i;
const bannerRegex = /!\[\[(.*?)\]\]/i;
const imageExtensions: Set<string> = new Set(['jpeg', 'jpg', 'png', 'gif', 'svg', 'bmp']);
const imageExtensions: Set<string> = new Set(['jpeg', 'jpg', 'png', 'gif', 'svg', 'bmp', 'webp']);

// Create the List of Unused Images
export const getUnusedAttachments = async (app: App, type: 'image' | 'all') => {
Expand Down

0 comments on commit 8477a77

Please sign in to comment.