-
Notifications
You must be signed in to change notification settings - Fork 381
Embedded Image Support #378
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
base: master
Are you sure you want to change the base?
Conversation
oneCellAnchor
Preserve image aspect ratio
twoCellAnchor QA matrix
read images from file
load Excel with embedded images
|
Hi & thank you for your contribution, However, embedded image support is on my to-do list (ref: #231) and when I get around to it, I will have a look at your implementation and see if it is close enough to the OpenXLSX "way of doing things" that it can be used. In case we reuse major parts of your implementation, if attribution (beyond reference to the related pull request or issue number) is important to you, I could suggest a form in which to structure the pull request - but generally I try to avoid merging pull requests that are more than trivial changes, because reviewing other people's code is often more work than implementing something myself (plus I can trust myself to not try and introduce malware ;) |
|
I agree! It is often easier to write code than to understand someone else's code. Thanks for all the hard work. I hope my code can be of some help when you write the embedded image feature. |
|
I won't bother you much more. But I felt the need to state some features of my implementation:
My one worry about my implementation is reliance on a hash function for image equivalence. It will probably never fail, until it does fail at the worst moment. |
|
You are absolutely not bothering me - those are some good ideas for an implementation. Maybe we can move these points to Issue #231 ? That way I have them all in one place with the image support on the to-do-list. If you could copy-paste your last comment there, that'd be appreciated. I will accordingly respond there. Heads-up: I'll be on vacation from this weekend until 2nd week of December, so I may or may not be responsive here. Quick note (that I'll copy over to issue #231 if you copy your feature suggestions): Image deduplication is a good idea, I will eventually implement something similar for shared strings (requires replacing the in-memory table of strings with a sorted list, and requires an idea for rich text strings), but my general idea for images would be:
Depending on the hash function used, duplicate hashes for different images can be avoided (likeliness low enough that in reality they will never happen). |
Hello Mr. Balslev,
I have been using OpenXLSX and am happy with it.
I needed to embed images, so I added code for this.
I am new to the github pull request system. If you are open to new code submissions, please advise me how best to prepare my code so that you can most easily review it.
Regards,
Mac Stevens
Newport, Oregon