This can be used until a better solution will be introduced
jhspng2=: 3 : 0
d=. fread y
w=. 256#.a.i.4{.16}.d
h=. 256#.a.i.4{.20}.d
t=. '<img width=<WIDTH>px height=<HEIGHT>px src="<FILE><UQS>" ></img>'
dn=. '~temp/test.png'
d fwrite dn
jhtml t hrplc_jhs_ 'WIDTH HEIGHT FILE UQS';w;h;dn;jhsuqs''
)
jhspng2 'c:/tmp/spil/240.png'
jhspng2 'c:/tmp/spil/123.png'
It is possible to make chrome read local files but it is not recommended
for security reasons.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm