Millisecond Forums

survey with pictures

https://forums.millisecond.com/Topic21233.aspx

By shake73 - 4/2/2017

Hello, new to Inquisit.  How can I show a picture on screen with some survey questions below it?
Thank you!
By Dave - 4/2/2017

shake73 - Sunday, April 2, 2017
Hello, new to Inquisit.  How can I show a picture on screen with some survey questions below it?
Thank you!

Set up an <image> element

<image myimage>
/ items = ("example.jpg")
...
</image>

and display it via the the <surveypage>'s /questions attribute along with the other questions:

<surveypage mypage>
/ questions = [1=myimage; 2=q1; 3=q2; ...]
...
</surveypage>
By shake73 - 4/3/2017

Dave - Monday, April 3, 2017
shake73 - Sunday, April 2, 2017
Hello, new to Inquisit.  How can I show a picture on screen with some survey questions below it?
Thank you!

Set up an <image> element

<image myimage>
/ items = ("example.jpg")
...
</image>

and display it via the the <surveypage>'s /questions attribute along with the other questions:

<surveypage mypage>
/ questions = [1=myimage; 2=q1; 3=q2; ...]
...
</surveypage>

Thank you very much!
I am having difficulty with images.  Is there a file size recommended?  I keep getting the "file is larger than the screen and will take up too much VRAM".  Is there a preferred graphic file type (extension?)
By Dave - 4/3/2017

shake73 - Monday, April 3, 2017
Dave - Monday, April 3, 2017
shake73 - Sunday, April 2, 2017
Hello, new to Inquisit.  How can I show a picture on screen with some survey questions below it?
Thank you!

Set up an <image> element

<image myimage>
/ items = ("example.jpg")
...
</image>

and display it via the the <surveypage>'s /questions attribute along with the other questions:

<surveypage mypage>
/ questions = [1=myimage; 2=q1; 3=q2; ...]
...
</surveypage>

Thank you very much!
I am having difficulty with images.  Is there a file size recommended?  I keep getting the "file is larger than the screen and will take up too much VRAM".  Is there a preferred graphic file type (extension?)

No, there is no preferred file type, but I would recommend using a compressed format like JPG or PNG. The VRAM warning refers to the image's resolution, you should reduce that to something reasonable in your image editor of choice (any simple one will do); there usually is no need for images to have a resolution of several millions of pixels if they're only going to occupy a fraction of a much smaller screen.
By shake73 - 4/3/2017

Dave - Monday, April 3, 2017
shake73 - Monday, April 3, 2017
Dave - Monday, April 3, 2017
shake73 - Sunday, April 2, 2017
Hello, new to Inquisit.  How can I show a picture on screen with some survey questions below it?
Thank you!

Set up an <image> element

<image myimage>
/ items = ("example.jpg")
...
</image>

and display it via the the <surveypage>'s /questions attribute along with the other questions:

<surveypage mypage>
/ questions = [1=myimage; 2=q1; 3=q2; ...]
...
</surveypage>

Thank you very much!
I am having difficulty with images.  Is there a file size recommended?  I keep getting the "file is larger than the screen and will take up too much VRAM".  Is there a preferred graphic file type (extension?)

No, there is no preferred file type, but I would recommend using a compressed format like JPG or PNG. The VRAM warning refers to the image's resolution, you should reduce that to something reasonable in your image editor of choice (any simple one will do); there usually is no need for images to have a resolution of several millions of pixels if they're only going to occupy a fraction of a much smaller screen.

Dave, Since you've been so helpful,
I am trying to display the same survey page (about 30 times) with the same set of checkboxes but with a different image each time.  Is there a way I can select from a folder of pictures (either in a certain order or randomly with no return).  Maybe there is a script in the library that you suggest I look at?
Thank you in advance!
By Dave - 4/3/2017

shake73 - Monday, April 3, 2017
Dave - Monday, April 3, 2017
shake73 - Monday, April 3, 2017
Dave - Monday, April 3, 2017
shake73 - Sunday, April 2, 2017
Hello, new to Inquisit.  How can I show a picture on screen with some survey questions below it?
Thank you!

Set up an <image> element

<image myimage>
/ items = ("example.jpg")
...
</image>

and display it via the the <surveypage>'s /questions attribute along with the other questions:

<surveypage mypage>
/ questions = [1=myimage; 2=q1; 3=q2; ...]
...
</surveypage>

Thank you very much!
I am having difficulty with images.  Is there a file size recommended?  I keep getting the "file is larger than the screen and will take up too much VRAM".  Is there a preferred graphic file type (extension?)

No, there is no preferred file type, but I would recommend using a compressed format like JPG or PNG. The VRAM warning refers to the image's resolution, you should reduce that to something reasonable in your image editor of choice (any simple one will do); there usually is no need for images to have a resolution of several millions of pixels if they're only going to occupy a fraction of a much smaller screen.

