Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not stretch option for kitty #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DPDmancul
Copy link

@DPDmancul DPDmancul commented Oct 6, 2022

Proposal for solving #45 for Kitty

To test:

use viuer::{Config, print_from_file};

fn main() {

    let img = "image.png";

    let conf = Config {
        absolute_offset: false,
        do_not_stretch: false,
        ..Default::default()
    };
    dbg!(conf.do_not_stretch);
    print_from_file(img, &conf).expect("Image printing failed.");

    let conf = Config {
        absolute_offset: false,
        ..Default::default()
    };
    dbg!(conf.do_not_stretch);
    print_from_file(img, &conf).expect("Image printing failed.");
}

@virtualritz
Copy link
Contributor

I would suggest calling this stretch instead so you don't have to negate the value in your head (ergonomics).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants