View Single Post
Old 10-21-2025, 11:18 AM   #46
ElMiko
Fanatic
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 502
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Quote:
Originally Posted by JSWolf View Post
Not a good idea to allow it to look bad in RMSDK. It needs to look good enough in RMSDK. You can't ignore the fact that current devices use an older RMSDK and it will be used to read eBooks.
This commentary, I'm afraid, is entirely without content.

"Good enough" for what? "Good enough" for whom? You?

I think that referring back to the beginning of the thread is instructive here.

The problem I described was I want to the dimensions of an image to be defined be a specified height and proportional width UNLESS the window size made it impossible for those height-based dimension to fit on the screen without affecting the aspect ratio, in which case the image would be resized to maintain the correct aspect ratio.

Your response was:

Quote:
To solve the problem, make the image the height you want. Then the only issue will be if it has to reduced in width. You have two options. It can be reduced so the aspect ratio is correct or reduced so the aspect ratio is not correct.
So, your solution was to restate what I was trying to accomplish without providing an actionable pathway to acheiving it. Actually, I'm being overly charitable in that summary, because part of your non-solution was to say that one of my options is to "[reduce] the image so the aspect ratio is not correct" which is explicitly the option that is OFF the table in describing the desired effect... namely maintaing the aspect ratio in all circumstances while having the image be height-defined in any window that will accomodate it without skew. Truly remarkable.

Now, I'm ALL ears if you have a way acheive what you said should be acheivable in your earlier post.

Based on RbnJrg extensive and patient explanations, I am under the impression that there is no way to get ADE to have a fixed height ("make the image the height you want") but rescale (that is, override the fixed height) to fit the screen if it has to be reduced in width ("reduced so the aspect ratio is correct"). If I am wrong, no one would be happier to discover it than I.

Again, limited by my amateur understanding, it appears that RbnJrg's max-height-based solution works perfectly in non-ADE environments. And, in an ADE environment, it will simple produce an image that is alway filling 100% of the width of the viewing window, but at least is not skewing the aspect ratio, provided that it is (like the image in the original example) naturally wider than it is tall.

So, JSWolf, if you have an actionable code that—in ADE and all other ereading environments—will always accomplish a fixed height that will rescale if the screen is too small (which, as per the above response, you said is a live option), please share it.

Last edited by ElMiko; 10-21-2025 at 11:33 AM.
ElMiko is offline   Reply With Quote