Closed edupo closed 7 years ago
Trimage uses Qt and it's dependency is a running graphical environment, unfortunately also for the CLI interface. You can use Xvfb but if you're only ever on ssh, it might be easier to use the various command line tools that trimage uses (optipng, jpegoptim etc) directly.
@Kilian Thanks, I'll do it like that. I got into this project looking for a solution to avoid dealing with those complexities.
For me, the command interface trimage
proposes, was awesome in it's simplicity and it convinced me. But knowing the dependencies I would not publicize it as a command line tool or at least I would make clear the dependencies in the web page (that was my entry point to this project).
I would not publicize it as a command line tool or at least I would make clear the dependencies in the web page
I second this point. The Command line options section of trimage.org implies that one could run this as a CLI-only tool.
In my use case, I work from a VM and access a terminal through code-server, so there's no X environment.
On Ubuntu server 16.04. As you may imagine no Xserver is available and it will continue like that.
Either the statement
is wrong or I'm doing something wrong.
The problem is that I'm a windows user opening my little Cygwin to a Linux server not controlled by me, so Xserver is not available there. My idea was to create a small script to upload images to server, using trimage and returning them to windows. But I'm afraid that is not possible. Isn't it?