Reply 80 of 229, by fotios
Hi, how easy would it be to incorporate other command line image converters like
http://www.pictview.com/pvw.htm#con
Example syntax: pvw32con.exe inputfile.gif -l --o outputfile.iff --c4
Hi, how easy would it be to incorporate other command line image converters like
http://www.pictview.com/pvw.htm#con
Example syntax: pvw32con.exe inputfile.gif -l --o outputfile.iff --c4
kikendo wrote on 2020-04-14, 20:03:Ahh this sounds awesome, but dedicating a PC to it does not.
Is it possible to convert it to raspberry Pi?
All 0.10+ versions should work on Pi: https://github.com/dotnet/core/blob/master/sa … Instructions.md .
I have no Pi or any Debian ARM devices to test, so can't verify.
In 0.10a1 there are 1 bug that making run on Linux some difficult, I'm working on fix for it.
fotios wrote on 2020-04-15, 07:15:Hi, how easy would it be to incorporate other command line image converters like
http://www.pictview.com/pvw.htm#con
Example syntax: pvw32con.exe inputfile.gif -l --o outputfile.iff --c4
Very easy:
[Converters]
...
pvw32con.exe %SRC% -l --o %DEST%.%DESTEXT% --c4
...
[FixableType:image/gif]
IfUrl=.*
NotUrl=webdav
Redirect=http://%Proxy%/!convert/?url=%Url%&dest=iff&type=image/iff&util=pvw32con.exe
The FixableType section is need only if you need to run the converter on every attempt to download a GIF file. To use the converter separately, simply open http://proxy_host/!convert/?url=source_file_url&dest=iff&type=image/iff&util=pvw32con.exe .
2×Soviet ZX-Speccy, 1×MacIIsi, 1×086, 1×286, 2×386DX, 1×386SX, 2×486, 1×P54C, 7×P55C, 6×Slot1, 4×S370, 1×SlotA, 2×S462, ∞×Modern.
Hi,
While testing WebOne.0.9.3.Full.zip I noticed a small typo in the supplied webone.conf file with regards to jpeg recompresssion.
Redirect=http://%Proxy%/!convert/?url=%Url%&dest=jpeg&type=image/jpeg&arg=-quality%20%20
should be
Redirect=http://%Proxy%/!convert/?url=%Url%&dest=jpeg&type=image/jpeg&arg=-quality%2020
fotios, thank you! Pushed a fix into 0.10 source tree.
2×Soviet ZX-Speccy, 1×MacIIsi, 1×086, 1×286, 2×386DX, 1×386SX, 2×486, 1×P54C, 7×P55C, 6×Slot1, 4×S370, 1×SlotA, 2×S462, ∞×Modern.
Hi, when jpeg compression is used with 0.93, I noticed some images not downloading.
For example, I test: http://amigaworld.net/images/avatar/users/2981.jpg
The first time it loads fine and browser reload on the same page work.
I then surf to other pages and paste the same URL into the browser.
It then fails with 500 InternalServerError. WebOne error message is Can't download source: The handshake failed due to an unexpected packet format...Return code 500.
I know this bug. https://github.com/atauenis/webone/issues/4 🙁
2×Soviet ZX-Speccy, 1×MacIIsi, 1×086, 1×286, 2×386DX, 1×386SX, 2×486, 1×P54C, 7×P55C, 6×Slot1, 4×S370, 1×SlotA, 2×S462, ∞×Modern.
Version 0.10.0 Alpha 2 is ready.
Download page: https://github.com/atauenis/webone/releases/tag/v0.10.0a2
GitHub bug tracker: https://github.com/atauenis/webone/issues
This version is still not stable, but probably may be better than 0.9.3 in most cases. At least I've fixed all fresh bugs and only some older (from 0.9.3) don't know how to fix. So it is why the version is still alpha. Also I'm planning to add some new features like seamless converting of images (not via 302 redirect to a converter, but directly inside WebOne) and language transliteration (idea from Russian users who want to see Cyrillic stuff on MDA/CGA displays in text mode with hardcoded CP437 fonts).
2×Soviet ZX-Speccy, 1×MacIIsi, 1×086, 1×286, 2×386DX, 1×386SX, 2×486, 1×P54C, 7×P55C, 6×Slot1, 4×S370, 1×SlotA, 2×S462, ∞×Modern.
Thanks for the update. Seamless converting of images would be great.
Can you please clarify how the ValidMask for JQuery framework works in the WebOne config? For example, the default value is 1.9.1. Does that mean that any pages with jQuery framework greater than 1.9.1 will be downgraded to 1.9.1?
If I use a web browser that only supports up to 1.6.1 should I change the config value to 1.6.1?
No, it is simply a RegExp mask that disables the patch. So
[FixableURL:jquery.min.js]
ValidMask=1.9.1
Redirect=http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
will redirect all requests to non 1.9.1 versions of jQuery to 1.9.1 from Google CDN.
fotios wrote on 2020-04-18, 16:09:If I use a web browser that only supports up to 1.6.1 should I change the config value to 1.6.1?
[FixableURL:jquery.min.js]
ValidMask=1.6.1
Redirect=http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js
2×Soviet ZX-Speccy, 1×MacIIsi, 1×086, 1×286, 2×386DX, 1×386SX, 2×486, 1×P54C, 7×P55C, 6×Slot1, 4×S370, 1×SlotA, 2×S462, ∞×Modern.
For jQuery, you shouldn't be using jQuery Migrate in conjunction? Just a curious observation...
"Design isn't just what it looks like and feels like. Design is how it works."
JOBS, Steve.
READ: Right to Repair sucks and is illegal!
Bruninho wrote on 2020-04-20, 03:53:For jQuery, you shouldn't be using jQuery Migrate in conjunction?
https://blog.jquery.com/2013/05/08/jquery-migrate-1-2-1-released/ wrote:jQuery Migrate is just a shim for functionality that was removed in jQuery 1.9. It does not return old IE support to jQuery 2.0. jQuery 1.9 still supports old IEs.
So it shouldn't return possibility to run jQuery 2.0+ on IE6/Gecko 1.7.x. To port jQuery 2.x/3.x sites to jQuery 1.9 there are need to make a script like it, but backwards. But in cases which I've tested, a simple downgrade of framework version is enough for most of functionality.
2×Soviet ZX-Speccy, 1×MacIIsi, 1×086, 1×286, 2×386DX, 1×386SX, 2×486, 1×P54C, 7×P55C, 6×Slot1, 4×S370, 1×SlotA, 2×S462, ∞×Modern.
ATauenis wrote on 2020-04-21, 11:54:Bruninho wrote on 2020-04-20, 03:53:For jQuery, you shouldn't be using jQuery Migrate in conjunction?
https://blog.jquery.com/2013/05/08/jquery-migrate-1-2-1-released/ wrote:jQuery Migrate is just a shim for functionality that was removed in jQuery 1.9. It does not return old IE support to jQuery 2.0. jQuery 1.9 still supports old IEs.
So it shouldn't return possibility to run jQuery 2.0+ on IE6/Gecko 1.7.x. To port jQuery 2.x/3.x sites to jQuery 1.9 there are need to make a script like it, but backwards. But in cases which I've tested, a simple downgrade of framework version is enough for most of functionality.
Ah, yes. Thanks for refreshing my memory. I’ve lost count of how many client sites I’ve had to support with it in the past. it’s definitely easier to downgrade
"Design isn't just what it looks like and feels like. Design is how it works."
JOBS, Steve.
READ: Right to Repair sucks and is illegal!
Version 0.10.0 is ready
I've skipped Beta 1, because don't see any bugs in changes after 0.10 Alpha 2 and fixed all known old bugs. So 0.10 is now stable.
Changes from previous stable version, 0.9.3:
It is available at: https://github.com/atauenis/webone/releases/tag/v0.10.0
Probably I'll remove old EXE folder of the repository in future, because it is duplicating the release archive ("Releases" link on top of GitHub) and only wasting the space.
2×Soviet ZX-Speccy, 1×MacIIsi, 1×086, 1×286, 2×386DX, 1×386SX, 2×486, 1×P54C, 7×P55C, 6×Slot1, 4×S370, 1×SlotA, 2×S462, ∞×Modern.
Hi, thanks for the update!
I downloaded WebOne.0.10.0.Full.zip
When I start WebOne there's an error reported for line 199.
WebOne HTTP Proxy Server 0.10.0.0
(C) https://github.com/atauenis/webone
Using configuration file webone.conf.
Error on line 199: Converter cannot self download and use STDIN at same time.
All next lines are ignored.
webone.conf load complete.
Starting server...
Listening for HTTP 1.x on port 80.
Hmm, yes, yt.bat don't work in this build. Try to comment line 200. What a large bug I've skipped at test time. 😀
2×Soviet ZX-Speccy, 1×MacIIsi, 1×086, 1×286, 2×386DX, 1×386SX, 2×486, 1×P54C, 7×P55C, 6×Slot1, 4×S370, 1×SlotA, 2×S462, ∞×Modern.
Thanks, starts fine when I comment line 200.
How do I enable seamless mode as I'm still seeing 503 errors?
11:08:43.867 >GET http://www.hollywood-mal.com/img/de50_shot1.png
11:08:43.867+1760101 >Downloading content...
11:08:43.867+4920281 Add redirect: http://GODZILLA:80/!convert/?url=https%3A
%2F%2Fwww.hollywood-mal.com%3A80%2Fimg%2Fde50_shot1.png&dest=jpeg&type=image/jpe
g&arg=-quality%2010
11:08:43.867+4920281 304 NotModified. Body 0K of [Need to redirect].
11:08:43.867+4930282 <Return code 302.
11:08:43.867+4930282 <Done.
11:08:44.382 >GET http://godzilla:80/!convert/?url=https%3A%2F%2Fwww.hollywoo
d-mal.com%3A80%2Fimg%2Fde50_shot1.png&dest=jpeg&type=image/jpeg&arg=-quality%201
0
11:08:44.382+1670095 Internal: /!convert/?url=https%3A%2F%2Fwww.hollywood-ma
l.com%3A80%2Fimg%2Fde50_shot1.png&dest=jpeg&type=image/jpeg&arg=-quality%2010
11:08:44.382+1670095 >Downloading source stream...
11:08:44.382+2950168 Converter cannot download source: The SSL connection co
uld not be established, see inner exception. The handshake failed due to an unex
pected packet format.
11:08:44.382+2950168 <Return code 503.
11:08:44.382+2950168 <Done.
Try this:
[Edit:.*]
OnContentType=image/jpeg
OnContentType=image/png
OnCode=200
IgnoreUrl=webdav
AddConvert=convert
AddConvertDest=jpeg
AddConvertArg1=-quality 20
AddResponseHeader=Content-Type: image/jpeg
---
Update: tested, it's not working. There is a second today's bug.
https://github.com/atauenis/webone/issues/8
https://github.com/atauenis/webone/issues/7
I've edited converter starting code in v0.10, but it was a small rewrite of older code. So there are results of my inadvertence on time of rewrite. Working on fixes, I will include them in v0.10.1.
2×Soviet ZX-Speccy, 1×MacIIsi, 1×086, 1×286, 2×386DX, 1×386SX, 2×486, 1×P54C, 7×P55C, 6×Slot1, 4×S370, 1×SlotA, 2×S462, ∞×Modern.
ATauenis, I'm curious, what are the prerequisites (on the client side) for using the YouTube conversion parts of WebOne?
I want to try to use it on my retro machines, but I'm not sure how that's supposed to work.
World's foremost 486 enjoyer.
There are 2 ways to watch YouTube through WebOne.
First is to use a semi-modern browser (Firefox 3.5+, Opera 11.6/12) with "ViewTube with WebOne support" userscript and VLC plugin. It directs video stream from YT servers through WebOne with FFMPEG converter to a VLC plugin window.
Second is to use a media player (like WMP, VLC, QuickTime)., which will play "http://youtube.com/watch?v=123456" links via WebOne with "yt.bat" converter. This batch file is using two apps on server side, the first is Youtube-dl (downloader of YT videos to WebM stream), and the second is FFmpeg (which converting the WebM stream to a stream of something playable in retro media player app).
But both are broken in WebOne 0.10, so only v0.9.3 can be used to watch YT. 😀
Also I don't know is the my fork of ViewTube still compatible with YouTube or not.) I have too less time and power to test all quickly. In January it was worked perfectly.
---
Update: checked last version of "ViewTube with WebOne support" on latest Chrome, it is not working as in January. It's need to disable new design like here: "http://youtube.com/watch?v=123456&disable_polymer=1". However, original ViewTube have all need updates, so it's need to apply these edits back to my fork.
2×Soviet ZX-Speccy, 1×MacIIsi, 1×086, 1×286, 2×386DX, 1×386SX, 2×486, 1×P54C, 7×P55C, 6×Slot1, 4×S370, 1×SlotA, 2×S462, ∞×Modern.
ATauenis wrote on 2020-04-28, 15:12:It's need to disable new design like here: "http://youtube.com/watch?v=123456&disable_polymer=1"
I'm surprised to see that we can disable the new design/polymer! There was a lot of people over MSFN forums with problems in this new design since March.
"Design isn't just what it looks like and feels like. Design is how it works."
JOBS, Steve.
READ: Right to Repair sucks and is illegal!