View Single Post
Old 10-21-2020, 05:05 AM   #76
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by PapaKilo View Post
I removed the older version because when I set a Width and Height and keep aspect ratio it always assumes the Width and sets the Height to the calculated value to maintain aspect ratio.

What I would really like is to be able to keep the Height I set and have the plugin change the Width to keep the aspect ratio.

Is this doable?

Could there be an option available to select which would be constant the height of the width.
The resize is always done to fit the image within the box described by the size. If the keep aspect ratio option is off, then the image will be the same size as the box.

With the keep aspect ratio option on, the size of the final image will depend on the aspect ratio of the input image, and the aspect ratio of the new size. If the image is tall-and-thin, and the new size is short-and-fat, then the height is going to be the determining size. If you resized a wide image to, then the width is going to be the size used.

If you want to always have the same width image, just set the height to something ridiculously large. Setting the height to 10 times the width will probably mean all images will effectively be "fit-to-width".

If the plugin isn't working as described above, please report it with some examples. And run calibre in debug mode and include the log for me to look at.

If someone does want to add options such as fit-to-width and fit-to-height, please do so. I don't use the plugin much. The changes I made before were mainly to keep it working. If someone wants to take over, I'm happy to let them.
davidfor is offline   Reply With Quote