Add support to load multi page tiff files into chunks#845
Conversation
Signed-off-by: anna-charlotte <[email protected]>
Signed-off-by: anna-charlotte <[email protected]>
|
this looks good. Should the method still be named |
Signed-off-by: anna-charlotte <[email protected]>
Yes, I agree, this way the name doesn't really fit. Is changing the functions name not too much of a change though? Otherwise, I can change it to something like |
changing the function name is too big of a change. Maybe it is okay like this, Lets see if the test pass and we can rediscuss the API |
Codecov ReportBase: 86.06% // Head: 85.65% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #845 +/- ##
==========================================
- Coverage 86.06% 85.65% -0.42%
==========================================
Files 138 138
Lines 7046 7067 +21
==========================================
- Hits 6064 6053 -11
- Misses 982 1014 +32
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Signed-off-by: anna-charlotte <[email protected]>
Co-authored-by: Alex Cureton-Griffiths <[email protected]> Signed-off-by: anna-charlotte <[email protected]>
|
📝 Docs are deployed on https://ft-feat-support-multi-page-tiff-files--jina-docs.netlify.app 🎉 |
A tiff file can contain multiple images. Currently, only the first image is being stored to a Documents
.tensorwhen calling.load_uri_to_image_tensor(). We want to add support of multi-page tiff files now. In the case of a multi page tiff file, we want to save them to the Documents.chunksso that each image is wrapped in its own Document.