Browse Source

图片显示问题

tags/v1.1.0
qiujinyang 2 years ago
parent
commit
f91c1632b5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ReportServiceImpl.java

+ 1
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ReportServiceImpl.java View File

Image image = null; Image image = null;
String url = reportInfoVO.getQuestionReportList().get(i).getFileMarkerUrl(); String url = reportInfoVO.getQuestionReportList().get(i).getFileMarkerUrl();
if (new UrlResource(url).exists()) { if (new UrlResource(url).exists()) {
image = Image.getInstance(url);
image = Image.getInstance("/data/java/tuoheng_lc/uploads/2022-08-18-17-30-54_frame-19128-19398_type-林斑_74d20d0c1ed811ed960b18c04d1a13ab-online-P20220818171703347-8c3e7407e6054db695aa0a07fe02bf0b_AI.jpg");
image.setAlignment(Image.ALIGN_CENTER); image.setAlignment(Image.ALIGN_CENTER);
image.scalePercent(100); //依照比例缩放 image.scalePercent(100); //依照比例缩放
image.setAbsolutePosition(0, 0); image.setAbsolutePosition(0, 0);

Loading…
Cancel
Save