Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导出单元格的时候,如果某个单元格放的是图片,如何不使用模版,使导出的excel文件里图片能按设定大小展示图片 #424

Open
ryuhi opened this issue Jul 20, 2024 · 0 comments

Comments

@ryuhi
Copy link

ryuhi commented Jul 20, 2024

Bug描述
我们使用的图片,在htm语境中都是按照px(像素)来描述大小,但这个大小设定在@ExcelColumn注解中,或者@ExcelModel注解上的时候,导出效果的图片大小和px描述的大小不一致,但是如果使用模版导出,就能匹配我们模版上设定的大小

Bug复现
按如下步骤复现(Steps to reproduce the behavior):

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

期望的结果

  1. 期望作者能给个说明,@ExcelColumn(title = "照片", fileType = FileType.IMAGE, width = 100),这里设置的100是什么单位,和excel里的列宽怎么对应
  2. 我目前需要的导出excel文件里有两列是图片列,如果图片有成百上千,每个图片都需要下载,我看了源码知道myexcel是通过ImageWriteConverter下载,返回一个inputStream,我猜测应该是串行执行的,如果是的话,有没有办法能让这些图片并行下载,提高效率,否则下载图片的时间太长了。如果是并行执行的,如何能开启并行执行?因为从目前的执行时间来看似乎不像是并行的。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant