Millisecond Online Community

Yet another stupid question... about my pictures not loading.

rated by 0 users
This post has 4 Replies | 1 Follower

Top 500 Contributor
Posts 5
MicciG Posted: 05-11-2009 6:19 PM

(and this is why I failed programming 101 in college...)

I'm trying to have one of three pictures show in the middle of the page, and then have my labels change, so that I have one of 8 "stimulus labels" that need to be matched up with the picture shown in the middle.

I'm having a problem however.

I keep getting this -

<page summary>

<picture targetA>

/items: Unable to load the picture 'C:\Documents and Settings\Greenman\Desktop\Thesis\wheelchair1.jpg'. Verify that the file exists and is of a supported format.

<picture targetB>

/items: Unable to load the picture 'C:\Documents and Settings\Greenman\Desktop\Thesis\wheelchair2.jpg'. Verify that the file exists and is of a supported format.

<text attributeA>

<text attributeAleft>

How do I ge tthe program to recognize the pictures that I am trying to use?  I can't even tell if anything else is being programmed correctly because I can't get it to run.

I'd appreciate any help I can get.

Thanks!

Miriam

Top 10 Contributor
Posts 2,031
The error message you're getting means that Inquisit is unable to locate the picture files referenced in <picture targetA> and <picture targetB>. If you specify a picture stimulus like that

<picture targetA>
/ items = ("wheelchair1.jpg")
[...]
</picture>

Inquisit expects the file to be in the same folder where the script is located, e.g. 'C:\Documents and Settings\Greenman\Desktop\Thesis\'. You can also tell Inquisit to look for stims in other places by additionally supplying (relative or absolute) path information in your '/ items' listing like

<picture targetA>
/ items = ("
Pictures\wheelchair1.jpg")
[...]
</picture>

or

<picture targetA>
/ items = ("
C:\Documents and Settings\Greenman\Desktop\Thesis\Pictures\wheelchair1.jpg")
[...]
</picture>

Also make sure you don't have any spelling errors in the filenames or in your script, because that may also prevent Inquisit from finding a file.

Hope this helps,
~Dave

"To understand recursion, you must first understand recursion."  - Unknown Zen Master

Top 200 Contributor
Posts 7

I am getting the same "Unable to load the picture..." error when I try to run a script with my expt commands in it:

<picture task1rpicture>

 /items: Unable to load the picture 'C:\Documents and Settings\Me\My Documents\_MY RESEARCH\Dissertation\Inquisit\Pilot Study\SharkMULTItxt.jpg'. Verify that the file exists and is of a supported format.

However, the IDENTICAL syntax runs fine (and all the jps load) when I just run the block containing that jpg.  (I pasted it in directly from the other file that works.)
What could it be???
Thanks!

Top 10 Contributor
Posts 1,048

Hi Liz,

Try opening up your preferred web browser and pasting the following path to the picture into the address bar.

C:\Documents and Settings\Me\My Documents\_MY RESEARCH\Dissertation\Inquisit\Pilot Study\SharkMULTItxt.jpg

Do you get a file not found error? If so, then you've either specified the wrong file name for the picture, or the picture is in a different folder than your script. If the browser displays the picture, then the picture may not be in a format recognized by Inquisit.

Let me know how it goes.

-Sean

Top 10 Contributor
Posts 2,031

Liz,

in case you can't locate the source of the problem despite Sean's suggestions, can you put the script along with the picture(s) in a zip-file and attach it to this thread (see the 'Options' tab when replying for file upload controls).

Thanks,

~Dave

"To understand recursion, you must first understand recursion."  - Unknown Zen Master

Page 1 of 1 (5 items) | RSS
Powered by Community Server (Non-Commercial Edition), by Telligent Systems