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

Add resize output option #56

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

TheGameratorT
Copy link

@TheGameratorT TheGameratorT commented Nov 20, 2023

Many times I had the case where I just wanted to remove noise on an image without actually resizing it.

Saving images to the disk in very large sizes is not very efficient and it wasted write cycles on my SSD.

I needed to run the model at x2 scale but still save it at x1.

This pull request adds a -r resize option that before writing the output file to the disk, resizes the output in memory if the dimensions of the output don't match what the user specified, thus saving faster and saving disk space.

@Ohrwerk
Copy link

Ohrwerk commented Apr 22, 2024

I would also find this function very useful, but couldn't it also be realized via an "-S 1"?

@TheGameratorT
Copy link
Author

I would also find this function very useful, but couldn't it also be realized via an "-S 1"?

The -s argument does not allow 1 to be specified.

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