Making your images colorblind-friendly just got a little easier.

Approximately 1 in 12 men and 1 in 200 women of the world are colorblind. While the advice of using a magenta/green color scheme as opposed to the red/green color scheme in scientific images is beginning to be widely distributed, I’ve recently been introduced to a tool that goes much farther to help us become better visual science communicators.

Vischeck is a website developed by two researchers at Stanford University that simulates how an image is viewed by individuals with three forms of colorblindness: Deuteranope, Protanope, and Tritanope vision. You can upload a jpg or png of your scientific image and see how it appears to individuals with these forms of vision. How cool is that?

To test it out, let’s see what happens with this image of Cho cells that I’ve immunostained and labeled with red, green, and blue channels in Fiji.

Screen Shot 2017-09-27 at 3.33.49 PM

In original image on the left you can clearly differentiate between the red and green channels, but on the right you can see how the distinction between these colors is completely removed. How wonderful that we can test our images in this way!

Just for kicks, I also inputted the Vizsi logo and the result is quite beautiful…

Screen Shot 2017-09-27 at 3.24.50 PM

Now the site does have a disclaimer and points out that their simulation isn’t perfect as display devices can show image color differently, however this is the best tool I’ve seen for testing this problem. And if nothing else, it illustrates how simple changes such as alterations in color value (the lightness/darkness of a color) can help everyone distinguish between the different colors in your images. Try it out!

A few other tools include WebAim’s color contrast checker in which you can input two color combinations and see if they have an appropriate contrast ratio for web viewing (4:5:1 or higher), and the I want to see like the colour blind extension available in Chrome. And lastly here are a few more tips for designers on color accessibility from Smashing Magazine, many of which can apply to scientific image design as well.

Links:
Vischeck: http://www.vischeck.com/
WebAim color checker: https://webaim.org/resources/contrastchecker/
Chrome extension: https://chrome.google.com/webstore/detail/i-want-to-see-like-the-co/jebeedfnielkcjlcokhiobodkjjpbjia?hl=en-GB
Smashing magazine tips: https://www.smashingmagazine.com/2016/06/improving-color-accessibility-for-color-blind-users/

Advertisements

Batch Processing – Make Photoshop do the work!

Last week I needed to open about 100 image files and simply crop them, all in the same manner. I was making a video panning through the z-axis of a set of 3D scanning electron microscopy images and just needed them to be focused in closer on more detail. Opening and closing 100 image files and cropping them was going to take time – so instead I decided to let Photoshop do the work for me and embraced batch processing!

How this works, is you create an action (like cropping an image or changing the image color mode from RGB to CMYK or something simple like that), apply it to a folder of files, and Photoshop magically performs that action on that entire folder – saving them under whatever naming system you desire. Thus my hour-long task was now just a five minute task. So worth it! Note that the action needs to be the exact same for each file. For instance, you can’t tell it to crop in a different areas of an image. But this works really well for mindless tasks like changing resolution from x to x, or just saving all the files under a new naming convention. Below is the process for creating an action and activating Batch processing – now get batching!

Step One: Create an Action

Go up to “Window” and Select “Actions”.

batch1

You’ll see a panel pop up with lots of options for pre-recorded actions, but you’re going to be making your own.

batch2

Select the “Create New Action” icon on the lower right.

batch3

Name it something you’ll remember and press record.

batch4

Now be careful – every move you make in Photoshop is being recorded – so now isn’t the time to try experimenting. You can tell you are recording because the action window will show a red dot.

batch5

So let’s get started! First we want to open up one of the images we want to edit. It works best if you go ahead and put together a folder full of the images you want to edit – make sure you have originals of these files in a safe place! Don’t edit originals. Here, I’ve created a folder of EM images and opened one in which I’m going to make the canvas size smaller. So I can go up and select canvas size…

batch6

And then make the setting which I want applied to all my images.

batch8

And you’ll note that under my action in the Actions panel, it shows that I want it to open a file and then apply this canvas size change.

batch9

Next I want to save my image using a standard convention.

batch10

And then I’ll close the image.

batch11

This is all I want this action to do. So I’m going to hit the square “Stop” button.

batch12

Now this action is ready for use!

Step Two: Get Batching!

I’m going to go up to “File” > “Automate” > “Batch”.

batch13

And a window pops up with seemingly lots of options. You’ll see the second left dropdown menu allows you to select the action you just made. Then you can select the source folder that has all of your images ready for editing.

batch14

And then on the right you just need to select your destination folder where Photoshop will output all of the newly edited images. Here you can also select a new document name if you like, or add any sort of extension to the name, like “edit” or a number.

batch15

And then hit ok and Photoshop will become a blinking mass of rapidly opening, editing, and closing files. And after a few minutes – depending on the number of images – voila! You’re done!