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
Some scanned comics files have its book spine. Their ratio is so odd and unbalanced (for example, some book has 22(W) x 3000(H) spine image).
In the continuous reader, its width fits the screen (max 900px) and the height of example spine image becomes 122,727px, showing nearly endless purple image. https://imgur.com/a/vlavZKA
I tried to resolve this by adding following style temporarily.
img[uk-img] {
height: auto;
width: auto;
max-height:2000px; /* if removed, images have their original height */
}
This style restricted the height of image well and preserved its ratio, but caused another problem:
If the manga image has smaller width than 900px, it has its original width, not fitting the screen anymore.
The reader would not have unified image widths
Fig 01. the width of small image has its original size (850px)
Let me know about your opinion!
Saying shortly, I want to restrict too long height of the unbalanced image to reasonable height.
The text was updated successfully, but these errors were encountered:
I am not sure setting max-height is a good idea. For example, webtoons typically have very long pages. One solution I can think of is to only apply max-height to pages with very small width values (e.g., < 30).
Some scanned comics files have its book spine. Their ratio is so odd and unbalanced (for example, some book has 22(W) x 3000(H) spine image).
In the continuous reader, its width fits the screen (max 900px) and the height of example spine image becomes 122,727px, showing nearly endless purple image. https://imgur.com/a/vlavZKA
I tried to resolve this by adding following style temporarily.
This style restricted the height of image well and preserved its ratio, but caused another problem:
If the manga image has smaller width than 900px, it has its original width, not fitting the screen anymore.
The reader would not have unified image widths
Fig 01. the width of small image has its original size (850px)
Let me know about your opinion!
Saying shortly, I want to restrict too long height of the unbalanced image to reasonable height.
The text was updated successfully, but these errors were encountered: