MiniExcel icon indicating copy to clipboard operation
MiniExcel copied to clipboard

是否可以在SaveAs附帶圖片時指定圖片的大小? Is it possible to specify the size of the image when attaching it to SaveAs?

Open heistercat7 opened this issue 11 months ago • 0 comments

Excel Type

XLSX

Upload Excel File

template.xlsx

MiniExcel Version

1.37.0

Description

目前利用 SaveAs 產生的文件中若附帶圖片會呈現如附件的情形,不論原圖片的大小或比例如何,都會被濃縮成小小的,並且圖片後面會附帶文字「@@@fileid@@@,xl/media/R6d0b07435b4142189ba95469385a1a66.jpg」,使用者需要自行把圖片拉開,由於使用者對文書軟體操作的理解程度參差不齊,部分會將此情況理解成Bug,是否可以增加功能讓匯出時可以指定圖片長寬,並且可以選擇隱藏圖片後面的附帶文字? 謝謝!

※ 我有嘗試把OpenXmlConfiguration.EnableConvertByteArray=false,雖然圖片後面的附帶文字會不見,可是圖片也不會顯示了...

At present, files generated using SaveAs will appear as attachments if they are attached with images. Regardless of the size or proportion of the original image, it will be condensed into a small size, and the image will be followed by the text "@@@fileid@@@,xl/media/R6d0b07435b4142189ba95469385a1a66.jpg". Users need to open the image by themselves. Due to the uneven understanding of the user's understanding of the operation of the document software, this situation will occur in some cases. I understand this to be a bug. Is it possible to add a function so that the length and width of the image can be specified when exporting, and the accompanying text behind the image can be optionally hidden? Thank you!

heistercat7 avatar Mar 03 '25 02:03 heistercat7