mamazav / webjpip.js Goto Github PK
View Code? Open in Web Editor NEWAn end to end pure web (Javascript) solution for standard JPIP client
License: Apache License 2.0
An end to end pure web (Javascript) solution for standard JPIP client
License: Apache License 2.0
Hi,
In the README you mention its very easy to add the necessary headers to kdu_server messages to enable CORS and expose the headers. What edits do you recommend to do so? I have a full Kakadu licence for V8.0.6.
Also, any open-source alternatives to kdu_server you found useful and worked for webjpip, for instance OpenJPIP?
Thanks
Edit:
I'm currently using a node.js proxy which seems to work, but I'd imagine its ideal to forego the proxy altogether and instead have kdu_server enable CORS directly.
I tried to get the jpxjpip or other demos up and running but with the latest version of kdu_show I do not succeed at all. I get the info below. Any idea where to start? I could go through the code of kdu_server but any hint would be appreciated.
Thanks!
<< GET
/A012_C005_0516BC_001_1099124.jp2?type=jpp-stream&stream=0&len=10240&qid=1&cnew
=http HTTP/1.1
<< Host: XXXXXXXX:8888
<< Connection: keep-alive
<< User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36
<< Origin: http://localhost
<< Accept: /
<< Referer:
http://localhost/jpip/wrappers/jpxjpipimage/jpxjpipimageworkers/codestreamclien
tmanagerworker.js
<< Accept-Encoding: gzip, deflate, sdch
<< Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4
<<
New channel request accepted locally
Assigned channel ID: JPH_020B82F74A5DFD69
>> HTTP/1.1 200 OK
>> JPIP-cnew: cid=JPH_020B82F74A5DFD69,path=jpip,transport=http
>> JPIP-qid:1
>> Cache-Control: no-cache
>> Transfer-Encoding: chunked
>> Content-Type: image/jpp-stream
>>
>> 10c
>> 0
>>
Disconnecting client
File = "a012_c005_0516bc_001_1099124.jp2"
Channel transport = "http" (1)
Disconnect time = Fri Feb 19 14:38:46 2016
Connected for 10.050763 seconds
Total bytes transmitted = 458
Number of requests = 1
Number of requests not pre-empted = 1
Average bytes served per request not pre-empted = 458.000000
Number of primary channel attachment events = 1
This is great work and I like the idea of pure web-based JPIP interface a lot.
I am trying to adopt this webjpip for my project, I am wondering if there is any recent plan of a stable release ? As I noted the last commit is about a year ago.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.