We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I got the following code from a tutorial. I checked it with the reference and it should work.
The error I get is: "The size of this sketch could not be determined from your code. Use only numbers (not variables) for the size() command. Read the size() reference for more details.".
PImage img = loadImage("image.jpg");
size(img.width*2, img.height, P2D);