I was able to print JPGs when I adjusted the code as per Issue 2, but I find that the image gets cut off at the bottom. While I can pad the image as a workaround, it would be good to get the whole thing. I suspect this might be a PIL problem.
I understand you (wgroeneveld) don't have the bandwidth to work on this, but perhaps someone has solved the problem... Thanks to all involved!
Image cut off at bottom #4
Hi,
I faced the same issue. It's most likely the Python filter not running.
L160 of main.go is a problem as it swallows stderr.
Replaced it with
cmd := exec.Command("/bin/zsh", argstr...)
output, err := cmd.CombinedOutput()
if err != nil {
log.Printf("Python filter error: %s", string(output))
}
You'll know exactly why the Python command doesn't run.
In my case (MacOS), I passed a few more Python fallback paths in ENV and it works
PATH: "/usr/local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/bin",
PYTHON: "/usr/local/bin/python",
PYTHONPATH: "/opt/homebrew/lib/python3.13/site-packages"
Thank you @truthmonger I expanded the error printing like you suggested.
Last week I also updated the way the Python script is called by first looking for the binary so that might also help: see #2
Cheers!
Doubt it that this fixes the issue of the cut off images though.
Thank you! It worked for me, after struggling a bit the path update solved it. Also, I make sure to send 9:16 aspect ratio images (I'm using the M02)
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?