Millisecond Forums

Background not using all of monitor

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

By jmwotw - 1/25/2022

Hi, I'm trying to display a background image across the entire screen that  the participant will see. I'm trying to learn about the canvasaspectratio, but I think I'm not using it right or something.

My monitor resolution is 3840x2160 so I set the default to 16:9

<defaults>
/ canvasaspectratio = (16,9)
/ canvassize = (100%, 100%)
</defaults>


Then I set the background image (attached) like this:

<picture background>
/items= ("000_BG03_LAVENDER_border.png")
/ halign = left
/ valign = top
/position = (0%, 0%)
/size = (100%, 100%)
</picture>


But as you see in the attached image, it leaves quite a bit of territory on the right side of the screen unused.

 
 
By jmwotw - 1/25/2022

By jmwotw - 1/25/2022


It doesn't seem to be uploading the pictures? Not sure what to do about that...
By Dave - 1/25/2022

Jeff - 1/25/2022

It doesn't seem to be uploading the pictures? Not sure what to do about that...

> It doesn't seem to be uploading the pictures? Not sure what to do about that..

You can attach files per +Insert -> Add File...

That said, the picture will cover the entire screen, if and only if the image file's aspect ratio is 16:9. Inquisit will not distort an image's inherent aspect ratio.
By jmwotw - 1/25/2022

Dave - 1/25/2022
Jeff - 1/25/2022

It doesn't seem to be uploading the pictures? Not sure what to do about that...

> It doesn't seem to be uploading the pictures? Not sure what to do about that..

You can attach files per +Insert -> Add File...

That said, the picture will cover the entire screen, if and only if the image file's aspect ratio is 16:9. Inquisit will not distort an image's inherent aspect ratio.

Thanks, Dave. That makes sense, but it does make cross-device compatibility more difficult.

By Dave - 1/25/2022

Jeff - 1/26/2022
Dave - 1/25/2022
Jeff - 1/25/2022

It doesn't seem to be uploading the pictures? Not sure what to do about that...

> It doesn't seem to be uploading the pictures? Not sure what to do about that..

You can attach files per +Insert -> Add File...

That said, the picture will cover the entire screen, if and only if the image file's aspect ratio is 16:9. Inquisit will not distort an image's inherent aspect ratio.

Thanks, Dave. That makes sense, but it does make cross-device compatibility more difficult.


Not really if you're declaring a 16:9 ratio per your /canvasaspectratio. On a screen that isn't 16:9 then, the script will not use the entire screen anyway, but only a 16:9 subsection (the canvas).
By jmwotw - 1/26/2022

Dave - 1/26/2022
Jeff - 1/26/2022
Dave - 1/25/2022
Jeff - 1/25/2022

It doesn't seem to be uploading the pictures? Not sure what to do about that...

> It doesn't seem to be uploading the pictures? Not sure what to do about that..

You can attach files per +Insert -> Add File...

That said, the picture will cover the entire screen, if and only if the image file's aspect ratio is 16:9. Inquisit will not distort an image's inherent aspect ratio.

Thanks, Dave. That makes sense, but it does make cross-device compatibility more difficult.


Not really if you're declaring a 16:9 ratio per your /canvasaspectratio. On a screen that isn't 16:9 then, the script will not use the entire screen anyway, but only a 16:9 subsection (the canvas).

One more follow-up. If it doesn't change the inherent aspect ratio, how does it handle conflicting percentages in the size attribute? If an image is naturally 16:9 but I specify percentages of 30%, 15%, how does it resolve that? 
By Dave - 1/26/2022

Jeff - 1/26/2022
Dave - 1/26/2022
Jeff - 1/26/2022
Dave - 1/25/2022
Jeff - 1/25/2022

It doesn't seem to be uploading the pictures? Not sure what to do about that...

> It doesn't seem to be uploading the pictures? Not sure what to do about that..

You can attach files per +Insert -> Add File...

That said, the picture will cover the entire screen, if and only if the image file's aspect ratio is 16:9. Inquisit will not distort an image's inherent aspect ratio.

Thanks, Dave. That makes sense, but it does make cross-device compatibility more difficult.


Not really if you're declaring a 16:9 ratio per your /canvasaspectratio. On a screen that isn't 16:9 then, the script will not use the entire screen anyway, but only a 16:9 subsection (the canvas).

One more follow-up. If it doesn't change the inherent aspect ratio, how does it handle conflicting percentages in the size attribute? If an image is naturally 16:9 but I specify percentages of 30%, 15%, how does it resolve that? 

It takes the smaller specified value (here: 15%) and sizes that dimension accordingly. The other dimension is whatever the image's aspect ratio dictates.