Closed sage-IT closed 6 years ago
Follow-up to: https://github.com/readium/SDKLauncher-iOS/issues/87
...and there's already a function for this:
https://github.com/readium/readium-sdk/blob/80a71fedf03f6f11ba7f900daf0ac67675388908/ePub3/ePub/package.cpp#L1682
shared_ptr<ManifestItem> Package::CoverManifestItem()
Then, you can read the image resource into a buffer, via:
...and:
@sage-IT were you able to get cover image ?
@danielweck the link you mentioned have code in cpp. How can I use it in swift ?
Hello @rohitvishwakarma-sf you probably need to look into https://github.com/readium/swift-toolkit
This issue is a Question
Hey guys so I've been working on and Off on the IOS SDK and have made a bit of progress with creating a Cell Collection View and Displaying the Epub title as a label in each cell. Now I want to get the cover image or first page as an UIImage. Is this referenced as a one of the path components? If not what would be the best solution.
Related issue(s) and/or pull request(s)
NA
Expected Behaviour
UIImage View displays image of specified ePub
Observed behaviour
I can add an image to a project and just display that but
Steps to reproduce
Test file(s)
My project files for the SDKLauncher are here on google drive
Product