-
Notifications
You must be signed in to change notification settings - Fork 418
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
Added ImageViewerPlugin, edited PluginLoader for images extensions. #28
base: master
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
ok to test |
Build succeeded. |
hmmm it fails with a 404 on ImageViewerPlugin.js |
could it be that you forgot your cmakelists.txt changes? |
Indeed, I didnt edit the that file, should I only add a row like: COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/ImageViewerPlugin.js ${VIEWER_BUILD_DIR}/ImageViewerPlugin.js ? |
indeed. |
Ok done, sorry for trouble ;) |
Build succeeded. |
hmm: http://ci.kogmbh.com/deploy/ViewerJS/ViewerJS-ci-pr28-b25-g7cd2c483/#/deploy/book.png now there is an issue with: did that actually work for you? |
Build succeeded. |
Mhh yes, you can see the first try here: http://meanbit.com/node/1 (dont mind the red errors on the top, that is a Drupal error I already fixed in the plugin.. and it is pretty slow loading, it is my test public server) Looks like for the usage I did that function never got invoked, by the way i'll add now.. Is possible to have a list (documentation) of all the functions that must be implemented? |
we currently have no such set of documentation. we would welcome such a contribution of course :-) please let us know if you need help adding the missing functions. and you can always use the deployment links which are posted here in github. |
At this point it errors out with |
Sorry guys im out of town until monday, then i'll fix all those missing functions in the image plugin |
Build succeeded. |
Done, please note I jsut copyed and pasted the function that I thought could be invoked from the outside.. ahhw, when I get some time i'll try to dive in the code to pull out some documentation about those functions.. |
http://ci.kogmbh.com/deploy/ViewerJS/ViewerJS-ci-pr28-b28-g645689f5/index.html#/deploy/book.png this seems to work for me now. default fit-to-width is debatable, but perhaps not the worst decision. @adityab any more comments/remarks? |
Choosing "Automatic" in the zoom menu does not have any effect for me at all, independent on the current zooming state. On purpose? What should happen? Also does fit-to-width go beyond the max. zoom level reachable by clicking the "+" button, which is "400 %". And the zoom menu only offers "200 %" as max. value, seems inconsistent. |
Going to presentation mode results with above example results in scrollbars. I expect no scrollbars in presentation mode, but rather fit-to-view. What should happen in presentation mode? |
The page selector in the lower toolbar also needs work. It shows "0" for the number of pages, and starts with "1" for the currently displayed "page". Clicking the page up/down buttons (which are not disabled) results in switching between "0" and "1" for the current page, without any effect on what is displayed. |
The link from "ImageViewerPlugin.js" in the about dialog goes to https://github.com/mozilla/pdf.js/. Instead it should go to where? |
the plugin is at home in ViewerJS itself, so there is no external upstream to refer to. |
Yes there are some issues with the zoom, i'll give it a check |
+1 for this. |
Does this plugin also supports TIFF images? |
This plugin actually does nothing except to show the image via an simple
|
Any documentations on how to use this feature? |
Clean add of ImageViewerPlugin.