glfx.js

一个使用 WebGL 的 JavaScript 图像效果库。「An image effects library for JavaScript using WebGL」

Github stars Tracking Chart

glfx.js

使用由 WebGL 支持的图像效果库 glfx.js 实时调整浏览器中的照片。它使用您的图形卡来处理图像效果,而这些图像效果不可能仅通过 JavaScript 实时应用。

glfx.js 有两个注意事项。首先,WebGL 是一种新技术,只有在最新的浏览器中才能使用,并且在大多数用户拥有它之前还需要一段时间。其次,由于相同的出处政策,JavaScript 只允许读取源自与读取它相同的域的图像,因此您可能必须托管修改的图像。

实时演示

Main metrics

Overview
Name With Ownerevanw/glfx.js
Primary LanguageJavaScript
Program languagePython (Language Count: 4)
PlatformWeb browsers
License:MIT License
所有者活动
Created At2011-05-31 01:15:31
Pushed At2023-10-23 13:33:18
Last Commit At2022-01-10 12:00:59
Release Count0
用户参与
Stargazers Count3.4k
Watchers Count99
Fork Count410
Commits Count44
Has Issues Enabled
Issues Count50
Issue Open Count31
Pull Requests Count1
Pull Requests Open Count11
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

glfx.js

Adjust photos in your browser in realtime with glfx.js, an image effects library powered by WebGL. It uses your graphics card for image effects that would be impossible to apply in real-time with JavaScript alone.

There are two caveats to glfx.js. First, WebGL is a new technology that is only available in the latest browsers and it will be quite a while before the majority of users have it. Second, due to the same origin policy, JavaScript is only allowed to read images that originate from the same domain as the script reading them, so you may have to host the images you modify.

Live Demo