Skip to content

Feature Request: Custom Page Scaling #38

@frnco

Description

@frnco

The original/fit width/fit height/etc. options are nice, but can be a pain, especially when using continuous mode in widescreen hi-resolution laptop monitors.

Adding other variations could help, but ideally there would be a custom zoom option (i.e. Zoom Slider and/or shortcut Ctrl plus either +or - seen in many other programs).

Seeing as many programs use some form of custom scaling, I imagine it should be somewhat straightforward to implement, I'm currently considering forking the project to work on a fix, since I find QComicBook quite better than pretty much every other alternative I've tried. Depends on how much time I have, the possibility of me finding a software that already does it, and how much of a Pain it is to fix this vs. fixing other stuff or even making something more barebones from scratch.

If there's any interest I'll try to prioritize adding this feature to QComicBook though, since I find it pretty great, so do tell me if that's the case.

Edit: For now I'll just be using a custom version of

    const double wRatio = static_cast<double>(viewW) / totalWidth;

and

else if (size == FitWidth)
    {
        pixmapWidth = viewW;
        pixmapHeight = static_cast<int>(static_cast<double>(totalHeight) * wRatio);
    }

to fit my needs. From what I see, it'd most likely be easier to either change BestFit or add a new option, instead of adding the whole custom scaling stuff. Especially considering this project is pretty stable and hasn't seen much change in a while.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions