// Create a new workbook Workbook workbook = new Workbook(); IWorksheet worksheet = workbook.getWorksheets().get(0); // Place the same picture to two range InputStream stream = null; try{ stream = this.getResourceStream("puffins.jpg"); worksheet.getShapes().addPicture(stream, ImageType.JPG, worksheet.getRange("B2:B4")); stream = this.getResourceStream("puffins.jpg"); worksheet.getShapes().addPicture(stream, ImageType.JPG, worksheet.getRange("D4:F12")); } catch (Exception ignored) { } worksheet.getShapes().addConnector(ConnectorType.Straight, worksheet.getRange("C2:F3")); worksheet.getShapes().addConnector(ConnectorType.Straight, worksheet.getRange("B5:C12")); // Save to an excel file workbook.save("AddPictureToRange.xlsx");