kcc icon indicating copy to clipboard operation
kcc copied to clipboard

How do I keep the content ratio so it doesn't stretch no matter what in KCC?

Open kvassmacncheese opened this issue 4 years ago • 3 comments

I'm very frustrated that no matter how I tried, all the content images will be stretched so it fits the screen... I mean I would like to have a margin rather than having the image stretched to a certain point of ugly... The stretch/upscale option doesn't work because the jpg I am converting seems to be a little bit sharper than my kindle paperwhite 3's resolution... and I just want to keep the aspect ratio(the margin will be small to notice), not having the image being stretched vertically or horizontally... pls help

kvassmacncheese avatar Mar 03 '20 18:03 kvassmacncheese

I don't know if this will work for you but what works for me is the following method:

  • set device to "other"
  • set custom width and height to the desired maximum values (in your case [screen resolution]-2*[margin])
  • depending on which between the images and the screen has the greatest resolution, full check "Stretch/Upscale" (screen) or leave it totally unchecked (images)

I use that setting with my device, which has a severely non-standard aspect ratio, and things work fine for me. As a side note, I full check "W/B margins" for black margins, since it doesn't crop any detected borders, as most books (at least all of those I've across) don't have black levels in margin for the application to detect them. If you're converting to epub and don't like black backgrounds, you can easily fix it by opening them with an editor (like Sygil or Calibre's inbuilt epub editor) and use the "find all & replace" function to turn all <body style="background-color:#000000;"> into just <body> (or change the hex value to any colour you fancy, which may be another hex value, easily findable with a google search, or any html colour keyword).

HTML standard colour keywords: https://www.w3schools.com/colors/colors_names.asp

l-l-l-l-l-l avatar May 08 '21 16:05 l-l-l-l-l-l

Thanks! Not sure if I get this right: will KCC automatically stretch images to the device (unless custom dimensions are applied)? Can this be the intention?

ursbraem avatar Aug 29 '22 20:08 ursbraem

Oh wait sorry 😬

Screenshot-29 08-001814

ursbraem avatar Aug 29 '22 20:08 ursbraem

might be fixed in the last release in https://github.com/ciromattia/kcc/pull/457/commits/2c198989528fc536b811b4da47a9cf17913cb9c1

Is the problem still present? If so, could you give some information? what reader device, input file and settings used?

darodi avatar Jan 22 '23 13:01 darodi