-
Notifications
You must be signed in to change notification settings - Fork 186
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
Image slide show leaves artifacts from slide to slide #313
Comments
There's something wrong with this HTML page, irrespective of Readium. On Windows 8.1, I can click the image slideshow left/right arrows in IE and Firefox (the images change accordingly), but in Chrome nothing happens at all. That's when opening the HTML file on its own. Obviously in the Readium Chrome extension it doesn't work either. |
Daniel, when you write "in the Readium Chrome extension it doesn't work BTW I think Ric's original bug report was slightly ambiguous, where it On Wed, Apr 8, 2015 at 1:34 PM, Daniel Weck [email protected]
|
The EPUB image slideshow works fine in Readium cloud reader in IE and Firefox, but on Chrome (cloud reader and extension) the clicked arrows do not result in images switching around (nothing visible happens). Same issue / observations with the raw HTML file opened directly. |
@whmccoy same problem in Chrome when the HTML is served from HTTP, so the issue is not related to local filesystem access restrictions. |
Reproduced reported bug (rendering artifacts on Mac OS/X 10.9.2 with So the plot thickens (but note that this EPUB was apparently generated from --Bill On Wed, Apr 8, 2015 at 1:58 PM, Daniel Weck [email protected]
|
Seems to only happen when the image is resized to something larger than its natural width/height: My screen recording: Edit: |
This commit, when the "scaler" div for fxl was added, causes the issue for me. It looks like this is a chrome bug when the iframe is scaled via transforms. (Reproduced outside of readium with a simple HTML test case) Edit: I don't know the intent behind this change with the scaler div vs what came before it. The commit message talks about "bug 76" but this sounds like an id for a bug in bugzilla and not a github issue. |
@jccr would this setting help? https://github.com/readium/readium-shared-js/blob/develop/js/views/one_page_view.js#L565
(it's used by some native apps) |
Yea that helps. If you set that to true, what happens on your end @danielweck? Do the buttons not work for you still? |
Does the workaround that @danielweck proposed actually resolve the bug? If so, does it cause regressions elsewhere? @danielweck : You say "some" apps use it. But not all? Because of regressions or they simply don't need it? Or both? |
@rkwright currently only OSX uses this workaround, see: Code references: readium/readium-shared-js@ca4e1d0#diff-7f14747656265ce3e39fee34e732d161R78 var reader = new ReadiumSDK.Views.ReaderView(
{
needsFixedLayoutScalerWorkAround: true,
el:"#viewport",
etc...
}); _needsFixedLayoutScalerWorkAround = options.needsFixedLayoutScalerWorkAround;
this.needsFixedLayoutScalerWorkAround = function() { return _needsFixedLayoutScalerWorkAround; } |
@rkwright |
The "scaler div" was introduced via Bugzilla issue 76 (as Juan pointed out): https://app.devzing.com/Readium/bugzilla/show_bug.cgi?id=76
|
Alright, follow-up to my comment above, here is a new issue, and its accompanying fix: |
Bugzilla 76 comments (thanks @rkwright !): readium/readium-shared-js@68d9ac9 It seems that if scaling applied to the iframe it is picked by the rendering engine and applied to the background image. Scaling applied to the root element of the one page view solves the problem but brakes continues scrolling view because to stack pages properly there root element should be resized to the scaled size. To mitigate this introduced extra child div element (id="scaler") wrapped around the iframe and applied scale to it. More debugging notes: The problem seems to be that the background image is cropped to the size of the iframe. I tried using background-size attribute on the iframe, html element and body element (the background image is no the body) but could find no permutation that worked. I am wondering if this might have to do with the fact that the viewport size and the html size are different. The viewport size is defined in the head to be the size of the background image. The html height and width is specified in the style sheet for the epub. if in the debugger I take the size and transform values off of the html and put them on the iframe everything works. Although I'm sure that is NOT the overall fix. |
Extract from the above Bugzilla comment (and my follow-up below): I wonder if my trivial fix readium/readium-shared-js@ac77726 for issue readium/readium-shared-js#177 means that we can now apply the scale transform to the root HTML element whilst preserving (i.e. not breaking) the scroll-view iframe@height computations. To be tested. |
The two posts above are the gist of the info from bug 76 in bugzilla. I can supply the entire blob if anyone is interested. |
…clipping when zoom > 100%) for needsFixedLayoutScalerWorkAround. Currently only affects OSX ReadiumSDK launcher, but the plan is to use the needsFixedLayoutScalerWorkAround scaling mode for other launchers too (this would address the rendering glitch in Chrome-Windows and Chrome-OS #313 )
Note that I merged the scaling bug fix into the develop branch: This issue (#313) is still open, we need to test |
According to the original comments in Bugzilla 76: ...the key potential problem when using We could easily enforce the use of // is false by default, but just making this initialisation setting more explicit here.
readerOptions.needsFixedLayoutScalerWorkAround = false; https://github.com/readium/readium-js/blob/master/epub-modules/Readium.js#L70 (this would not automatically affect iOS, Android, Windows etc. ReadiumSDK app launchers ... these would have to explicitly set |
…s-browser cloud reader build configurations. See readium/readium-js-viewer#313
Okay, as per my comment above, all ReadiumJS apps (i.e. Chrome extension and cross-browser cloud reader) now use the The build from the develop branch is now deploying to DivShot http://readium-cloudreader.divshot.io I tested the Readium scroll view in Chrome, everything looks fine. Fingers crossed. |
PS: the previous/next slideshow arrows do not work in Chrome on Windows 8.1 (even when opening the HTML directly with the web browser, outside of Readium). Works fine in Firefox and IE. Separate issue: #334 |
An EPUB generated from InDesign has a slide show. As one navigates from page to page, it leaves behind slices of the previous page when the aspect rations of the images don't match. This bug is not occurring in SDKLauncher-OSX. Both apps are release/0.18
![idd-artifact](https://cloud.githubusercontent.com/assets/3025864/7024171/7067b284-dd00-11e4-9355-33f730bafaf2.png)
Sample screen capture:
Test EPUB is here:
https://readiumfoundation.box.com/shared/static/7heji9osfyd1y2vghroeapb5lyrrb4ku.epub
IDD assets are here: (warning: 122 MB)
https://readiumfoundation.box.com/shared/static/mvfpfsbakfzxbbks34csa3kjx3wemfkt.zip
The text was updated successfully, but these errors were encountered: