protobi / js-xlsx

XLSX / XLSM / XLSB (Excel 2007+ Spreadsheet) / ODS parser and writer
http://oss.sheetjs.com/js-xlsx
Other
814 stars 416 forks source link

how to insert image? #113

Closed idr17 closed 6 years ago

idr17 commented 6 years ago

Hallo all,

Can i insert image ? thanks for advance

pietersv commented 6 years ago

@idr17 I believe that's supported in SheetJS Pro, please report back if you're able to license that.

There's also branch that adds this for XLSX format: https://github.com/xSirrioNx/js-xlsx. I'm not sure if these additions were made to the underlying source in the /bits/ directory or made directly to the generated xlsx.js file outside of the make process.

lucasverra commented 5 years ago

Hello @pietersv , the repo you point to in this issue is not available any more. Does this one https://github.com/protobi/js-xlsx allows me to export a xlsx file with jpg in it ? Cheers !

pietersv commented 5 years ago

@lucasverra -

Images is not in either yet, but is in the commercial SheetJS version.

This js-xlsx repo is hard for us to invest in maintaining; but we do actively use https://github.com/protobi/msexcel-builder, and if this is an important feature for your work, we could implement images in that public project as a billable professional service. I estimate this would be a day to implement as a feature and add to test cases. If interested we can move that conversation to support@protobi.com.

Alternatively if you're interested and available, the lib is open source. An outline to implement it is:

Once you see how it works, then it's usually pretty clear how to modify the code to implement it, and we could advise on how to spec the feature and test cases for a PR.