Dave, Since you've been so helpful,
I am trying to display the same survey page (about 30 times) with the same set of checkboxes but with a different image each time.  Is there a way I can select from a folder of pictures (either in a certain order or randomly with no return).  Maybe there is a script in the library that you suggest I look at?
Thank you in advance!

This should be a suitable example:
https://www.millisecond.com/forums/FindPost15230.aspx

Download the respective script via https://www.millisecond.com/forums/Attachment668.aspx
By shake73 - 4/4/2017

Dave - Monday, April 3, 2017
shake73 - Monday, April 3, 2017
Dave - Monday, April 3, 2017
shake73 - Monday, April 3, 2017
Dave - Monday, April 3, 2017
shake73 - Sunday, April 2, 2017
Hello, new to Inquisit.  How can I show a picture on screen with some survey questions below it?
Thank you!

Set up an <image> element

<image myimage>
/ items = ("example.jpg")
...
</image>

and display it via the the <surveypage>'s /questions attribute along with the other questions:

<surveypage mypage>
/ questions = [1=myimage; 2=q1; 3=q2; ...]
...
</surveypage>

Thank you very much!
I am having difficulty with images.  Is there a file size recommended?  I keep getting the "file is larger than the screen and will take up too much VRAM".  Is there a preferred graphic file type (extension?)

No, there is no preferred file type, but I would recommend using a compressed format like JPG or PNG. The VRAM warning refers to the image's resolution, you should reduce that to something reasonable in your image editor of choice (any simple one will do); there usually is no need for images to have a resolution of several millions of pixels if they're only going to occupy a fraction of a much smaller screen.

Dave, Since you've been so helpful,
I am trying to display the same survey page (about 30 times) with the same set of checkboxes but with a different image each time.  Is there a way I can select from a folder of pictures (either in a certain order or randomly with no return).  Maybe there is a script in the library that you suggest I look at?
Thank you in advance!

This should be a suitable example:
https://www.millisecond.com/forums/FindPost15230.aspx

Download the respective script via https://www.millisecond.com/forums/Attachment668.aspx

Thanks so much Dave!  
It all worked beautifully to get my images with my checkboxes, but my images were taking up too much screen space (and laying under my checkboxes).  I tried unsuccessfully to use "size" and "position" within that script.  I then reduced the original images (using Paint) but now they are showing up twice, and overlaying each other diagonally?  Any ideas?  I am using png's about 700x400.  My original files were 2000x1200 bmp's and needed to be about 60% of that size to fit with the checkboxes.
Thank you again!
By Dave - 4/5/2017

shake73 - Tuesday, April 4, 2017
Dave - Monday, April 3, 2017
shake73 - Monday, April 3, 2017
Dave - Monday, April 3, 2017
shake73 - Monday, April 3, 2017
Dave - Monday, April 3, 2017
shake73 - Sunday, April 2, 2017
Hello, new to Inquisit.  How can I show a picture on screen with some survey questions below it?
Thank you!

Set up an <image> element

<image myimage>
/ items = ("example.jpg")
...
</image>

and display it via the the <surveypage>'s /questions attribute along with the other questions:

<surveypage mypage>
/ questions = [1=myimage; 2=q1; 3=q2; ...]
...
</surveypage>

Thank you very much!
I am having difficulty with images.  Is there a file size recommended?  I keep getting the "file is larger than the screen and will take up too much VRAM".  Is there a preferred graphic file type (extension?)

No, there is no preferred file type, but I would recommend using a compressed format like JPG or PNG. The VRAM warning refers to the image's resolution, you should reduce that to something reasonable in your image editor of choice (any simple one will do); there usually is no need for images to have a resolution of several millions of pixels if they're only going to occupy a fraction of a much smaller screen.

Dave, Since you've been so helpful,
I am trying to display the same survey page (about 30 times) with the same set of checkboxes but with a different image each time.  Is there a way I can select from a folder of pictures (either in a certain order or randomly with no return).  Maybe there is a script in the library that you suggest I look at?
Thank you in advance!

This should be a suitable example:
https://www.millisecond.com/forums/FindPost15230.aspx

Download the respective script via https://www.millisecond.com/forums/Attachment668.aspx

Thanks so much Dave!  
It all worked beautifully to get my images with my checkboxes, but my images were taking up too much screen space (and laying under my checkboxes).  I tried unsuccessfully to use "size" and "position" within that script.  I then reduced the original images (using Paint) but now they are showing up twice, and overlaying each other diagonally?  Any ideas?  I am using png's about 700x400.  My original files were 2000x1200 bmp's and needed to be about 60% of that size to fit with the checkboxes.
Thank you again!

You should be able to use the /imagesize attribute. I cannot say anything about the overlaying without the actual code -- it sounds like you are displaying multiple <image> elements on the page, which you should not do.