-
Notifications
You must be signed in to change notification settings - Fork 19
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
Inconsistent output file #34
Comments
Hello there , First of all, every command writes to Now as for the As for the overwriting part, gowall does not overwrite your original image you give as input but instead creates a new image on its specified or default directory as I explained above. Now as you noticed, the new image gets overwritten that's why I thought of creating a new option in the Image(1).png
image(2).png
.... |
Saving it as a copy with an incrementing number is a good idea. I would love to see that as a default. Thanks for expanding the -o flag! The reason I was blowing this issue up so much is because I can't stand that output directory, I think π . Putting those files for the upscaler into XDG_CACHE_DIR/gowall or something could work. Then write every output file to the current directory, or where specified by the user. Add the incrementing number segment to the filename if the file already exists. I'm sorry for being too harsh. I actually really appreciate what you accomplished here. |
Don't worry about that it does not bother me, i'm open minded and i accept any criticism regarding any feature of gowall as long as it leads to an improvement and i get to decide whether to implement it or not , or if i want it in the project. As long as someone does not demand for me to implement something then its cool. Remember, i created this project out of passion and i dedicate my free time however i like, this is a boundary that every open source project maintainer/author should have. |
As of 0b1954b the use of the Take the scenario where your default directory is
gowall convert ~/Pictures/img.png -t rose-pine -o newName Your image will be saved in the default directory in this case
gowall convert ~/Pictures/img.png -t rose-pine -o newName.png
# or this : gowall convert ~/Pictures/img.png -t rose-pine -o ~/New/Folder/newName.png Here since we have an extension it will save the image
gowall convert ~/Pictures/img.png -t rose-pine -o newName.webp Here it will save In the future the |
Hi there! π
I just went through various features and what I stumbled upon is that (feelingly) every feature is writing somewhere else. For example, the "convert β¦ -f png" is overwriting the input file. "bg" and "upscale" do not have an output parameter.
Best practice would be to always write to the same directory as the input file, appending something to the filename - do not overwrite the input file, if not explicitly requested (e.g. --in-place). While also always giving the option to specify the output parameter.
This way it would be much more predictable and much more easily integrated into scripts.
Thank you very much!
The text was updated successfully, but these errors were encountered: