Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web cannot run #31

Closed
lephuhung opened this issue Aug 31, 2019 · 2 comments
Closed

web cannot run #31

lephuhung opened this issue Aug 31, 2019 · 2 comments
Assignees

Comments

@lephuhung
Copy link

chrome cannot run with error on console

Uncaught DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The image element contains cross-origin data, and may not be loaded. at createTexture (file:///E:/Download/Anime4K-master/Anime4K-master/web/main.js:56:12) at Scaler.inputImage (file:///E:/Download/Anime4K-master/Anime4K-master/web/main.js:487:21) at Image.inputImg.onload (file:///E:/Download/Anime4K-master/Anime4K-master/web/main.js:693:16) createTexture @ main.js:56 Scaler.inputImage @ main.js:487 inputImg.onload @ main.js:693 load (async) onLoad @ main.js:689 onload @ index.html:11

@stefnotch
Copy link

stefnotch commented Aug 31, 2019

@lephuhung That's a limitation of some web browsers caused by directly opening the .html file. You would need a web-server to get around this limitation.

@bloc97
I think it'd be great if you could set up GitHub pages for this. Setting up GitHub pages just takes a bunch of clicks and ensures that a web demo is always available.

  1. Click on the Settings tab and scroll down to the GitHub Pages section. Then select the master branch source and click on the Save.
  2. Add an index.html to the root which just redirects you to the other index.html
<!DOCTYPE HTML>
<html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="1;url=web">
        <title>Page Redirection</title>
    </head>
    <body>
        If you are not redirected automatically, <a href="web">click here</a>
    </body>
</html>
  1. https://bloc97.github.io/Anime4K should be up after a few minutes

@bloc97 bloc97 self-assigned this Aug 31, 2019
@lephuhung
Copy link
Author

@lephuhung That's a limitation of some web browsers caused by directly opening the .html file. You would need a web-server to get around this limitation.

@bloc97
I think it'd be great if you could set up GitHub pages for this. Setting up GitHub pages just takes a bunch of clicks and ensures that a web demo is always available.

  1. Click on the Settings tab and scroll down to the GitHub Pages section. Then select the master branch source and click on the Save.
  2. Add an index.html to the root which just redirects you to the other index.html
<!DOCTYPE HTML>
<html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="1;url=web">
        <title>Page Redirection</title>
    </head>
    <body>
        If you are not redirected automatically, <a href="web">click here</a>
    </body>
</html>
  1. https://bloc97.github.io/Anime4K should be up after a few minutes

many thank to you, i dowloaded xampp and run anime4k perfecterly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants