jarun / imgp

:camera_flash: Fast batch image resizer and rotator
GNU General Public License v3.0
1.03k stars 50 forks source link

Some arguments ignored on Windows #56

Open belg4mit opened 8 months ago

belg4mit commented 8 months ago

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 commented 5 months ago

@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_IMG0145.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