Trying to run rembg through PHP script. No luck yet :( #444
B2CGitMaster
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please someone help me figure this out, please....
OS is Windows Server 2019
Python version is 3.10
Installed rembg using "pip install rembg"
rembg i "input file" "output file" works just great for admin and non-admin user BUT only within the console itself. e.g. user bob running IIS application can run rembg by this command:
exec('rembg i "image.png" "image2.png"', $output);
but the output file size is always 0.
If I log this user through Basic Authentication (entering username password), the script runs flowlessly, but the application must be run in anonymous mode.
exec function can run python scripts, no problem.
Can anyone help me?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions