Kilian / Trimage

A cross-platform tool for optimizing PNG and JPG files.
http://trimage.org
MIT License
706 stars 55 forks source link

Using trimage on linux server edition #14

Closed eberfreitas closed 13 years ago

eberfreitas commented 13 years ago

Hey guys!

First of all, thanks for this awesome tool! It's really good :)

I'm trying to use it on my web app and it runs on Ubuntu Lucid 64bit Server Edition. When I try to run it, I get the following error message:

trimage.py: cannot connect to X server

Is there a way to install this dependecty and start to work with it? Or is there another way? Thanks mates!

Kilian commented 13 years ago

Hey, At the moment you need an X server for trimage, due to it using Qt. I don't see this changing soon, but we might be able to figure something out in the future.

eberfreitas commented 13 years ago

Ow, that is too bad, but I understand :) I'll try to work around it ;)

darylounet commented 11 years ago

You can workaround this issue with xvfb-run (http://packages.ubuntu.com/precise/xvfb) : /usr/bin/xvfb-run -a trimage [...]

NiklasBr commented 10 years ago

Is it possible to add X server to the dependencies of trimage?

'sudo apt-get install -f trimage' never mentions X server.

gogo125 commented 7 years ago

Here are the steps I took to get this working: To Install: sudo apt-get install trimage sudo apt-get install xvfb sudo apt-get install libpng-dev

To Run: /usr/bin/xvfb-run -a trimage theImage.png

In the end however, I stuck with just using optipng and jpegoptim instead as there wasn't much of a compression gain.

Blueblazer172 commented 4 years ago

Here are the steps I took to get this working: To Install: sudo apt-get install trimage sudo apt-get install xvfb sudo apt-get install libpng-dev

To Run: /usr/bin/xvfb-run -a trimage theImage.png

In the end however, I stuck with just using optipng and jpegoptim instead as there wasn't much of a compression gain.

yep worked for me this way. Thanks !