﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » Picture resizing</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 16 Jun 2026 08:55:26 GMT</lastBuildDate><ttl>20</ttl><item><title>Picture resizing</title><link>https://forums.millisecond.com/Topic26355.aspx</link><description>Hey there!&lt;br/&gt;&lt;br/&gt;For my study I need to present images on a screen. Unfortunately, I don't know the exact size. The picture I want to present also have different sizes. Some of them have a vertical format, others a horizontal. I want to present them in the following way: All pictures should have the same hight (80 % of screen hight), the picture ratio should stay the same. So the picture shouldn't be cut. Furthermore, the picture should be presented in the middle of the screen.&lt;br/&gt;&lt;br/&gt;I tried already tried it with the following code:&lt;br/&gt;&amp;lt;picture japanese&amp;gt;&lt;br/&gt;/items = japanese&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/height = 80%&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;but that doesn't really work...&lt;br/&gt;Has anybody an idea?&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;&lt;br/&gt;Julia</description><pubDate>Sat, 09 Feb 2019 04:26:41 GMT</pubDate><dc:creator>JuliaJuliaJulia</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26406.aspx</link><description>&lt;div data-id="26384" class="if-quote-wrapper" unselectable="on" data-guid="1549715140002"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26384" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26384" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26384" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26384"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26383" class="if-quote-wrapper" unselectable="on" data-guid="1549715140002"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26383" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26383" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26383" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26383"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;br/&gt;I'm sorry for being so silly but that still doesn't make sense to me. Let's take this code:&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.width = list.widths.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 80%&lt;br/&gt;/ width = 0%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;---------------------------------------------------------------------------------&lt;br/&gt;For &lt;strong&gt;both&lt;/strong&gt; items the hight is 80% of the screen right? And only the widths varies (80% for the first picture and 40% for the second picture)?&lt;a class="if-quote-goto quote-link" href="#" data-id="26383"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;gt; For &lt;strong&gt;both&lt;/strong&gt; items the hight is 80% of the screen right? And only the widths varies (80% for the first picture and 40% for the second picture)?&lt;br/&gt;&lt;br/&gt;Yes. The &lt;strong&gt;height &lt;/strong&gt;of the &amp;lt;picture&amp;gt; element is set to 80% here&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;&lt;strong&gt;/ height = 80%&lt;/strong&gt;&lt;br/&gt;/ width = 0%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;and nowhere is it changed. The &lt;strong&gt;width &lt;/strong&gt;is set on a trial-by-trial basis here&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.&lt;strong&gt;width &lt;/strong&gt;= list.&lt;strong&gt;widths&lt;/strong&gt;.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;and it is sampled from the &amp;lt;list&amp;gt; element. Which &lt;strong&gt;value&lt;/strong&gt;, i.e. &lt;strong&gt;width&lt;/strong&gt;, the list returns depends on the picture item the trial will display.&lt;br/&gt;&lt;br/&gt;Do keep in mind one thing: Inquisit will not, under any circumstances, distort the original image's dimensions. They will remain intact, i.e. Inquisit will not "stretch" an image just because you set an excessive width or height. I.e. suppose you have an image that is 400 pixels wide, and 300 pixels high, then -- not matter what you do, the 4:3 width/height ratio will always be preserved, even if you set the &amp;lt;picture&amp;gt; element's dimensions to something absurd like width = 5% &amp;amp; height = 90%.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26384"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey Dave,&lt;br/&gt;&lt;br/&gt;thanks so much for this&amp;nbsp;explanation and your help! I didn't know that Inquisit doesn't distort the image's dimensions. Know everything makes completely sense too me!!!!!!&lt;br/&gt;&lt;br/&gt;And it works!&lt;br/&gt;&lt;br/&gt;Thanks and best,&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Julia</description><pubDate>Sat, 09 Feb 2019 04:26:41 GMT</pubDate><dc:creator>JuliaJuliaJulia</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26384.aspx</link><description>&lt;div data-id="26383" class="if-quote-wrapper" unselectable="on" data-guid="1549503763072"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26383" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26383" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26383" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26383"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;br/&gt;I'm sorry for being so silly but that still doesn't make sense to me. Let's take this code:&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.width = list.widths.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 80%&lt;br/&gt;/ width = 0%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;---------------------------------------------------------------------------------&lt;br/&gt;For &lt;strong&gt;both&lt;/strong&gt; items the hight is 80% of the screen right? And only the widths varies (80% for the first picture and 40% for the second picture)?&lt;a class="if-quote-goto quote-link" href="#" data-id="26383"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;gt; For &lt;strong&gt;both&lt;/strong&gt; items the hight is 80% of the screen right? And only the widths varies (80% for the first picture and 40% for the second picture)?&lt;br/&gt;&lt;br/&gt;Yes. The &lt;strong&gt;height &lt;/strong&gt;of the &amp;lt;picture&amp;gt; element is set to 80% here&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;&lt;strong&gt;/ height = 80%&lt;/strong&gt;&lt;br/&gt;/ width = 0%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;and nowhere is it changed. The &lt;strong&gt;width &lt;/strong&gt;is set on a trial-by-trial basis here&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.&lt;strong&gt;width &lt;/strong&gt;= list.&lt;strong&gt;widths&lt;/strong&gt;.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;and it is sampled from the &amp;lt;list&amp;gt; element. Which &lt;strong&gt;value&lt;/strong&gt;, i.e. &lt;strong&gt;width&lt;/strong&gt;, the list returns depends on the picture item the trial will display.&lt;br/&gt;&lt;br/&gt;Do keep in mind one thing: Inquisit will not, under any circumstances, distort the original image's dimensions. They will remain intact, i.e. Inquisit will not "stretch" an image just because you set an excessive width or height. I.e. suppose you have an image that is 400 pixels wide, and 300 pixels high, then -- not matter what you do, the 4:3 width/height ratio will always be preserved, even if you set the &amp;lt;picture&amp;gt; element's dimensions to something absurd like width = 5% &amp;amp; height = 90%.&lt;br/&gt;</description><pubDate>Wed, 06 Feb 2019 17:45:48 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26383.aspx</link><description>&lt;div data-id="26381" class="if-quote-wrapper" unselectable="on" data-guid="1549498813867"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26381" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26381" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26381" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26381"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26379" class="if-quote-wrapper" unselectable="on" data-guid="1549498813867"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26379" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26379" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26379" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26379"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26378" class="if-quote-wrapper" unselectable="on" data-guid="1549498813867"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26378" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26378" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26378" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26378"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26377" class="if-quote-wrapper" unselectable="on" data-guid="1549498813867"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26377" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26377" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26377" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26377"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26376" class="if-quote-wrapper" unselectable="on" data-guid="1549498813867"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26376" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26376" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26376" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26376"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26373" class="if-quote-wrapper" unselectable="on" data-guid="1549498813867"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26373" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26373" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26373" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26373"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26367" class="if-quote-wrapper" unselectable="on" data-guid="1549498813867"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26367" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26367" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26367" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, February 5, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26367"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;br/&gt;If you want the width to be fixed, but the height to vary, that works in the same way.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26367"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Ah, so I will create another list element, so that I have in sum two list elements: on for the width and one for the height.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I just have problems to understand this pice of code:&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture mypicture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = myitems&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ height = 80%&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ width = 0%&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ position = (50%, 50%)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;list widths&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = (80%, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;&lt;strong&gt;40%&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ selectionmode = picture.mypicture.nextindex&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;For the first item ("01.jpg"; so the horizontal image) the height is set to 80% and the width also to 80%. But that shouldn't be so: The width should be set to 80% and the hight should be allowed to vary... For the second item&amp;nbsp;("02.jpg"; so the horizontal image) the height is set to 80% and the width to 40%. That also shouldn't be so: The hight should be set to 80% and the width should be allowed to vary and shouldn't be fixed to 40%...&lt;br/&gt;&lt;br/&gt;Is there a possibility to do that?&lt;br/&gt;&lt;br/&gt;Best Julia&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26373"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Just flip what I illustrated for the &lt;strong&gt;width &lt;/strong&gt;in the example I posted around and do it with the &lt;strong&gt;height &lt;/strong&gt;instead. You don't need two lists, you need only one.&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.height = list.heights.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 0%&lt;br/&gt;/ width = 40%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list heights&amp;gt;&lt;br/&gt;/ items = (40%, 80%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;Run this, and you'll find that the width is now constant, while the height var&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26377"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Thanks for your code!&lt;br/&gt;I think your code only works because your image 1 is a square, but in my case image 1 looks like "The Annuciation.jpg" and image 2 like&amp;nbsp;"Eight_Famous_Sights_of_Omi.jpg". In your case image 1 is a square, so a hight of 40% and a width of 40% works...&lt;a class="if-quote-goto quote-link" href="#" data-id="26378"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, the second image cant be loaded, here is the link:&amp;nbsp;&lt;a href="https://upload.wikimedia.org/wikipedia/commons/2/2c/Eight_Famous_Sights_of_Omi_by_Imamura_Shiko_%28Tokyo_National_Museum%29.jpg"&gt;&lt;a href="https://upload.wikimedia.org/wikipedia/commons/2/2c/Eight_Famous_Sights_of_Omi_by_Imamura_Shiko_%28Tokyo_National_Museum%29.jpg"&gt;https://upload.wikimedia.org/wikipedia/commons/2/2c/Eight_Famous_Sights_of_Omi_by_Imamura_Shiko_%28Tokyo_National_Museum%29.jpg&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26379"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You should adjust the values in the list such that they suit *your* images.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26381"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;I'm sorry for being so silly but that still doesn't make sense to me. Let's take this code:&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.width = list.widths.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 80%&lt;br/&gt;/ width = 0%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;---------------------------------------------------------------------------------&lt;br/&gt;For &lt;strong&gt;both&lt;/strong&gt; items the hight is 80% of the screen right? And only the widths varies (80% for the first picture and 40% for the second picture)?</description><pubDate>Wed, 06 Feb 2019 16:22:25 GMT</pubDate><dc:creator>JuliaJuliaJulia</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26381.aspx</link><description>&lt;div data-id="26379" class="if-quote-wrapper" unselectable="on" data-guid="1549477725706"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26379" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26379" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26379" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26379"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26378" class="if-quote-wrapper" unselectable="on" data-guid="1549477725706"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26378" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26378" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26378" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26378"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26377" class="if-quote-wrapper" unselectable="on" data-guid="1549477725706"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26377" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26377" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26377" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26377"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26376" class="if-quote-wrapper" unselectable="on" data-guid="1549477725706"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26376" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26376" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26376" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26376"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26373" class="if-quote-wrapper" unselectable="on" data-guid="1549477725706"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26373" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26373" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26373" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26373"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26367" class="if-quote-wrapper" unselectable="on" data-guid="1549477725706"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26367" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26367" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26367" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, February 5, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26367"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;br/&gt;If you want the width to be fixed, but the height to vary, that works in the same way.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26367"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Ah, so I will create another list element, so that I have in sum two list elements: on for the width and one for the height.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I just have problems to understand this pice of code:&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture mypicture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = myitems&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ height = 80%&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ width = 0%&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ position = (50%, 50%)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;list widths&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = (80%, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;&lt;strong&gt;40%&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ selectionmode = picture.mypicture.nextindex&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;For the first item ("01.jpg"; so the horizontal image) the height is set to 80% and the width also to 80%. But that shouldn't be so: The width should be set to 80% and the hight should be allowed to vary... For the second item&amp;nbsp;("02.jpg"; so the horizontal image) the height is set to 80% and the width to 40%. That also shouldn't be so: The hight should be set to 80% and the width should be allowed to vary and shouldn't be fixed to 40%...&lt;br/&gt;&lt;br/&gt;Is there a possibility to do that?&lt;br/&gt;&lt;br/&gt;Best Julia&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26373"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Just flip what I illustrated for the &lt;strong&gt;width &lt;/strong&gt;in the example I posted around and do it with the &lt;strong&gt;height &lt;/strong&gt;instead. You don't need two lists, you need only one.&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.height = list.heights.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 0%&lt;br/&gt;/ width = 40%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list heights&amp;gt;&lt;br/&gt;/ items = (40%, 80%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;Run this, and you'll find that the width is now constant, while the height var&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26377"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Thanks for your code!&lt;br/&gt;I think your code only works because your image 1 is a square, but in my case image 1 looks like "The Annuciation.jpg" and image 2 like&amp;nbsp;"Eight_Famous_Sights_of_Omi.jpg". In your case image 1 is a square, so a hight of 40% and a width of 40% works...&lt;a class="if-quote-goto quote-link" href="#" data-id="26378"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, the second image cant be loaded, here is the link:&amp;nbsp;&lt;a href="https://upload.wikimedia.org/wikipedia/commons/2/2c/Eight_Famous_Sights_of_Omi_by_Imamura_Shiko_%28Tokyo_National_Museum%29.jpg"&gt;&lt;a href="https://upload.wikimedia.org/wikipedia/commons/2/2c/Eight_Famous_Sights_of_Omi_by_Imamura_Shiko_%28Tokyo_National_Museum%29.jpg"&gt;https://upload.wikimedia.org/wikipedia/commons/2/2c/Eight_Famous_Sights_of_Omi_by_Imamura_Shiko_%28Tokyo_National_Museum%29.jpg&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26379"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You should adjust the values in the list such that they suit *your* images.&lt;br/&gt;</description><pubDate>Wed, 06 Feb 2019 10:29:01 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26379.aspx</link><description>&lt;div data-id="26378" class="if-quote-wrapper" unselectable="on" data-guid="1549469467701"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26378" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26378" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26378" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26378"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26377" class="if-quote-wrapper" unselectable="on" data-guid="1549469467701"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26377" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26377" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26377" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26377"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26376" class="if-quote-wrapper" unselectable="on" data-guid="1549469467701"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26376" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26376" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26376" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26376"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26373" class="if-quote-wrapper" unselectable="on" data-guid="1549469467701"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26373" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26373" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26373" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26373"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26367" class="if-quote-wrapper" unselectable="on" data-guid="1549469467701"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26367" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26367" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26367" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, February 5, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26367"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;br/&gt;If you want the width to be fixed, but the height to vary, that works in the same way.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26367"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Ah, so I will create another list element, so that I have in sum two list elements: on for the width and one for the height.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I just have problems to understand this pice of code:&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture mypicture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = myitems&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ height = 80%&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ width = 0%&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ position = (50%, 50%)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;list widths&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = (80%, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;&lt;strong&gt;40%&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ selectionmode = picture.mypicture.nextindex&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;For the first item ("01.jpg"; so the horizontal image) the height is set to 80% and the width also to 80%. But that shouldn't be so: The width should be set to 80% and the hight should be allowed to vary... For the second item&amp;nbsp;("02.jpg"; so the horizontal image) the height is set to 80% and the width to 40%. That also shouldn't be so: The hight should be set to 80% and the width should be allowed to vary and shouldn't be fixed to 40%...&lt;br/&gt;&lt;br/&gt;Is there a possibility to do that?&lt;br/&gt;&lt;br/&gt;Best Julia&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26373"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Just flip what I illustrated for the &lt;strong&gt;width &lt;/strong&gt;in the example I posted around and do it with the &lt;strong&gt;height &lt;/strong&gt;instead. You don't need two lists, you need only one.&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.height = list.heights.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 0%&lt;br/&gt;/ width = 40%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list heights&amp;gt;&lt;br/&gt;/ items = (40%, 80%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;Run this, and you'll find that the width is now constant, while the height var&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26377"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Thanks for your code!&lt;br/&gt;I think your code only works because your image 1 is a square, but in my case image 1 looks like "The Annuciation.jpg" and image 2 like&amp;nbsp;"Eight_Famous_Sights_of_Omi.jpg". In your case image 1 is a square, so a hight of 40% and a width of 40% works...&lt;a class="if-quote-goto quote-link" href="#" data-id="26378"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, the second image cant be loaded, here is the link:&amp;nbsp;&lt;a href="https://upload.wikimedia.org/wikipedia/commons/2/2c/Eight_Famous_Sights_of_Omi_by_Imamura_Shiko_%28Tokyo_National_Museum%29.jpg"&gt;https://upload.wikimedia.org/wikipedia/commons/2/2c/Eight_Famous_Sights_of_Omi_by_Imamura_Shiko_%28Tokyo_National_Museum%29.jpg&lt;/a&gt;</description><pubDate>Wed, 06 Feb 2019 08:11:22 GMT</pubDate><dc:creator>JuliaJuliaJulia</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26378.aspx</link><description>&lt;div data-id="26377" class="if-quote-wrapper" unselectable="on" data-guid="1549469020036"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26377" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26377" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26377" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26377"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26376" class="if-quote-wrapper" unselectable="on" data-guid="1549469020036"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26376" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26376" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26376" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26376"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26373" class="if-quote-wrapper" unselectable="on" data-guid="1549469020036"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26373" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26373" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26373" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26373"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26367" class="if-quote-wrapper" unselectable="on" data-guid="1549469020036"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26367" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26367" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26367" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, February 5, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26367"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;br/&gt;If you want the width to be fixed, but the height to vary, that works in the same way.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26367"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Ah, so I will create another list element, so that I have in sum two list elements: on for the width and one for the height.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I just have problems to understand this pice of code:&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture mypicture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = myitems&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ height = 80%&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ width = 0%&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ position = (50%, 50%)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;list widths&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = (80%, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;&lt;strong&gt;40%&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ selectionmode = picture.mypicture.nextindex&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;For the first item ("01.jpg"; so the horizontal image) the height is set to 80% and the width also to 80%. But that shouldn't be so: The width should be set to 80% and the hight should be allowed to vary... For the second item&amp;nbsp;("02.jpg"; so the horizontal image) the height is set to 80% and the width to 40%. That also shouldn't be so: The hight should be set to 80% and the width should be allowed to vary and shouldn't be fixed to 40%...&lt;br/&gt;&lt;br/&gt;Is there a possibility to do that?&lt;br/&gt;&lt;br/&gt;Best Julia&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26373"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Just flip what I illustrated for the &lt;strong&gt;width &lt;/strong&gt;in the example I posted around and do it with the &lt;strong&gt;height &lt;/strong&gt;instead. You don't need two lists, you need only one.&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.height = list.heights.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 0%&lt;br/&gt;/ width = 40%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list heights&amp;gt;&lt;br/&gt;/ items = (40%, 80%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;Run this, and you'll find that the width is now constant, while the height var&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26377"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Thanks for your code!&lt;br/&gt;I think your code only works because your image 1 is a square, but in my case image 1 looks like "The Annuciation.jpg" and image 2 like&amp;nbsp;"Eight_Famous_Sights_of_Omi.jpg". In your case image 1 is a square, so a hight of 40% and a width of 40% works...</description><pubDate>Wed, 06 Feb 2019 08:09:37 GMT</pubDate><dc:creator>JuliaJuliaJulia</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26377.aspx</link><description>&lt;div data-id="26376" class="if-quote-wrapper" unselectable="on" data-guid="1549468590570"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26376" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26376" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26376" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26376"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26373" class="if-quote-wrapper" unselectable="on" data-guid="1549468590570"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26373" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26373" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26373" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26373"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26367" class="if-quote-wrapper" unselectable="on" data-guid="1549468590570"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26367" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26367" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26367" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, February 5, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26367"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;br/&gt;If you want the width to be fixed, but the height to vary, that works in the same way.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26367"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Ah, so I will create another list element, so that I have in sum two list elements: on for the width and one for the height.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I just have problems to understand this pice of code:&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture mypicture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = myitems&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ height = 80%&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ width = 0%&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ position = (50%, 50%)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;list widths&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = (80%, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;&lt;strong&gt;40%&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ selectionmode = picture.mypicture.nextindex&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;For the first item ("01.jpg"; so the horizontal image) the height is set to 80% and the width also to 80%. But that shouldn't be so: The width should be set to 80% and the hight should be allowed to vary... For the second item&amp;nbsp;("02.jpg"; so the horizontal image) the height is set to 80% and the width to 40%. That also shouldn't be so: The hight should be set to 80% and the width should be allowed to vary and shouldn't be fixed to 40%...&lt;br/&gt;&lt;br/&gt;Is there a possibility to do that?&lt;br/&gt;&lt;br/&gt;Best Julia&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26373"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Just flip what I illustrated for the &lt;strong&gt;width &lt;/strong&gt;in the example I posted around and do it with the &lt;strong&gt;height &lt;/strong&gt;instead. You don't need two lists, you need only one.&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.height = list.heights.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 0%&lt;br/&gt;/ width = 40%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list heights&amp;gt;&lt;br/&gt;/ items = (40%, 80%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;Run this, and you'll find that the width is now constant, while the height var&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><pubDate>Wed, 06 Feb 2019 08:03:23 GMT</pubDate><dc:creator>JuliaJuliaJulia</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26376.aspx</link><description>&lt;div data-id="26373" class="if-quote-wrapper" unselectable="on" data-guid="1549465772814"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26373" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26373" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26373" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Wednesday, February 6, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26373"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26367" class="if-quote-wrapper" unselectable="on" data-guid="1549465772814"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26367" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26367" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26367" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, February 5, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26367"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;br/&gt;If you want the width to be fixed, but the height to vary, that works in the same way.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26367"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Ah, so I will create another list element, so that I have in sum two list elements: on for the width and one for the height.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I just have problems to understand this pice of code:&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture mypicture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = myitems&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ height = 80%&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ width = 0%&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ position = (50%, 50%)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;list widths&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = (80%, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;&lt;strong&gt;40%&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ selectionmode = picture.mypicture.nextindex&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;For the first item ("01.jpg"; so the horizontal image) the height is set to 80% and the width also to 80%. But that shouldn't be so: The width should be set to 80% and the hight should be allowed to vary... For the second item&amp;nbsp;("02.jpg"; so the horizontal image) the height is set to 80% and the width to 40%. That also shouldn't be so: The hight should be set to 80% and the width should be allowed to vary and shouldn't be fixed to 40%...&lt;br/&gt;&lt;br/&gt;Is there a possibility to do that?&lt;br/&gt;&lt;br/&gt;Best Julia&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26373"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Just flip what I illustrated for the &lt;strong&gt;width &lt;/strong&gt;in the example I posted around and do it with the &lt;strong&gt;height &lt;/strong&gt;instead. You don't need two lists, you need only one.&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.height = list.heights.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 0%&lt;br/&gt;/ width = 40%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list heights&amp;gt;&lt;br/&gt;/ items = (40%, 80%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;Run this, and you'll find that the width is now constant, while the height varies.&lt;br/&gt;</description><pubDate>Wed, 06 Feb 2019 07:14:28 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26373.aspx</link><description>&lt;div data-id="26367" class="if-quote-wrapper" unselectable="on" data-guid="1549448311400"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26367" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26367" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26367" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, February 5, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26367"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26366" class="if-quote-wrapper" unselectable="on" data-guid="1549448311400"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26366" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26366" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26366" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Tuesday, February 5, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26366"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26365" class="if-quote-wrapper" unselectable="on" data-guid="1549448311400"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26365" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26365" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26365" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Tuesday, February 5, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26365"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26361" class="if-quote-wrapper" unselectable="on" data-guid="1549448311400"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26361" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26361" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26361" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26361"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26359" class="if-quote-wrapper" unselectable="on" data-guid="1549448311400"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26359" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26359" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26359" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26359"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26358" class="if-quote-wrapper" unselectable="on" data-guid="1549448311400"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26358" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26358" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26358" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26358"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26357" class="if-quote-wrapper" unselectable="on" data-guid="1549448311400"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26357" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26357" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26357" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26357"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26355" class="if-quote-wrapper" unselectable="on" data-guid="1549448311400"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26355" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26355" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26355" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26355"&gt;&lt;div class="if-quote-message-margin"&gt;Hey there!&lt;br/&gt;&lt;br/&gt;For my study I need to present images on a screen. Unfortunately, I don't know the exact size. The picture I want to present also have different sizes. Some of them have a vertical format, others a horizontal. I want to present them in the following way: All pictures should have the same hight (80 % of screen hight), the picture ratio should stay the same. So the picture shouldn't be cut. Furthermore, the picture should be presented in the middle of the screen.&lt;br/&gt;&lt;br/&gt;I tried already tried it with the following code:&lt;br/&gt;&amp;lt;picture japanese&amp;gt;&lt;br/&gt;/items = japanese&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/height = 80%&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;but that doesn't really work...&lt;br/&gt;Has anybody an idea?&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;&lt;br/&gt;Julia&lt;a class="if-quote-goto quote-link" href="#" data-id="26355"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey there,&lt;br/&gt;just an additional question: Is it possible, to set the width only for horizontal pictures to 80% and make here the height flexible. For vertical pictures the height should than be 80% and the width flexible. I just don't have a clue how to do that...&lt;a class="if-quote-goto quote-link" href="#" data-id="26357"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;The only thing you can do is encode the height you need for each individual image item in a &amp;lt;list&amp;gt; and then set the &amp;lt;picture&amp;gt; element to that width dynamically. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.width = list.widths.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 80%&lt;br/&gt;/ width = 0%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26358"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey Dave, thanks a lot for your answer. I think, I don't really get what you are doing in your code.&lt;br/&gt;Especially this peace of code:&amp;nbsp;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;What are you doing here and where are the 40% from?&lt;br/&gt;How does Inquisit know which picture is vertical, which horizontal and when to set the hight to 80% (for vertical pictures) and when to set the width to 80% (for horizontal pictures).&lt;br/&gt;&lt;br/&gt;Thanks for your help!!!!!&lt;br/&gt;&lt;br/&gt;Julia&lt;a class="if-quote-goto quote-link" href="#" data-id="26359"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;&lt;strong&gt;/ selectionmode = picture.mypicture.nextindex&lt;/strong&gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;The &amp;lt;list&amp;gt; is tied to the &amp;lt;picture&amp;gt; element. The 1st item in the list -- 80% -- indicates the width for the 1st item in the &amp;lt;picture&amp;gt; element, 01.jpg. The 2nd item in the &amp;lt;list&amp;gt; indicates the width for the &amp;lt;picture&amp;gt; element's 2nd item -- 02.jpg. In essence, this is the same as &lt;a href="https://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm"&gt;https://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26361"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Great, thanks, I think I have got it. :)&lt;br/&gt;But then the height of both pictures is 80%, isn't it? I only want it to be 80% for vertical images.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(33, 33, 33); font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Web (West European)&amp;quot;, &amp;quot;Segoe UI&amp;quot;, -apple-system, system-ui, Roboto, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 14.6667px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Maybe I will try it differently: I want to fix only the longest dimension&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(33, 33, 33); font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Web (West European)&amp;quot;, &amp;quot;Segoe UI&amp;quot;, -apple-system, system-ui, Roboto, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 14.6667px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;of every painting at a standard size (say 1000 pixels), the other dimension should be set to default (so that the proportions of the image don't change)...&lt;br/&gt;&lt;br/&gt;Thanks and sorry for asking so much!&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Julia&lt;/span&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26365"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;If it helps, here is my code :)&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;  Stimulus Items&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item resonant_masterpieces&amp;gt;&lt;br/&gt;/1 = "Campbell_soup_can.jpg"&lt;br/&gt;/2 = "Der_Wanderer_uÌber_dem_Nebelmeer.jpg"&lt;br/&gt;/3 = "FuÌnfzehn_Sonnenblumen.jpg"&lt;br/&gt;/4 = "The_Birth_of_Venus.jpg"&lt;br/&gt;/5 = "The_creation_of_Adam.jpg"&lt;br/&gt;/6 = "The_Kiss.jpg"&lt;br/&gt;/7 = "The_Persistence_of_Memory.jpg"&lt;br/&gt;/8 = "The_Scream.jpg"&lt;br/&gt;/9 = "The_starry_night.jpg"&lt;br/&gt;/10 = "The_Water_Lily_Pond.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item nonresonant_masterpieces&amp;gt;&lt;br/&gt;/1 = "Armored_Train.jpg"&lt;br/&gt;/2 = "Bacchus_and_Ariadne.jpg"&lt;br/&gt;/3 = "Ballet_Rehearsal.jpg"&lt;br/&gt;/4 = "Bonjour_Monsieur_Courbet.jpg"&lt;br/&gt;/5 = "Boulevard_des_Italiens_Morning_Sunlight.jpg"&lt;br/&gt;/6 = "Boy_Bitten_by_a_Lizard.jpg"&lt;br/&gt;/7 = "Chalk_Cliffs_on_RuÌgen.jpg"&lt;br/&gt;/8 = "Cornelia_Presenting_Her_Children_as_Her_Treasure.jpg"&lt;br/&gt;/9 = "Cut_with_the_Kitchen_Knife.jpg"&lt;br/&gt;/10 = "Dido_building_Carthage.jpg"&lt;br/&gt;/11 = "Interieur_au_violon.jpg"&lt;br/&gt;/12 = "La_Montagne_Saint_Victoire_Barnes.jpg"&lt;br/&gt;/13 = "Laokoon.jpg"&lt;br/&gt;/14 = "Les_Glaneuses.jpg"&lt;br/&gt;/15 = "Les_Majas_at_the_balcony.jpg"&lt;br/&gt;/16 = "Oath_of_the_Horatii.jpg"&lt;br/&gt;/17 = "pier-and-ocean.jpg"&lt;br/&gt;/18 = "Quince_Cabbage_Melon_and_Cucumber.jpg"&lt;br/&gt;/19 = "Raft_of_the_Medusa.jpg"&lt;br/&gt;/20 = "Raphael_Galatea.jpg"&lt;br/&gt;/21 = "Self-Portrait_with_Vanitas_Symbols.jpg"&lt;br/&gt;/22 = "Suprematist_Composition.jpg"&lt;br/&gt;/23 = "Swing-Renoir.jpeg"&lt;br/&gt;/24 = "The_Annunciation.jpg"&lt;br/&gt;/25 = "The_Banquet_of_Cleopatra.jpg"&lt;br/&gt;/26 = "The_Coronation_of_Napoleon.jpeg"&lt;br/&gt;/27 = "The_Daughters_of_Edward_Darley_Boit.jpg"&lt;br/&gt;/28 = "The_Embarakation_for_Cythera.jpg"&lt;br/&gt;/29 = "The_Hay_Wain.jpg"&lt;br/&gt;/30 = "The_Thankful_Poor.jpg"&lt;br/&gt;/31 = "The_Third_Class_Carriage.jpg"&lt;br/&gt;/32 = "The_Valpincon_Bather.jpg"&lt;br/&gt;/33 = "Three_Philosophers.jpg"&lt;br/&gt;/34 = "View_from_Mount_Holyoke.jpg"&lt;br/&gt;/35 = "Vision_after_the_Sermon.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item japanese&amp;gt;&lt;br/&gt;/1 = "8_Famous_Sights_of_Xiao_&amp;amp;_Xiang_Rivers.jpg"&lt;br/&gt;/2 = "Actor_Ichikawa_Danjuro.jpg"&lt;br/&gt;/3 = "Autumn_and_Winter_Landscapes.jpg"&lt;br/&gt;/4 = "Cypress_Trees.jpg"&lt;br/&gt;/5 = "Eight_Famous_Sights_of_Omi.jpg"&lt;br/&gt;/6 = "Hawk_on_a_pine_tree.jpg"&lt;br/&gt;/7 = "Maiko.jpg"&lt;br/&gt;/8 = "Merrymaking_Under_the_Cherry_Blossoms_-_Google_Art_Project.jpg"&lt;br/&gt;/9 = "Morning_view_of_the_Uji_River.jpg"&lt;br/&gt;/10 = "Narrow_ivy_road.jpg"&lt;br/&gt;/11 = "Popular_Geisha_at_the_Pleasure_Quarters.jpg"&lt;br/&gt;/12 = "Portrait_of_Ashikaga_Yoshimasa.jpg"&lt;br/&gt;/13 = "Spring_Ridge.jpg"&lt;br/&gt;/14 = "Sundial_of_Young_Women.jpg"&lt;br/&gt;/15 = "Yoroboshi.jpg"&lt;br/&gt;/16 = "Zhou_Maoshu_Appreciating_Lotuses.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixationCross&amp;gt;&lt;br/&gt;/ items = ("+")&lt;br/&gt;/ fontstyle = ("Arial", 300px)&lt;br/&gt;/ color = (0, 0, 0)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture resMas&amp;gt;&lt;br/&gt;/items = resonant_masterpieces&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/size = (90%, 90%)&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture nonresMas&amp;gt;&lt;br/&gt;/items = nonresonant_masterpieces&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/size = (90%, 90%)&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture japanese&amp;gt;&lt;br/&gt;/items = japanese&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/size = (90%, 90%)&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ratingquestionLiking&amp;gt;&lt;br/&gt;/ caption="Wie gefÃ¤llt Ihnen das Kunstwerk?"&lt;br/&gt;/ options=("Sehr gut", "Gut", "Durchschnittlich", "Weniger", "Gar nicht")&lt;br/&gt;/ optionvalues = ("1", "2", "3", "4", "5")&lt;br/&gt;/ required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ratingquestionUnderstanding&amp;gt;&lt;br/&gt;/ caption="Wie gut verstehen Sie das Kunstwerk?"&lt;br/&gt;/ options=("Sehr gut", "Gut", "Durchschnittlich", "Weniger", "Gar nicht")&lt;br/&gt;/ optionvalues = ("1", "2", "3", "4", "5")&lt;br/&gt;/ required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ratingquestionWTP&amp;gt;&lt;br/&gt;/ caption="Wie groÃ ist Ihre Bereitschaft Geld dafÃ¼r zu zahlen, dieses Kunstwerk im Museum zu sehen?"&lt;br/&gt;/ options=("Sehr hoch", "Hoch", "Durschnittlich hoch", "Weniger hoch", "Gar nicht hoch")&lt;br/&gt;/ optionvalues = ("1", "2", "3", "4", "5")&lt;br/&gt;/ required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons questionPaintingFamilarity&amp;gt;&lt;br/&gt;/ caption="Wie stark sind Sie mit dem Kunstwerk vertraut?"&lt;br/&gt;/ options=("Sehr hoch", "Hoch", "Durschnittlich hoch", "Weniger hoch", "Gar nicht hoch")&lt;br/&gt;/ optionvalues = ("1", "2", "3", "4", "5")&lt;br/&gt;/ required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial resMas&amp;gt;&lt;br/&gt;/ stimulustimes = [0=fixationCross; 2000=resMas]&lt;br/&gt;/branch = [surveypage.ratingPage]&lt;br/&gt;/timeout = 10000&lt;br/&gt;/ pretrialpause=3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial nonresMas&amp;gt;&lt;br/&gt;/ stimulustimes = [0=fixationCross; 2000=nonresMas]&lt;br/&gt;/branch = [surveypage.ratingPage]&lt;br/&gt;/timeout = 10000&lt;br/&gt;/ pretrialpause=3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial japanese&amp;gt;&lt;br/&gt;/ stimulustimes=[0=fixationCross; 2000=japanese]&lt;br/&gt;/branch = [surveypage.ratingPage]&lt;br/&gt;/timeout = 10000&lt;br/&gt;/ pretrialpause=3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage ratingPage&amp;gt;&lt;br/&gt;/caption = "Please answer the following items to the best of your ability"&lt;br/&gt;/ fontstyle = ("Verdana", -12, true, false, false, false, 5, 0)&lt;br/&gt;/questions=[1=ratingquestionLiking; 2=ratingquestionUnderstanding; 3=ratingquestionWTP; 4=questionPaintingFamilarity]&lt;br/&gt;/finishlabel="Weiter"&lt;br/&gt;/caption = "Bitte beantworten Sie folgende Fragen Ã¼ber das zuletzt gezeigte Bild:"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block EXP&amp;gt;&lt;br/&gt;/trials = [1-61 = noreplace(resMas, resMas, resMas, resMas, resMas, resMas, resMas, resMas, resMas, resMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/blocks = [1 = EXP]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26366"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;If you want the width to be fixed, but the height to vary, that works in the same way.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26367"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Ah, so I will create another list element, so that I have in sum two list elements: on for the width and one for the height.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I just have problems to understand this pice of code:&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture mypicture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = myitems&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ height = 80%&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ width = 0%&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ position = (50%, 50%)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;list widths&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = (80%, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;&lt;strong&gt;40%&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ selectionmode = picture.mypicture.nextindex&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;For the first item ("01.jpg"; so the horizontal image) the height is set to 80% and the width also to 80%. But that shouldn't be so: The width should be set to 80% and the hight should be allowed to vary... For the second item&amp;nbsp;("02.jpg"; so the horizontal image) the height is set to 80% and the width to 40%. That also shouldn't be so: The hight should be set to 80% and the width should be allowed to vary and shouldn't be fixed to 40%...&lt;br/&gt;&lt;br/&gt;Is there a possibility to do that?&lt;br/&gt;&lt;br/&gt;Best Julia&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 06 Feb 2019 02:39:56 GMT</pubDate><dc:creator>JuliaJuliaJulia</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26367.aspx</link><description>&lt;div data-id="26366" class="if-quote-wrapper" unselectable="on" data-guid="1549378505785"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26366" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26366" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26366" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Tuesday, February 5, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26366"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26365" class="if-quote-wrapper" unselectable="on" data-guid="1549378505785"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26365" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26365" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26365" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Tuesday, February 5, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26365"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26361" class="if-quote-wrapper" unselectable="on" data-guid="1549378505785"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26361" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26361" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26361" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26361"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26359" class="if-quote-wrapper" unselectable="on" data-guid="1549378505785"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26359" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26359" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26359" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26359"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26358" class="if-quote-wrapper" unselectable="on" data-guid="1549378505785"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26358" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26358" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26358" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26358"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26357" class="if-quote-wrapper" unselectable="on" data-guid="1549378505785"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26357" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26357" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26357" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26357"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26355" class="if-quote-wrapper" unselectable="on" data-guid="1549378505785"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26355" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26355" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26355" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26355"&gt;&lt;div class="if-quote-message-margin"&gt;Hey there!&lt;br/&gt;&lt;br/&gt;For my study I need to present images on a screen. Unfortunately, I don't know the exact size. The picture I want to present also have different sizes. Some of them have a vertical format, others a horizontal. I want to present them in the following way: All pictures should have the same hight (80 % of screen hight), the picture ratio should stay the same. So the picture shouldn't be cut. Furthermore, the picture should be presented in the middle of the screen.&lt;br/&gt;&lt;br/&gt;I tried already tried it with the following code:&lt;br/&gt;&amp;lt;picture japanese&amp;gt;&lt;br/&gt;/items = japanese&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/height = 80%&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;but that doesn't really work...&lt;br/&gt;Has anybody an idea?&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;&lt;br/&gt;Julia&lt;a class="if-quote-goto quote-link" href="#" data-id="26355"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey there,&lt;br/&gt;just an additional question: Is it possible, to set the width only for horizontal pictures to 80% and make here the height flexible. For vertical pictures the height should than be 80% and the width flexible. I just don't have a clue how to do that...&lt;a class="if-quote-goto quote-link" href="#" data-id="26357"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;The only thing you can do is encode the height you need for each individual image item in a &amp;lt;list&amp;gt; and then set the &amp;lt;picture&amp;gt; element to that width dynamically. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.width = list.widths.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 80%&lt;br/&gt;/ width = 0%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26358"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey Dave, thanks a lot for your answer. I think, I don't really get what you are doing in your code.&lt;br/&gt;Especially this peace of code:&amp;nbsp;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;What are you doing here and where are the 40% from?&lt;br/&gt;How does Inquisit know which picture is vertical, which horizontal and when to set the hight to 80% (for vertical pictures) and when to set the width to 80% (for horizontal pictures).&lt;br/&gt;&lt;br/&gt;Thanks for your help!!!!!&lt;br/&gt;&lt;br/&gt;Julia&lt;a class="if-quote-goto quote-link" href="#" data-id="26359"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;&lt;strong&gt;/ selectionmode = picture.mypicture.nextindex&lt;/strong&gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;The &amp;lt;list&amp;gt; is tied to the &amp;lt;picture&amp;gt; element. The 1st item in the list -- 80% -- indicates the width for the 1st item in the &amp;lt;picture&amp;gt; element, 01.jpg. The 2nd item in the &amp;lt;list&amp;gt; indicates the width for the &amp;lt;picture&amp;gt; element's 2nd item -- 02.jpg. In essence, this is the same as &lt;a href="https://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm"&gt;https://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26361"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Great, thanks, I think I have got it. :)&lt;br/&gt;But then the height of both pictures is 80%, isn't it? I only want it to be 80% for vertical images.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(33, 33, 33); font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Web (West European)&amp;quot;, &amp;quot;Segoe UI&amp;quot;, -apple-system, system-ui, Roboto, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 14.6667px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Maybe I will try it differently: I want to fix only the longest dimension&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(33, 33, 33); font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Web (West European)&amp;quot;, &amp;quot;Segoe UI&amp;quot;, -apple-system, system-ui, Roboto, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 14.6667px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;of every painting at a standard size (say 1000 pixels), the other dimension should be set to default (so that the proportions of the image don't change)...&lt;br/&gt;&lt;br/&gt;Thanks and sorry for asking so much!&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Julia&lt;/span&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26365"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;If it helps, here is my code :)&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;  Stimulus Items&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item resonant_masterpieces&amp;gt;&lt;br/&gt;/1 = "Campbell_soup_can.jpg"&lt;br/&gt;/2 = "Der_Wanderer_uÌber_dem_Nebelmeer.jpg"&lt;br/&gt;/3 = "FuÌnfzehn_Sonnenblumen.jpg"&lt;br/&gt;/4 = "The_Birth_of_Venus.jpg"&lt;br/&gt;/5 = "The_creation_of_Adam.jpg"&lt;br/&gt;/6 = "The_Kiss.jpg"&lt;br/&gt;/7 = "The_Persistence_of_Memory.jpg"&lt;br/&gt;/8 = "The_Scream.jpg"&lt;br/&gt;/9 = "The_starry_night.jpg"&lt;br/&gt;/10 = "The_Water_Lily_Pond.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item nonresonant_masterpieces&amp;gt;&lt;br/&gt;/1 = "Armored_Train.jpg"&lt;br/&gt;/2 = "Bacchus_and_Ariadne.jpg"&lt;br/&gt;/3 = "Ballet_Rehearsal.jpg"&lt;br/&gt;/4 = "Bonjour_Monsieur_Courbet.jpg"&lt;br/&gt;/5 = "Boulevard_des_Italiens_Morning_Sunlight.jpg"&lt;br/&gt;/6 = "Boy_Bitten_by_a_Lizard.jpg"&lt;br/&gt;/7 = "Chalk_Cliffs_on_RuÌgen.jpg"&lt;br/&gt;/8 = "Cornelia_Presenting_Her_Children_as_Her_Treasure.jpg"&lt;br/&gt;/9 = "Cut_with_the_Kitchen_Knife.jpg"&lt;br/&gt;/10 = "Dido_building_Carthage.jpg"&lt;br/&gt;/11 = "Interieur_au_violon.jpg"&lt;br/&gt;/12 = "La_Montagne_Saint_Victoire_Barnes.jpg"&lt;br/&gt;/13 = "Laokoon.jpg"&lt;br/&gt;/14 = "Les_Glaneuses.jpg"&lt;br/&gt;/15 = "Les_Majas_at_the_balcony.jpg"&lt;br/&gt;/16 = "Oath_of_the_Horatii.jpg"&lt;br/&gt;/17 = "pier-and-ocean.jpg"&lt;br/&gt;/18 = "Quince_Cabbage_Melon_and_Cucumber.jpg"&lt;br/&gt;/19 = "Raft_of_the_Medusa.jpg"&lt;br/&gt;/20 = "Raphael_Galatea.jpg"&lt;br/&gt;/21 = "Self-Portrait_with_Vanitas_Symbols.jpg"&lt;br/&gt;/22 = "Suprematist_Composition.jpg"&lt;br/&gt;/23 = "Swing-Renoir.jpeg"&lt;br/&gt;/24 = "The_Annunciation.jpg"&lt;br/&gt;/25 = "The_Banquet_of_Cleopatra.jpg"&lt;br/&gt;/26 = "The_Coronation_of_Napoleon.jpeg"&lt;br/&gt;/27 = "The_Daughters_of_Edward_Darley_Boit.jpg"&lt;br/&gt;/28 = "The_Embarakation_for_Cythera.jpg"&lt;br/&gt;/29 = "The_Hay_Wain.jpg"&lt;br/&gt;/30 = "The_Thankful_Poor.jpg"&lt;br/&gt;/31 = "The_Third_Class_Carriage.jpg"&lt;br/&gt;/32 = "The_Valpincon_Bather.jpg"&lt;br/&gt;/33 = "Three_Philosophers.jpg"&lt;br/&gt;/34 = "View_from_Mount_Holyoke.jpg"&lt;br/&gt;/35 = "Vision_after_the_Sermon.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item japanese&amp;gt;&lt;br/&gt;/1 = "8_Famous_Sights_of_Xiao_&amp;amp;_Xiang_Rivers.jpg"&lt;br/&gt;/2 = "Actor_Ichikawa_Danjuro.jpg"&lt;br/&gt;/3 = "Autumn_and_Winter_Landscapes.jpg"&lt;br/&gt;/4 = "Cypress_Trees.jpg"&lt;br/&gt;/5 = "Eight_Famous_Sights_of_Omi.jpg"&lt;br/&gt;/6 = "Hawk_on_a_pine_tree.jpg"&lt;br/&gt;/7 = "Maiko.jpg"&lt;br/&gt;/8 = "Merrymaking_Under_the_Cherry_Blossoms_-_Google_Art_Project.jpg"&lt;br/&gt;/9 = "Morning_view_of_the_Uji_River.jpg"&lt;br/&gt;/10 = "Narrow_ivy_road.jpg"&lt;br/&gt;/11 = "Popular_Geisha_at_the_Pleasure_Quarters.jpg"&lt;br/&gt;/12 = "Portrait_of_Ashikaga_Yoshimasa.jpg"&lt;br/&gt;/13 = "Spring_Ridge.jpg"&lt;br/&gt;/14 = "Sundial_of_Young_Women.jpg"&lt;br/&gt;/15 = "Yoroboshi.jpg"&lt;br/&gt;/16 = "Zhou_Maoshu_Appreciating_Lotuses.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixationCross&amp;gt;&lt;br/&gt;/ items = ("+")&lt;br/&gt;/ fontstyle = ("Arial", 300px)&lt;br/&gt;/ color = (0, 0, 0)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture resMas&amp;gt;&lt;br/&gt;/items = resonant_masterpieces&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/size = (90%, 90%)&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture nonresMas&amp;gt;&lt;br/&gt;/items = nonresonant_masterpieces&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/size = (90%, 90%)&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture japanese&amp;gt;&lt;br/&gt;/items = japanese&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/size = (90%, 90%)&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ratingquestionLiking&amp;gt;&lt;br/&gt;/ caption="Wie gefÃ¤llt Ihnen das Kunstwerk?"&lt;br/&gt;/ options=("Sehr gut", "Gut", "Durchschnittlich", "Weniger", "Gar nicht")&lt;br/&gt;/ optionvalues = ("1", "2", "3", "4", "5")&lt;br/&gt;/ required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ratingquestionUnderstanding&amp;gt;&lt;br/&gt;/ caption="Wie gut verstehen Sie das Kunstwerk?"&lt;br/&gt;/ options=("Sehr gut", "Gut", "Durchschnittlich", "Weniger", "Gar nicht")&lt;br/&gt;/ optionvalues = ("1", "2", "3", "4", "5")&lt;br/&gt;/ required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ratingquestionWTP&amp;gt;&lt;br/&gt;/ caption="Wie groÃ ist Ihre Bereitschaft Geld dafÃ¼r zu zahlen, dieses Kunstwerk im Museum zu sehen?"&lt;br/&gt;/ options=("Sehr hoch", "Hoch", "Durschnittlich hoch", "Weniger hoch", "Gar nicht hoch")&lt;br/&gt;/ optionvalues = ("1", "2", "3", "4", "5")&lt;br/&gt;/ required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons questionPaintingFamilarity&amp;gt;&lt;br/&gt;/ caption="Wie stark sind Sie mit dem Kunstwerk vertraut?"&lt;br/&gt;/ options=("Sehr hoch", "Hoch", "Durschnittlich hoch", "Weniger hoch", "Gar nicht hoch")&lt;br/&gt;/ optionvalues = ("1", "2", "3", "4", "5")&lt;br/&gt;/ required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial resMas&amp;gt;&lt;br/&gt;/ stimulustimes = [0=fixationCross; 2000=resMas]&lt;br/&gt;/branch = [surveypage.ratingPage]&lt;br/&gt;/timeout = 10000&lt;br/&gt;/ pretrialpause=3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial nonresMas&amp;gt;&lt;br/&gt;/ stimulustimes = [0=fixationCross; 2000=nonresMas]&lt;br/&gt;/branch = [surveypage.ratingPage]&lt;br/&gt;/timeout = 10000&lt;br/&gt;/ pretrialpause=3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial japanese&amp;gt;&lt;br/&gt;/ stimulustimes=[0=fixationCross; 2000=japanese]&lt;br/&gt;/branch = [surveypage.ratingPage]&lt;br/&gt;/timeout = 10000&lt;br/&gt;/ pretrialpause=3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage ratingPage&amp;gt;&lt;br/&gt;/caption = "Please answer the following items to the best of your ability"&lt;br/&gt;/ fontstyle = ("Verdana", -12, true, false, false, false, 5, 0)&lt;br/&gt;/questions=[1=ratingquestionLiking; 2=ratingquestionUnderstanding; 3=ratingquestionWTP; 4=questionPaintingFamilarity]&lt;br/&gt;/finishlabel="Weiter"&lt;br/&gt;/caption = "Bitte beantworten Sie folgende Fragen Ã¼ber das zuletzt gezeigte Bild:"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block EXP&amp;gt;&lt;br/&gt;/trials = [1-61 = noreplace(resMas, resMas, resMas, resMas, resMas, resMas, resMas, resMas, resMas, resMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/blocks = [1 = EXP]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26366"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;If you want the width to be fixed, but the height to vary, that works in the same way.&lt;br/&gt;</description><pubDate>Tue, 05 Feb 2019 06:55:37 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26366.aspx</link><description>&lt;div data-id="26365" class="if-quote-wrapper" unselectable="on" data-guid="1549374471106"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26365" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26365" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26365" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Tuesday, February 5, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26365"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26361" class="if-quote-wrapper" unselectable="on" data-guid="1549374471106"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26361" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26361" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26361" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26361"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26359" class="if-quote-wrapper" unselectable="on" data-guid="1549374471106"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26359" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26359" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26359" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26359"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26358" class="if-quote-wrapper" unselectable="on" data-guid="1549374471106"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26358" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26358" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26358" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26358"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26357" class="if-quote-wrapper" unselectable="on" data-guid="1549374471106"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26357" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26357" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26357" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26357"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26355" class="if-quote-wrapper" unselectable="on" data-guid="1549374471106"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26355" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26355" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26355" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26355"&gt;&lt;div class="if-quote-message-margin"&gt;Hey there!&lt;br/&gt;&lt;br/&gt;For my study I need to present images on a screen. Unfortunately, I don't know the exact size. The picture I want to present also have different sizes. Some of them have a vertical format, others a horizontal. I want to present them in the following way: All pictures should have the same hight (80 % of screen hight), the picture ratio should stay the same. So the picture shouldn't be cut. Furthermore, the picture should be presented in the middle of the screen.&lt;br/&gt;&lt;br/&gt;I tried already tried it with the following code:&lt;br/&gt;&amp;lt;picture japanese&amp;gt;&lt;br/&gt;/items = japanese&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/height = 80%&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;but that doesn't really work...&lt;br/&gt;Has anybody an idea?&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;&lt;br/&gt;Julia&lt;a class="if-quote-goto quote-link" href="#" data-id="26355"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey there,&lt;br/&gt;just an additional question: Is it possible, to set the width only for horizontal pictures to 80% and make here the height flexible. For vertical pictures the height should than be 80% and the width flexible. I just don't have a clue how to do that...&lt;a class="if-quote-goto quote-link" href="#" data-id="26357"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;The only thing you can do is encode the height you need for each individual image item in a &amp;lt;list&amp;gt; and then set the &amp;lt;picture&amp;gt; element to that width dynamically. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.width = list.widths.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 80%&lt;br/&gt;/ width = 0%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26358"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey Dave, thanks a lot for your answer. I think, I don't really get what you are doing in your code.&lt;br/&gt;Especially this peace of code:&amp;nbsp;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;What are you doing here and where are the 40% from?&lt;br/&gt;How does Inquisit know which picture is vertical, which horizontal and when to set the hight to 80% (for vertical pictures) and when to set the width to 80% (for horizontal pictures).&lt;br/&gt;&lt;br/&gt;Thanks for your help!!!!!&lt;br/&gt;&lt;br/&gt;Julia&lt;a class="if-quote-goto quote-link" href="#" data-id="26359"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;&lt;strong&gt;/ selectionmode = picture.mypicture.nextindex&lt;/strong&gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;The &amp;lt;list&amp;gt; is tied to the &amp;lt;picture&amp;gt; element. The 1st item in the list -- 80% -- indicates the width for the 1st item in the &amp;lt;picture&amp;gt; element, 01.jpg. The 2nd item in the &amp;lt;list&amp;gt; indicates the width for the &amp;lt;picture&amp;gt; element's 2nd item -- 02.jpg. In essence, this is the same as &lt;a href="https://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm"&gt;https://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26361"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Great, thanks, I think I have got it. :)&lt;br/&gt;But then the height of both pictures is 80%, isn't it? I only want it to be 80% for vertical images.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(33, 33, 33); font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Web (West European)&amp;quot;, &amp;quot;Segoe UI&amp;quot;, -apple-system, system-ui, Roboto, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 14.6667px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Maybe I will try it differently: I want to fix only the longest dimension&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(33, 33, 33); font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Web (West European)&amp;quot;, &amp;quot;Segoe UI&amp;quot;, -apple-system, system-ui, Roboto, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 14.6667px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;of every painting at a standard size (say 1000 pixels), the other dimension should be set to default (so that the proportions of the image don't change)...&lt;br/&gt;&lt;br/&gt;Thanks and sorry for asking so much!&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Julia&lt;/span&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26365"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;If it helps, here is my code :)&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;  Stimulus Items&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item resonant_masterpieces&amp;gt;&lt;br/&gt;/1 = "Campbell_soup_can.jpg"&lt;br/&gt;/2 = "Der_Wanderer_uÌber_dem_Nebelmeer.jpg"&lt;br/&gt;/3 = "FuÌnfzehn_Sonnenblumen.jpg"&lt;br/&gt;/4 = "The_Birth_of_Venus.jpg"&lt;br/&gt;/5 = "The_creation_of_Adam.jpg"&lt;br/&gt;/6 = "The_Kiss.jpg"&lt;br/&gt;/7 = "The_Persistence_of_Memory.jpg"&lt;br/&gt;/8 = "The_Scream.jpg"&lt;br/&gt;/9 = "The_starry_night.jpg"&lt;br/&gt;/10 = "The_Water_Lily_Pond.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item nonresonant_masterpieces&amp;gt;&lt;br/&gt;/1 = "Armored_Train.jpg"&lt;br/&gt;/2 = "Bacchus_and_Ariadne.jpg"&lt;br/&gt;/3 = "Ballet_Rehearsal.jpg"&lt;br/&gt;/4 = "Bonjour_Monsieur_Courbet.jpg"&lt;br/&gt;/5 = "Boulevard_des_Italiens_Morning_Sunlight.jpg"&lt;br/&gt;/6 = "Boy_Bitten_by_a_Lizard.jpg"&lt;br/&gt;/7 = "Chalk_Cliffs_on_RuÌgen.jpg"&lt;br/&gt;/8 = "Cornelia_Presenting_Her_Children_as_Her_Treasure.jpg"&lt;br/&gt;/9 = "Cut_with_the_Kitchen_Knife.jpg"&lt;br/&gt;/10 = "Dido_building_Carthage.jpg"&lt;br/&gt;/11 = "Interieur_au_violon.jpg"&lt;br/&gt;/12 = "La_Montagne_Saint_Victoire_Barnes.jpg"&lt;br/&gt;/13 = "Laokoon.jpg"&lt;br/&gt;/14 = "Les_Glaneuses.jpg"&lt;br/&gt;/15 = "Les_Majas_at_the_balcony.jpg"&lt;br/&gt;/16 = "Oath_of_the_Horatii.jpg"&lt;br/&gt;/17 = "pier-and-ocean.jpg"&lt;br/&gt;/18 = "Quince_Cabbage_Melon_and_Cucumber.jpg"&lt;br/&gt;/19 = "Raft_of_the_Medusa.jpg"&lt;br/&gt;/20 = "Raphael_Galatea.jpg"&lt;br/&gt;/21 = "Self-Portrait_with_Vanitas_Symbols.jpg"&lt;br/&gt;/22 = "Suprematist_Composition.jpg"&lt;br/&gt;/23 = "Swing-Renoir.jpeg"&lt;br/&gt;/24 = "The_Annunciation.jpg"&lt;br/&gt;/25 = "The_Banquet_of_Cleopatra.jpg"&lt;br/&gt;/26 = "The_Coronation_of_Napoleon.jpeg"&lt;br/&gt;/27 = "The_Daughters_of_Edward_Darley_Boit.jpg"&lt;br/&gt;/28 = "The_Embarakation_for_Cythera.jpg"&lt;br/&gt;/29 = "The_Hay_Wain.jpg"&lt;br/&gt;/30 = "The_Thankful_Poor.jpg"&lt;br/&gt;/31 = "The_Third_Class_Carriage.jpg"&lt;br/&gt;/32 = "The_Valpincon_Bather.jpg"&lt;br/&gt;/33 = "Three_Philosophers.jpg"&lt;br/&gt;/34 = "View_from_Mount_Holyoke.jpg"&lt;br/&gt;/35 = "Vision_after_the_Sermon.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item japanese&amp;gt;&lt;br/&gt;/1 = "8_Famous_Sights_of_Xiao_&amp;amp;_Xiang_Rivers.jpg"&lt;br/&gt;/2 = "Actor_Ichikawa_Danjuro.jpg"&lt;br/&gt;/3 = "Autumn_and_Winter_Landscapes.jpg"&lt;br/&gt;/4 = "Cypress_Trees.jpg"&lt;br/&gt;/5 = "Eight_Famous_Sights_of_Omi.jpg"&lt;br/&gt;/6 = "Hawk_on_a_pine_tree.jpg"&lt;br/&gt;/7 = "Maiko.jpg"&lt;br/&gt;/8 = "Merrymaking_Under_the_Cherry_Blossoms_-_Google_Art_Project.jpg"&lt;br/&gt;/9 = "Morning_view_of_the_Uji_River.jpg"&lt;br/&gt;/10 = "Narrow_ivy_road.jpg"&lt;br/&gt;/11 = "Popular_Geisha_at_the_Pleasure_Quarters.jpg"&lt;br/&gt;/12 = "Portrait_of_Ashikaga_Yoshimasa.jpg"&lt;br/&gt;/13 = "Spring_Ridge.jpg"&lt;br/&gt;/14 = "Sundial_of_Young_Women.jpg"&lt;br/&gt;/15 = "Yoroboshi.jpg"&lt;br/&gt;/16 = "Zhou_Maoshu_Appreciating_Lotuses.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixationCross&amp;gt;&lt;br/&gt;/ items = ("+")&lt;br/&gt;/ fontstyle = ("Arial", 300px)&lt;br/&gt;/ color = (0, 0, 0)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture resMas&amp;gt;&lt;br/&gt;/items = resonant_masterpieces&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/size = (90%, 90%)&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture nonresMas&amp;gt;&lt;br/&gt;/items = nonresonant_masterpieces&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/size = (90%, 90%)&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture japanese&amp;gt;&lt;br/&gt;/items = japanese&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/size = (90%, 90%)&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ratingquestionLiking&amp;gt;&lt;br/&gt;/ caption="Wie gefÃ¤llt Ihnen das Kunstwerk?"&lt;br/&gt;/ options=("Sehr gut", "Gut", "Durchschnittlich", "Weniger", "Gar nicht")&lt;br/&gt;/ optionvalues = ("1", "2", "3", "4", "5")&lt;br/&gt;/ required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ratingquestionUnderstanding&amp;gt;&lt;br/&gt;/ caption="Wie gut verstehen Sie das Kunstwerk?"&lt;br/&gt;/ options=("Sehr gut", "Gut", "Durchschnittlich", "Weniger", "Gar nicht")&lt;br/&gt;/ optionvalues = ("1", "2", "3", "4", "5")&lt;br/&gt;/ required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ratingquestionWTP&amp;gt;&lt;br/&gt;/ caption="Wie groÃ ist Ihre Bereitschaft Geld dafÃ¼r zu zahlen, dieses Kunstwerk im Museum zu sehen?"&lt;br/&gt;/ options=("Sehr hoch", "Hoch", "Durschnittlich hoch", "Weniger hoch", "Gar nicht hoch")&lt;br/&gt;/ optionvalues = ("1", "2", "3", "4", "5")&lt;br/&gt;/ required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons questionPaintingFamilarity&amp;gt;&lt;br/&gt;/ caption="Wie stark sind Sie mit dem Kunstwerk vertraut?"&lt;br/&gt;/ options=("Sehr hoch", "Hoch", "Durschnittlich hoch", "Weniger hoch", "Gar nicht hoch")&lt;br/&gt;/ optionvalues = ("1", "2", "3", "4", "5")&lt;br/&gt;/ required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial resMas&amp;gt;&lt;br/&gt;/ stimulustimes = [0=fixationCross; 2000=resMas]&lt;br/&gt;/branch = [surveypage.ratingPage]&lt;br/&gt;/timeout = 10000&lt;br/&gt;/ pretrialpause=3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial nonresMas&amp;gt;&lt;br/&gt;/ stimulustimes = [0=fixationCross; 2000=nonresMas]&lt;br/&gt;/branch = [surveypage.ratingPage]&lt;br/&gt;/timeout = 10000&lt;br/&gt;/ pretrialpause=3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial japanese&amp;gt;&lt;br/&gt;/ stimulustimes=[0=fixationCross; 2000=japanese]&lt;br/&gt;/branch = [surveypage.ratingPage]&lt;br/&gt;/timeout = 10000&lt;br/&gt;/ pretrialpause=3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage ratingPage&amp;gt;&lt;br/&gt;/caption = "Please answer the following items to the best of your ability"&lt;br/&gt;/ fontstyle = ("Verdana", -12, true, false, false, false, 5, 0)&lt;br/&gt;/questions=[1=ratingquestionLiking; 2=ratingquestionUnderstanding; 3=ratingquestionWTP; 4=questionPaintingFamilarity]&lt;br/&gt;/finishlabel="Weiter"&lt;br/&gt;/caption = "Bitte beantworten Sie folgende Fragen Ã¼ber das zuletzt gezeigte Bild:"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block EXP&amp;gt;&lt;br/&gt;/trials = [1-61 = noreplace(resMas, resMas, resMas, resMas, resMas, resMas, resMas, resMas, resMas, resMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, nonresMas, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese, japanese)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/blocks = [1 = EXP]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 05 Feb 2019 05:47:59 GMT</pubDate><dc:creator>JuliaJuliaJulia</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26365.aspx</link><description>&lt;div data-id="26361" class="if-quote-wrapper" unselectable="on" data-guid="1549374144344"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26361" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26361" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26361" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26361"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26359" class="if-quote-wrapper" unselectable="on" data-guid="1549374144344"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26359" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26359" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26359" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26359"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26358" class="if-quote-wrapper" unselectable="on" data-guid="1549374144344"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26358" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26358" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26358" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26358"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26357" class="if-quote-wrapper" unselectable="on" data-guid="1549374144344"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26357" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26357" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26357" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26357"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26355" class="if-quote-wrapper" unselectable="on" data-guid="1549374144344"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26355" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26355" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26355" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26355"&gt;&lt;div class="if-quote-message-margin"&gt;Hey there!&lt;br/&gt;&lt;br/&gt;For my study I need to present images on a screen. Unfortunately, I don't know the exact size. The picture I want to present also have different sizes. Some of them have a vertical format, others a horizontal. I want to present them in the following way: All pictures should have the same hight (80 % of screen hight), the picture ratio should stay the same. So the picture shouldn't be cut. Furthermore, the picture should be presented in the middle of the screen.&lt;br/&gt;&lt;br/&gt;I tried already tried it with the following code:&lt;br/&gt;&amp;lt;picture japanese&amp;gt;&lt;br/&gt;/items = japanese&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/height = 80%&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;but that doesn't really work...&lt;br/&gt;Has anybody an idea?&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;&lt;br/&gt;Julia&lt;a class="if-quote-goto quote-link" href="#" data-id="26355"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey there,&lt;br/&gt;just an additional question: Is it possible, to set the width only for horizontal pictures to 80% and make here the height flexible. For vertical pictures the height should than be 80% and the width flexible. I just don't have a clue how to do that...&lt;a class="if-quote-goto quote-link" href="#" data-id="26357"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;The only thing you can do is encode the height you need for each individual image item in a &amp;lt;list&amp;gt; and then set the &amp;lt;picture&amp;gt; element to that width dynamically. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.width = list.widths.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 80%&lt;br/&gt;/ width = 0%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26358"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey Dave, thanks a lot for your answer. I think, I don't really get what you are doing in your code.&lt;br/&gt;Especially this peace of code:&amp;nbsp;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;What are you doing here and where are the 40% from?&lt;br/&gt;How does Inquisit know which picture is vertical, which horizontal and when to set the hight to 80% (for vertical pictures) and when to set the width to 80% (for horizontal pictures).&lt;br/&gt;&lt;br/&gt;Thanks for your help!!!!!&lt;br/&gt;&lt;br/&gt;Julia&lt;a class="if-quote-goto quote-link" href="#" data-id="26359"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;&lt;strong&gt;/ selectionmode = picture.mypicture.nextindex&lt;/strong&gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;The &amp;lt;list&amp;gt; is tied to the &amp;lt;picture&amp;gt; element. The 1st item in the list -- 80% -- indicates the width for the 1st item in the &amp;lt;picture&amp;gt; element, 01.jpg. The 2nd item in the &amp;lt;list&amp;gt; indicates the width for the &amp;lt;picture&amp;gt; element's 2nd item -- 02.jpg. In essence, this is the same as &lt;a href="https://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm"&gt;https://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26361"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Great, thanks, I think I have got it. :)&lt;br/&gt;But then the height of both pictures is 80%, isn't it? I only want it to be 80% for vertical images.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(33, 33, 33); font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Web (West European)&amp;quot;, &amp;quot;Segoe UI&amp;quot;, -apple-system, system-ui, Roboto, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 14.6667px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Maybe I will try it differently: I want to fix only the longest dimension&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(33, 33, 33); font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Web (West European)&amp;quot;, &amp;quot;Segoe UI&amp;quot;, -apple-system, system-ui, Roboto, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 14.6667px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;of every painting at a standard size (say 1000 pixels), the other dimension should be set to default (so that the proportions of the image don't change)...&lt;br/&gt;&lt;br/&gt;Thanks and sorry for asking so much!&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Julia&lt;/span&gt;</description><pubDate>Tue, 05 Feb 2019 05:46:46 GMT</pubDate><dc:creator>JuliaJuliaJulia</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26361.aspx</link><description>&lt;div data-id="26359" class="if-quote-wrapper" unselectable="on" data-guid="1549327992314"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26359" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26359" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26359" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26359"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26358" class="if-quote-wrapper" unselectable="on" data-guid="1549327992314"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26358" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26358" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26358" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26358"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26357" class="if-quote-wrapper" unselectable="on" data-guid="1549327992314"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26357" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26357" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26357" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26357"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26355" class="if-quote-wrapper" unselectable="on" data-guid="1549327992314"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26355" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26355" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26355" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26355"&gt;&lt;div class="if-quote-message-margin"&gt;Hey there!&lt;br/&gt;&lt;br/&gt;For my study I need to present images on a screen. Unfortunately, I don't know the exact size. The picture I want to present also have different sizes. Some of them have a vertical format, others a horizontal. I want to present them in the following way: All pictures should have the same hight (80 % of screen hight), the picture ratio should stay the same. So the picture shouldn't be cut. Furthermore, the picture should be presented in the middle of the screen.&lt;br/&gt;&lt;br/&gt;I tried already tried it with the following code:&lt;br/&gt;&amp;lt;picture japanese&amp;gt;&lt;br/&gt;/items = japanese&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/height = 80%&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;but that doesn't really work...&lt;br/&gt;Has anybody an idea?&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;&lt;br/&gt;Julia&lt;a class="if-quote-goto quote-link" href="#" data-id="26355"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey there,&lt;br/&gt;just an additional question: Is it possible, to set the width only for horizontal pictures to 80% and make here the height flexible. For vertical pictures the height should than be 80% and the width flexible. I just don't have a clue how to do that...&lt;a class="if-quote-goto quote-link" href="#" data-id="26357"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;The only thing you can do is encode the height you need for each individual image item in a &amp;lt;list&amp;gt; and then set the &amp;lt;picture&amp;gt; element to that width dynamically. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.width = list.widths.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 80%&lt;br/&gt;/ width = 0%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26358"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey Dave, thanks a lot for your answer. I think, I don't really get what you are doing in your code.&lt;br/&gt;Especially this peace of code:&amp;nbsp;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;What are you doing here and where are the 40% from?&lt;br/&gt;How does Inquisit know which picture is vertical, which horizontal and when to set the hight to 80% (for vertical pictures) and when to set the width to 80% (for horizontal pictures).&lt;br/&gt;&lt;br/&gt;Thanks for your help!!!!!&lt;br/&gt;&lt;br/&gt;Julia&lt;a class="if-quote-goto quote-link" href="#" data-id="26359"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;&lt;strong&gt;/ selectionmode = picture.mypicture.nextindex&lt;/strong&gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;The &amp;lt;list&amp;gt; is tied to the &amp;lt;picture&amp;gt; element. The 1st item in the list -- 80% -- indicates the width for the 1st item in the &amp;lt;picture&amp;gt; element, 01.jpg. The 2nd item in the &amp;lt;list&amp;gt; indicates the width for the &amp;lt;picture&amp;gt; element's 2nd item -- 02.jpg. In essence, this is the same as &lt;a href="https://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm"&gt;https://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm&lt;/a&gt;&lt;br/&gt;</description><pubDate>Mon, 04 Feb 2019 16:55:27 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title /><link>https://forums.millisecond.com/Topic26359.aspx</link><description>&lt;div data-id="26358" class="if-quote-wrapper" unselectable="on"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26358" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26358" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26358" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26358"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26357" class="if-quote-wrapper" unselectable="on" data-guid="1549309442688"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26357" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26357" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26357" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26357"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26355" class="if-quote-wrapper" unselectable="on" data-guid="1549309442688"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26355" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26355" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26355" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26355"&gt;&lt;div class="if-quote-message-margin"&gt;Hey there!&lt;br/&gt;&lt;br/&gt;For my study I need to present images on a screen. Unfortunately, I don't know the exact size. The picture I want to present also have different sizes. Some of them have a vertical format, others a horizontal. I want to present them in the following way: All pictures should have the same hight (80 % of screen hight), the picture ratio should stay the same. So the picture shouldn't be cut. Furthermore, the picture should be presented in the middle of the screen.&lt;br/&gt;&lt;br/&gt;I tried already tried it with the following code:&lt;br/&gt;&amp;lt;picture japanese&amp;gt;&lt;br/&gt;/items = japanese&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/height = 80%&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;but that doesn't really work...&lt;br/&gt;Has anybody an idea?&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;&lt;br/&gt;Julia&lt;a class="if-quote-goto quote-link" href="#" data-id="26355"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey there,&lt;br/&gt;just an additional question: Is it possible, to set the width only for horizontal pictures to 80% and make here the height flexible. For vertical pictures the height should than be 80% and the width flexible. I just don't have a clue how to do that...&lt;a class="if-quote-goto quote-link" href="#" data-id="26357"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;The only thing you can do is encode the height you need for each individual image item in a &amp;lt;list&amp;gt; and then set the &amp;lt;picture&amp;gt; element to that width dynamically. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.width = list.widths.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 80%&lt;br/&gt;/ width = 0%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26358"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey Dave, thanks a lot for your answer. I think, I don't really get what you are doing in your code.&lt;br/&gt;Especially this peace of code:&amp;nbsp;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;What are you doing here and where are the 40% from?&lt;br/&gt;How does Inquisit know which picture is vertical, which horizontal and when to set the hight to 80% (for vertical pictures) and when to set the width to 80% (for horizontal pictures).&lt;br/&gt;&lt;br/&gt;Thanks for your help!!!!!&lt;br/&gt;&lt;br/&gt;Julia</description><pubDate>Mon, 04 Feb 2019 14:07:27 GMT</pubDate><dc:creator>JuliaJuliaJulia</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26358.aspx</link><description>&lt;div data-id="26357" class="if-quote-wrapper" unselectable="on" data-guid="1549309442688"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26357" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26357" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26357" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26357"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26355" class="if-quote-wrapper" unselectable="on" data-guid="1549309442688"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26355" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26355" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26355" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26355"&gt;&lt;div class="if-quote-message-margin"&gt;Hey there!&lt;br/&gt;&lt;br/&gt;For my study I need to present images on a screen. Unfortunately, I don't know the exact size. The picture I want to present also have different sizes. Some of them have a vertical format, others a horizontal. I want to present them in the following way: All pictures should have the same hight (80 % of screen hight), the picture ratio should stay the same. So the picture shouldn't be cut. Furthermore, the picture should be presented in the middle of the screen.&lt;br/&gt;&lt;br/&gt;I tried already tried it with the following code:&lt;br/&gt;&amp;lt;picture japanese&amp;gt;&lt;br/&gt;/items = japanese&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/height = 80%&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;but that doesn't really work...&lt;br/&gt;Has anybody an idea?&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;&lt;br/&gt;Julia&lt;a class="if-quote-goto quote-link" href="#" data-id="26355"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey there,&lt;br/&gt;just an additional question: Is it possible, to set the width only for horizontal pictures to 80% and make here the height flexible. For vertical pictures the height should than be 80% and the width flexible. I just don't have a clue how to do that...&lt;a class="if-quote-goto quote-link" href="#" data-id="26357"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;The only thing you can do is encode the height you need for each individual image item in a &amp;lt;list&amp;gt; and then set the &amp;lt;picture&amp;gt; element to that width dynamically. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [picture.mypicture.width = list.widths.nextvalue;]&lt;br/&gt;/ stimulusframes = [1=mypicture]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture mypicture&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ height = 80%&lt;br/&gt;/ width = 0%&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list widths&amp;gt;&lt;br/&gt;/ items = (80%, 40%)&lt;br/&gt;/ selectionmode = picture.mypicture.nextindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 2 = "02.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 04 Feb 2019 11:55:58 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Picture resizing</title><link>https://forums.millisecond.com/Topic26357.aspx</link><description>&lt;div data-id="26355" class="if-quote-wrapper" unselectable="on" data-guid="1549300407342"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26355" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26355" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26355" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaJuliaJulia - Monday, February 4, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26355"&gt;&lt;div class="if-quote-message-margin"&gt;Hey there!&lt;br/&gt;&lt;br/&gt;For my study I need to present images on a screen. Unfortunately, I don't know the exact size. The picture I want to present also have different sizes. Some of them have a vertical format, others a horizontal. I want to present them in the following way: All pictures should have the same hight (80 % of screen hight), the picture ratio should stay the same. So the picture shouldn't be cut. Furthermore, the picture should be presented in the middle of the screen.&lt;br/&gt;&lt;br/&gt;I tried already tried it with the following code:&lt;br/&gt;&amp;lt;picture japanese&amp;gt;&lt;br/&gt;/items = japanese&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/height = 80%&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;but that doesn't really work...&lt;br/&gt;Has anybody an idea?&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;&lt;br/&gt;Julia&lt;a class="if-quote-goto quote-link" href="#" data-id="26355"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hey there,&lt;br/&gt;just an additional question: Is it possible, to set the width only for horizontal pictures to 80% and make here the height flexible. For vertical pictures the height should than be 80% and the width flexible. I just don't have a clue how to do that...</description><pubDate>Mon, 04 Feb 2019 09:16:05 GMT</pubDate><dc:creator>JuliaJuliaJulia</dc:creator></item></channel></rss>