Skip to content

Commit 3c5e8df

Browse files
Release V1.5.5
1 parent ddc9aec commit 3c5e8df

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Check the port number on Fooocus UI webpage
3838
### 2/ Deep integration in Fooocus UI
3939

4040
A new deep integration is available. Quite easy to config, with only one file to modify.
41-
You open `/modules/ui_gradio_extensions.py` file. At line 41, add :
41+
You open `/modules/ui_gradio_extensions.py` file. At line 43, add :
4242

4343
```python
4444
head += f'<script type="text/javascript" src="file=outputs/viewer.js"></script>\n'
@@ -75,6 +75,9 @@ The idea and initial work is inspired by @sngazm at https://github.com/lllyasvie
7575

7676

7777
## Update log
78+
1.5.5 Fix issue on row parsing log.html with .jpeg generated images
79+
- Close issue https://github.com/toutjavascript/Fooocus-Log-Viewer/discussions/19#discussioncomment-9139711
80+
7881
1.5.4 Fix issue on row parsing in viewer.html
7982
- https://github.com/toutjavascript/Fooocus-Log-Viewer/pull/18
8083

viewer.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<div id="app"></div>
4242
<script type="text/babel">
4343

44-
var LOGVIEWER_RELEASE="1.5.4"
44+
var LOGVIEWER_RELEASE="1.5.5"
4545

4646
$("span#logviewer-release").html("Release "+LOGVIEWER_RELEASE)
4747

@@ -107,7 +107,7 @@
107107
if ((nb>nbTodayImages)&&(nbTodayImages>0)) {
108108
let n=nbTodayImages-nb;
109109
matches.sort();
110-
let src=matches[matches.length-1].replace('<div id="',"").replace("_png",".png").replace("_jpg",".jpg").replace("_webp",".webp").replace('"',"");
110+
let src=matches[matches.length-1].replace('<div id="',"").replace("_png",".png").replace("_jpg",".jpg").replace("_jpeg",".jpeg").replace("_webp",".webp").replace('"',"");
111111
new jBox('Notice', {
112112
content: "Yeah! "+n+" new Image"+(n>1?'s':'')+" generated now on today folder<br><img src='./"+today+"/"+src+"' class='imageNotice'>",
113113
theme: "TooltipNewImage"
@@ -1243,7 +1243,7 @@
12431243
const data = [];
12441244
const parser = new DOMParser();
12451245
const doc = parser.parseFromString(html, "text/html");
1246-
const images = doc.querySelectorAll("div[id$='_png'],div[id$='_jpg'],div[id$='_webp']");
1246+
const images = doc.querySelectorAll("div[id$='_png'],div[id$='_jpg'],div[id$='_jpeg'],div[id$='_webp']");
12471247
for (let i = 0; i < images.length; i++) {
12481248
const paragraphs = images[i].querySelectorAll("p");
12491249
const divs = images[i].querySelectorAll("div");
@@ -1255,7 +1255,7 @@
12551255
/* From v2.1.852 (2023-12-18), log changed to <table> tag */
12561256
src = divs[0].innerText;
12571257
settings.crudLoras=[];
1258-
for (let j = 1; j < trs.length; j++) {
1258+
for (let j = 1; j < trs.length; j++) {
12591259
const row = trs[j];
12601260
const labelTd = row.querySelector("td.label");
12611261
const key = labelTd? labelTd.textContent : row.querySelector("td.key").textContent;

0 commit comments

Comments
 (0)