Presenting vector images


Author
Message
yshin
yshin
Associate Member (91 reputation)Associate Member (91 reputation)Associate Member (91 reputation)Associate Member (91 reputation)Associate Member (91 reputation)Associate Member (91 reputation)Associate Member (91 reputation)Associate Member (91 reputation)Associate Member (91 reputation)
Group: Forum Members
Posts: 2, Visits: 55
Hello,

I was wondering if vector images (e.g., eps, pdf) can be presented as stimuli. I tried using "picture", but that did not work. Is there any recommended way of dealing with this?

Thank you!


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
yshin - 9/17/2019
Hello,

I was wondering if vector images (e.g., eps, pdf) can be presented as stimuli. I tried using "picture", but that did not work. Is there any recommended way of dealing with this?

Thank you!


Generally no, vector formats are not supported by the <picture> element. What you can possibly do is use the <html> element to present e.g. SVG images embedded on HTML pages.

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Dave - 9/17/2019
yshin - 9/17/2019
Hello,

I was wondering if vector images (e.g., eps, pdf) can be presented as stimuli. I tried using "picture", but that did not work. Is there any recommended way of dealing with this?

Thank you!


Generally no, vector formats are not supported by the <picture> element. What you can possibly do is use the <html> element to present e.g. SVG images embedded on HTML pages.

Just tried this with a simple example, and the IE engine at least (which is what Inquisit relies on under Windows to render HTML) doesn't seem to handle this well. So I suppose it's not really an option either, sorry.

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Dave - 9/17/2019
Dave - 9/17/2019
yshin - 9/17/2019
Hello,

I was wondering if vector images (e.g., eps, pdf) can be presented as stimuli. I tried using "picture", but that did not work. Is there any recommended way of dealing with this?

Thank you!


Generally no, vector formats are not supported by the <picture> element. What you can possibly do is use the <html> element to present e.g. SVG images embedded on HTML pages.

Just tried this with a simple example, and the IE engine at least (which is what Inquisit relies on under Windows to render HTML) doesn't seem to handle this well. So I suppose it's not really an option either, sorry.

What actually might work, though, is this:

<html svg>
/ items = svgitems
</html>

<item svgitems>
/ 1 = "01.svg"
/ 2 = "02.svg"
</item>

<trial mytrial>
/ stimulusframes = [1=svg]
/ validresponse = (57)
</trial>

<block myblock>
/ trials = [1-2 = mytrial]
</block>


Attachments
svg_example.zip (242 views, 32.00 KB)
yshin
yshin
Associate Member (91 reputation)Associate Member (91 reputation)Associate Member (91 reputation)Associate Member (91 reputation)Associate Member (91 reputation)Associate Member (91 reputation)Associate Member (91 reputation)Associate Member (91 reputation)Associate Member (91 reputation)
Group: Forum Members
Posts: 2, Visits: 55
Dave - 9/17/2019
Dave - 9/17/2019
Dave - 9/17/2019
yshin - 9/17/2019
Hello,

I was wondering if vector images (e.g., eps, pdf) can be presented as stimuli. I tried using "picture", but that did not work. Is there any recommended way of dealing with this?

Thank you!


Generally no, vector formats are not supported by the <picture> element. What you can possibly do is use the <html> element to present e.g. SVG images embedded on HTML pages.

Just tried this with a simple example, and the IE engine at least (which is what Inquisit relies on under Windows to render HTML) doesn't seem to handle this well. So I suppose it's not really an option either, sorry.

What actually might work, though, is this:

<html svg>
/ items = svgitems
</html>

<item svgitems>
/ 1 = "01.svg"
/ 2 = "02.svg"
</item>

<trial mytrial>
/ stimulusframes = [1=svg]
/ validresponse = (57)
</trial>

<block myblock>
/ trials = [1-2 = mytrial]
</block>


This worked. Thank you!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search