Loading. Please Wait... 
 |
 |
 |
E-Hentai Minor Updates, Fixes, minor tweaks to existing functionality, minor new features |
|
Oct 30 2024, 13:28
|
小白-白
Group: Catgirl Camarilla
Posts: 154
Joined: 8-April 18

|
QUOTE(Tenboro @ Oct 30 2024, 19:10)  It's not that easy, I'd need to set up a separate server with a non-LTS software stack to support versions of ImageMagick that are recent enough to handle animated WebPs natively.
It seems this isn’t an easy task, and it’s worth considering whether it’s necessary to do so. However, for me personally, the current approach of not resampling animated WebP files is acceptable.
|
|
|
Oct 30 2024, 13:59
|
aklfhl
Group: Members
Posts: 191
Joined: 8-February 14

|
Considering animated WebP won't be resampled, will its file size limit differ from static ones? And will lossy and lossless WebP have different size limits, since lossless ones can save more % of size when resampled to lossy?
|
|
|
Oct 30 2024, 14:02
|
Tenboro

|
QUOTE(aklfhl @ Oct 30 2024, 12:59)  Considering animated WebP won't be resampled, will its file size limit differ from static ones? And will lossy and lossless WebP have different size limits, since lossless ones can save more % of size when resampled to lossy? The WebP limit is 20 MiB, like JPEG.
|
|
|
Oct 31 2024, 04:04
|
小白-白
Group: Catgirl Camarilla
Posts: 154
Joined: 8-April 18

|
When attempting to search for specific keywords on the "Watched" page, a 403 error occurs. Perhaps there is a separate restriction on the Watched page. I hope it can alert users in the same way as the main page search. For example: https://e-hentai.org/watched?f_search=[りむちゃんち (うにクリームコロッケ)] ニヤニヤ教授のあま責めごときに負けないが!? (ブルーアーカイブ) [中国翻訳] [DL版] Edit: Accessing directly through the link works fine, but issues arise when entering keywords in the search on the "Watched" page. This post has been edited by 小白-白: Oct 31 2024, 04:27
|
|
|
|
 |
|
Oct 31 2024, 04:22
|
1235789gzy1
Group: Gold Star Club
Posts: 247
Joined: 19-April 18

|
QUOTE(小白-白 @ Oct 31 2024, 10:04)  When attempting to search for specific keywords on the "Watched" page, a 403 error occurs. Perhaps there is a separate restriction on the Watched page. I hope it can alert users in the same way as the main page search. For example: https://e-hentai.org/watched?f_search=[りむちゃんち (うにクリームコロッケ)] ニヤニヤ教授のあま責めごときに負けないが!? (ブルーアーカイブ) [中国翻訳] [DL版] Update: Accessing directly through the link works fine, but issues arise when entering keywords in the search on the "Watched" page. Based on my tests, it seems that including the keyword "?" in the search will result in a 403 Forbidden error.
|
|
|
|
 |
|
Oct 31 2024, 08:46
|
Cipher-kun
Group: Gold Star Club
Posts: 3,225
Joined: 15-December 12

|
QUOTE(Tenboro @ Oct 29 2024, 08:44)  But since the multiframe detection seems to be working, I just added a bypass to treat animated WebPs similar to GIFs for now, which is to say, don't resample them at all. Which means animated WebPs should now be supported asterisk.
Will this be limited to 10MiB or another size, or will it just be limited by the file types max size of 20MiB Also will this apply to APNG as well or just webp This post has been edited by Cipher-kun: Oct 31 2024, 08:50
|
|
|
|
 |
|
Oct 31 2024, 08:53
|
Tenboro

|
QUOTE(1235789gzy1 @ Oct 31 2024, 03:22)  Based on my tests, it seems that including the keyword "?" in the search will result in a 403 Forbidden error.
There were some changes in the software stack that affected the behavior of some characters in rewrites, so it's probably related to that. I'll look into it. QUOTE(Cipher-kun @ Oct 31 2024, 07:46)  Will this be limited to 10MiB or another size, or will it just be limited by the file types max size of 20MiB
20 MiB.
|
|
|
|
 |
|
Oct 31 2024, 14:07
|
jadoeman
Group: Members
Posts: 108
Joined: 28-February 15

