You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add image parsing support
* Refactor image parsing logic and fix some issues
* Add comments to new methods for image parsing in sheet
* Add tests for parsing images
* Refactor image parsing, add comments and update tests
* Update Readme
Creek does not parse images by default. If you want to parse the images,
56
+
use *with_images* method before iterating over rows to preload images information. If you don't call this method, Creek will not return images anywhere.
57
+
58
+
59
+
Cells with images will be an array of Pathname objects.
60
+
If an image is spread across multiple cells, same Pathname object will be returned for each cell.
Creek will most likely return nil for a cell with images if there is no other text cell in that row - you can use *images_at* method for retrieving images in that cell.
74
+
54
75
== Contributing
55
76
56
77
Contributions are welcomed. You can fork a repository, add your code changes to the forked branch, ensure all existing unit tests pass, create new unit tests cover your new changes and finally create a pull request.
# Iterates through the drawings and saves images' paths as Pathname objects to a hash with [row, col] keys.
76
+
# As multiple images can be located in a single cell, hash values are array of Pathname objects.
77
+
# One image can be spread across multiple cells (defined with from-row/to-row/from-col/to-col attributes) - same Pathname object is associated to each row-col combination for the range.
0 commit comments