Howdy, Stranger!

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

Supported by

OSWeb: Display a picture that has a transparent background

If you have a picture with a transparent background, OpenSesame does display it correctly, i.e. the background of the picture takes over the background of the display.

OSWeb does not do this, as far as I have seen.

Am I right? Any suggestions for workarounds?

Comments

  • Hi @Pieter_,

    Did you mean that the display's background takes over the picture's background?

    If you're using a picture format that includes background transparency (e.g., png), you should be able to display a png over another picture and have the top picture's background let the bottom picture through, both in OS and in the browser (including as a JATOS experiment).

    I've just tried it and got it to work in OS, OSWeb and online (JATOS).

    I'm attaching my example:

    Maybe you're using a file format that allows transparency in OS but that the browser can't handle well, though I'm not sure why one would work and not the other. Try my example on your computer to see if it works.

    Hope this helps!

    Fabrice (sporadically connected while having some days off).

    Buy Me A Coffee

  • Thanks, Fabrice for extending my knowledge of picture formats.

    I did use a gif format for the picture with the transparent background (the default for this in e.g. IrfanView. This works offline in OpenSesame (the picture correctly takes over the background color of the underlying picture or sketchpad) but not online with OSWeb, in Firefox. There, the png format does work.

  • Hi @Pieter_,

    Glad I was helpful Many thanks for the coffees, that was very nice of you!

    From what I understand, PNG is superior to GIF in terms of quality and handling (for example, GIF is limited to 256 colors while PBG supports thousands). Nowadays, all browsers handle PNG well (see this list), hence I'd recommend always using PNG.

    One thing to note is that because PNG is a lossless format, PNG files usually take up more space than JPEGs. Hence, it can make your task a little longer to load up if you're using many pictures in the pool. If this is an issue, and if you have separate groups of images for the bottom and top layers, one option would be to use JEPG for the bottom image and PNG for the top one.

    In the improbable event of a participant using a very old and outdated browser not capable of handling PNG images, one thing you could do to screen such participants is to start your experiment with a little test: you show a bottom picture with, say a three-digit number, on top of which you put a transparent PNG, and ask participants to type the three digits or otherwise indicate that they do not see any digits. You could then only allow participants who get the digits right to proceed with the experiment.

    Good luck with your experiment!

    Fabrice.

    Buy Me A Coffee

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