Skip to content

Commit

Permalink
also handle tavern webps
Browse files Browse the repository at this point in the history
  • Loading branch information
Concedo authored and Concedo committed Nov 30, 2023
1 parent 4ab9134 commit 37d9054
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2530,6 +2530,11 @@
var data = event.target.result;
var arr = new Uint8Array(data);
var result = convertTavernPng(arr);
if(!result)
{
//attempt to read as WEBP
result = getTavernExifJSON(arr);
}
if(onDone)
{
onDone(result);
Expand Down

0 comments on commit 37d9054

Please sign in to comment.