Skip to content

Commit 94c1e41

Browse files
committed
v0.13.1
1 parent 1779668 commit 94c1e41

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/NativeCodecs/Libheif/readme.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,13 @@ Usage
1919

2020
### Codec Registration
2121

22-
To register the codec, call the `UseLibheif` extension method from your `CodecManager.Configure` action at app startup. This example removes the default Windows HEIF codec before installing the plugin.
22+
To register the codec, call the `UseLibheif` extension method from your `CodecManager.Configure` action at app startup. By default, the plugin will remove/replace the Windows HEIF codec if it is present.
2323

2424
```C#
2525
using PhotoSauce.MagicScaler;
2626
using PhotoSauce.NativeCodecs.Libheif;
2727

2828
CodecManager.Configure(codecs => {
29-
var wicheif = codecs.OfType<IImageDecoderInfo>().FirstOrDefault(c => c.MimeTypes.Any(m => m == ImageMimeTypes.Heic));
30-
if (wicheif != null)
31-
codecs.Remove(wicheif);
32-
3329
codecs.UseLibheif();
3430
});
3531
```

src/NativeCodecs/Libwebp/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Usage
1313

1414
### Codec Registration
1515

16-
To register the codec, call the `UseLibwebp` extension method from your `CodecManager.Configure` action at app startup.
16+
To register the codec, call the `UseLibwebp` extension method from your `CodecManager.Configure` action at app startup. By default, the plugin will remove/replace the Windows WebP codec if it is present.
1717

1818
```C#
1919
using PhotoSauce.MagicScaler;

0 commit comments

Comments
 (0)