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

Some arguments ignored on Windows #56

Open
belg4mit opened this issue Mar 11, 2024 · 1 comment
Open

Some arguments ignored on Windows #56

belg4mit opened this issue Mar 11, 2024 · 1 comment

Comments

@belg4mit
Copy link

belg4mit commented Mar 11, 2024

Hello,

I just tried running master (v2.9) on Windows and it mostly works, but some arguments seem to be ignored? -r is heeded and -x is processed but ignored while -d, -m and -w have no effect. However, the flags appears to be set properly internally, per the output from this basic debug.patch:

D:\Tools\>c:\Progra~1\Python\python -V
Python 3.9.1
D:\Tools\>c:\Progra~1\Python\python imgp-master\imgp --mute --quality 90 -x 800x800 --overwrite -r imgp
90
True
True

Non-flag heeding invocation output pre-debug patch (identical with short or long-form parameters):

D:\Tools\>c:\Progra~1\Python\python imgp-master\imgp --mute --quality 90 -x 800x800 --overwrite -r imgp.test
imgp.test\10_PHOTO1\R_12fwK7duntjbSI9_IMG_0145.jpg
1280x960 -> 1280x960
396696 bytes -> 173783 bytes

Any ideas?

--JAPH

@Superego
Copy link

Superego commented May 26, 2024

@belg4mit, I don't think it works properly under windows. As you can see, you wanted to resize the image to 800x800, however the output gave you the same resolution as that of the original image.

D:\Tools>c:\Progra~1\Python\python imgp-master\imgp --mute --quality 90 -x 800x800 --overwrite -r imgp.test
imgp.test\10_PHOTO1\R_12fwK7duntjbSI9_IMG_0145.jpg
1280x960 -> 1280x960
396696 bytes -> 173783 bytes

I have the same issue when I use it under my win PC, all the global variables cannot be sent to the sub methods, like resize_image

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

No branches or pull requests

2 participants