Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] Unnecessary picture resize in sketchpad?

edited October 2013 in OpenSesame

Hi all,

in the experiment that I am currently building I present arrows that either point to the left or to the right. As stimuli, I use .png files on sketchpad items. Arrows are either located above or below a fixation cross. For some reason, some pixels that should be on the top of the arrows are not presented and the images get resized. All arrow types have a pixel size of 113x7. There is clearly enough room on the sketchpad, I do not understand why the arrow images get resized.

This is what I get in the debug: \right_congruent.png' was not a square power-of-two image. Linearly interpolating to be 128x128

Multiple images have needed resizing - I'll stop bothering you!

Does the image size of my arrows does not work in sketchpads? In another experiment I use 95x100 px images and they work just fine.
Edit: I just realized that OpenSesame also gives the error that images needed to be resized for the 95x100 px images.

Many thanks if someone can help!

Comments

  • edited 12:39PM

    Have you set the experiment resolution (on the 'General Overview') to match the screen you are using? I found that to be a problem in a recent experiment of mine when I switched to using a different screen.

    Best,

    Lee

  • edited 12:39PM

    PsychoPy's PatchStim and GratingStim classes convert images to rectangular patches of power-of-two dimensions. This is required for technical reasons. You generally don't notice this, but at the pixel level things may go slightly wrong. For example, very thin lines may disappear or become vague.

    If there is no specific reason to use the psycho back-end, you could try switching to the xpyriment back-end. Alternatively, you could present the image using PsychoPy's ImageStim class, in an inline_script item. The ImageStim class is somewhat newer and from what I understand it works slightly differently, so it may prevent the distortion from occurring.

    Hope this helps!

    Cheers,
    Sebastiaan

  • edited 12:39PM

    Hey Lee, thanks for your suggestions, but the resolution already matches the screen resolution, so that is not the reason.

    Sebastiaan, alas there is a reason why the xpyriment bachend does not work for me: I use Ascii asterisks as cues fin the eyperiment (like this ✱). These asterisks are displayed when I use the PsychoPy backend, but not when I use the xpyriment backend. If you know a way how to present asterisks in xpyriment, that would be very useful for me then (I guess as images they would work).

    Thanks already!

  • edited 12:39PM

    but the resolution already matches the screen resolution, so that is not the reason.

    ... I guess I'm the only one making goofy mistakes then! :D

    Hope it works out, back-end issues are beyond my knowledge...

    Lee

  • edited 12:39PM

    certainly not, the same thing happened to me at least once, but now the resolution is correct ;-)

  • edited 12:39PM

    I use Ascii asterisks as cues fin the eyperiment (like this ✱)

    Right, that's quite an exotic character you have there! This asterisk is actually not an ASCII character (this one is: *), which is why it is not shown by the xpyriment back-end: It's simply not part of the default font. If you can find out which font does include this character, you should be able to view it as well with the xpyriment back-end. So I would simply try a few different fonts until the character appears.

    You can quickly create a script that tries a lot of different fonts, like so:

    draw textline 0 0 "✱" font_family="Times New Roman"
    draw textline 100 0 "✱" font_family="Arial"
    draw textline 200 0 "✱" font_family="Courier New"
    # etc.
    
  • edited 12:39PM

    Hi Sebastiaan,

    I tried quite some fonts, but all resulted in an empty square instead of the asterisk. This seems odd to me, because the asterisk works in all fonts in the PsychoPy backend.

    I just created an image to display the asterisk, that works fine, thanks anyway!!

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games