publiclab / image-sequencer-app

An Image Processing server based on image-sequencer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Img src attr

harshkhandeparkar opened this issue · comments

Here

var html = `<html>`
for (let img of imgs) {
html += `<img src= "${img}">`
}
html += `</html>`

The img tag that is returned has a src attribute equal to the variable img.
But when the Sequencer is run, the img is an object and its url property is used as its source dataURL.
Here

process(imgs[0].url, imgs[0].sequence, cb);

Shouldn't the url property be used for the html img tag as well?

I actually don't have a problem with the html, I just wanted to clarify if I have misunderstood the input data. I want to start contributing to this project so I asked this query.

Okay so this is because I update the values in the imgs array in the callbacks.