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

feat: Add a GetPicutreCells function #1634

Merged
merged 3 commits into from
Oct 12, 2023
Merged

feat: Add a GetPicutreCells function #1634

merged 3 commits into from
Oct 12, 2023

Conversation

yicixin
Copy link
Contributor

@yicixin yicixin commented Aug 28, 2023

PR Details

Description

When I import an xlsx, I need to go through all the cells to get the pictures, each call to the getPicture function traverses all the pictures, why not just provide a way to get all the pictures at once.

Related Issue

Motivation and Context

How Has This Been Tested

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@xuri xuri added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 28, 2023
@sides-flow
Copy link

I could really use this functionality as well!
I hope it gets merged soon, thanks!

@yicixin
Copy link
Contributor Author

yicixin commented Sep 8, 2023

When will this commit can be merged? 🤣

@xuri
Copy link
Member

xuri commented Sep 8, 2023

Thanks for your pull request. I need some time to review.

Copy link
Member

@xuri xuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late reply. I've left some comments.

picture.go Outdated Show resolved Hide resolved
picture.go Outdated Show resolved Hide resolved
xuri added 2 commits October 12, 2023 20:47
- Introduce new exported function GetPictureCells
- Upgrade dependencies module golang.org/x/net from 0.16.0 to 0.17.0
- Update unit tests
@codecov-commenter
Copy link

codecov-commenter commented Oct 12, 2023

Codecov Report

Merging #1634 (33d91d8) into master (f752f2d) will increase coverage by 0.02%.
The diff coverage is 100.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##           master    #1634      +/-   ##
==========================================
+ Coverage   98.99%   99.02%   +0.02%     
==========================================
  Files          32       32              
  Lines       27587    27641      +54     
==========================================
+ Hits        27311    27371      +60     
+ Misses        183      179       -4     
+ Partials       93       91       -2     
Flag Coverage Δ
unittests 99.02% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
picture.go 100.00% <100.00%> (+1.48%) ⬆️

Copy link
Member

@xuri xuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for your contribution. I have made some changes based on your branch. This feature will be released in the next version.

@xuri xuri merged commit 27f1056 into qax-os:master Oct 12, 2023
38 checks passed
@xuri xuri changed the title feat: Add a GetAllPicutres function feat: Add a GetPicutreCells function Oct 20, 2023
jenbonzhang pushed a commit to jenbonzhang/excelize that referenced this pull request Oct 22, 2023
- Introduce new exported function GetPictureCells
- Upgrade dependencies module golang.org/x/net from 0.16.0 to 0.17.0
- Update unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How do I locate a picture in a cell?请问如何定位到单元格中的图片?
4 participants