draw image with opacity on to a canvas [duplicate] April 9, 2024 by Tarik Use globalAlpha but make sure that you set it before drawing the image: ctx.globalAlpha = 0.4;