|
QUOTE(Tenboro @ Oct 30 2024, 08:02)  The WebP limit is 20 MiB, like JPEG.
This makes me curious. Is there any downside here, from just a normal-user-browsing perspective? Like, just scrolling through a gallery (MPV or normal) and hitting an excessive number of these? Right now, to pick some random images just to have numbers to play with... Okay. A ~4k PNG source says it's 8MB, but MPV shows a scaled down 1280x 150KB JPG. Another one, ~2k PNG source 5MB, scaled to 1280x 350KB JPG. Obviously different images have different ratios etc, but the end result is that simply scrolling through a gallery is pretty "light", regardless of how high or low quality the sources are. Or to put it another way, there's a rough upper threshold for what will be served by default. (At least unless you go into settings and opt-in to bigger sizes, click the download source link, etc. But at that point you've made a decision anyway.) If 20MB is the limit for these and they bypass resampling, then if someone made a gallery with a hundred of these, they'd all load the original unresampled ones, right? Could that cause problems - or at least be more problematic than a gallery of more "normal" ones? ...Guess that an all-GIF gallery would be similar if they also bypass. Never thought about it; guess it makes sense. But GIFs are pretty obvious (color limits etc), so I don't think I've ever seen more than a GIF or two here or there. Beyond galleries that literally say that it's a load of GIFs in the name; you gotta go out of your way to see those. WebP look more or less "normal", so you could scroll through them without necessarily realizing it. Not sure what the risk here would be anyway. Just someone being a dick, I guess, and making a gallery with massive non-resampled images that look like static images? Not sure if that's that common of a problem, or if it would adversely impact anything (other than be a larger bandwidth hit, and maybe eat more image limit/quota/whatever than normal). But it's something different. And that makes me curious if that would lead to abuse.
|
|
|
|
 |
|
Oct 31 2024, 14:14
|
Tenboro

|
QUOTE(jadoeman @ Oct 31 2024, 13:07)  If 20MB is the limit for these and they bypass resampling, then if someone made a gallery with a hundred of these, they'd all load the original unresampled ones, right? Could that cause problems - or at least be more problematic than a gallery of more "normal" ones?
...Guess that an all-GIF gallery would be similar if they also bypass. Never thought about it; guess it makes sense. But GIFs are pretty obvious (color limits etc), so I don't think I've ever seen more than a GIF or two here or there. Beyond galleries that literally say that it's a load of GIFs in the name; you gotta go out of your way to see those. WebP look more or less "normal", so you could scroll through them without necessarily realizing it. They are served through H@H from the regions with plenty of bandwidth available, so it's not so much of an issue. And like you say, you could already do that with GIFs. I plan on looking into resampling them, but people would just be banned if they tried to abuse stuff like that.
|
|
|
|
 |
|
|
 |
|
Oct 31 2024, 23:26
|
Tenboro

|
QUOTE(ninetydollardoujin @ Oct 31 2024, 22:18)  On Firefox, the space between the thumbnails is clickable when the thumbnail looks like a rectangle and is oriented horizontally. Could this be fixed? It's not a bug, that's working as intended.
|
|
|
Nov 1 2024, 04:11
|
davidor
Newcomer
 Group: Members
Posts: 33
Joined: 13-October 11

|
Is it possible to make the "Download Resample archive" clickable again even the gallery only have original and will download original archive. edit: nevermind I figured things out
This post has been edited by davidor: Nov 1 2024, 08:23
|
|
|
Nov 1 2024, 06:41
|
-terry-
Group: Gold Star Club
Posts: 2,533
Joined: 9-August 19

|
QUOTE(davidor @ Nov 1 2024, 03:11)  Is it possible to make the "Download Resample archive" clickable again even the gallery only have original and will download original archive.
Post the link to the gallery, resampled archives should still be available.
|
|
|
Nov 1 2024, 08:20
|
davidor
Newcomer
 Group: Members
Posts: 33
Joined: 13-October 11

|
QUOTE(-terry- @ Nov 1 2024, 13:41)  Post the link to the gallery, resampled archives should still be available.
nevermind I figured things out This post has been edited by davidor: Nov 1 2024, 08:23
|
|
|
|
 |
|
Nov 2 2024, 12:43
|
FabulousCupcake
Group: Gold Star Club
Posts: 491
Joined: 15-April 14

|
Currently keyboard navigation in mpv is a bit bugged due to how window.preload_generic only loads images 3000 pixels distance ahead, and unloads images/pages once they're 10000 pixels distance away (ahead or behind). This means if you hit previous button enough, eventually it no longer works; you can reproduce the issue by e.g. loading mpv on page 320, hit right arrow key until 330, and then hit left arrow key; eventually it just stops working. I think a good fix is to just load images 3000 pixels distance ahead and behind: CODE --- a 2024-11-02 11:29:06 +++ b 2024-11-02 11:29:19 @@ -1,19 +1,19 @@ function preload_generic(a, b, c) { var d = a.scrollTop; a = d + a.offsetHeight; for (var e = "image" == b, f = 1; f <= pagecount; f++) { var g = document.getElementById(b + "_" + f) , h = g.offsetTop , k = h + g.offsetHeight; - if ("hidden" == g.style.visibility && k >= d && h <= a + c) + if ("hidden" == g.style.visibility && k >= d - c && h <= a + c) e ? load_image(f) : load_thumb(f), g.style.visibility = "visible"; else if ("visible" == g.style.visibility) { if (k < d - 1E4 || h > a + 1E4) g.innerHTML = "", g.style.visibility = "hidden"; e && k >= d + 100 && h <= d + 100 && (currentpage = f) } } }
Script to patch the function on the page: [ gist.github.com] https://gist.github.com/FabulousCupcake/d2e...2471387a93d7413
|
|
|
|
 |
|
Nov 2 2024, 19:33
|
Tenboro

|
QUOTE(FabulousCupcake @ Nov 2 2024, 11:43)  Currently keyboard navigation in mpv is a bit bugged due to how window.preload_generic only loads images 3000 pixels distance ahead, and unloads images/pages once they're 10000 pixels distance away (ahead or behind).
This means if you hit previous button enough, eventually it no longer works; you can reproduce the issue by e.g. loading mpv on page 320, hit right arrow key until 330, and then hit left arrow key; eventually it just stops working.
Can't reproduce, under what conditions does it stop loading images exactly? It doesn't preload images when going backwards, this is by design, but it should start loading them when they enter the viewport.
|
|
|
Nov 2 2024, 20:23
|
小白-白
Group: Catgirl Camarilla
Posts: 154
Joined: 8-April 18

|
|
|
|
|
 |
|
Nov 2 2024, 21:54
|
FabulousCupcake
Group: Gold Star Club
Posts: 491
Joined: 15-April 14

|
QUOTE(Tenboro @ Nov 2 2024, 18:33)  Can't reproduce, under what conditions does it stop loading images exactly?
It doesn't preload images when going backwards, this is by design, but it should start loading them when they enter the viewport.
With clean setup, I can't reproduce it as well. Few things I found that made the issue reappear: • When any level of zoom out is applied • When using the [Align Center, Scale to Fit] mode in mpv (third icon on the top right that looks like 4 horizontal lines) • When each page is made to fit 100% viewport height (this is third-party script, so we can ignore I suppose) Using this as test gallery: https://e-hentai.org/g/3105020/31ca0e71a2/• Open mpv on page 1 • Hit zoom out (or switch to [Align Center, Scale to Fit] mode) • Using the thumb navigation, jump to page 14 • Hit left, page should change • Hit left, page stops changing On chrome, it stops working (URL says #page12, but window.currentpage is 13, so hitting left does nothing as it makes you go to #page12 again) On firefox, it instead jumps to weird locations and not showing the right image, it's very hard to describe. Depending on the browser/viewport width, it may also show different pages. Honestly I can't understand what's going on 🥴 My best understanding is the currentpage determination using the pane scrollTop against image offsetTop can be kinda janky when some previous images are not yet loaded? This post has been edited by FabulousCupcake: Nov 2 2024, 22:02
|
|
|
|
 |
|
Nov 2 2024, 23:58
|
Tenboro

|
QUOTE(小白-白 @ Nov 2 2024, 19:23)  No idea how you found that one seeing as it's the only one affected, but I think it had some flags messed up by a buggy query during early testing. Should be corrected now. QUOTE(FabulousCupcake @ Nov 2 2024, 20:54)  With clean setup, I can't reproduce it as well. ... Honestly I can't understand what's going on 🥴 My best understanding is the currentpage determination using the pane scrollTop against image offsetTop can be kinda janky when some previous images are not yet loaded? Hard to say if it can't be reliably reproduced, but I'll keep it in mind.
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|
|
|