question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using trimage on linux server edition

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 12 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
gogo125commented, Sep 21, 2017

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.

0reactions
Blueblazer172commented, Nov 7, 2019

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 !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trimage (lossless) image compressor
A cross-platform tool for losslessly optimizing PNG and JPG files for web. Trimage is a cross-platform GUI and command-line interface to optimize image...
Read more >
Trimage, reduce the size of the images you want to share
In the next article we are going to take a look at Trimage. This interface will help us to reduce the size of...
Read more >
Compress Images In Ubuntu Using Trimage Compressor
Open Trimage through Dashboard or Menu: The main window of Trimage will look like below: Add the photos which you want to compress...
Read more >
How to Install Trimage on Linux Mint 20 - LinuxWays
Trimage is a cross-platform image compressor designed to be used with the macOS and Linux operating systems. This tool is capable of performing...
Read more >
Trimage image compressor-losslessly optimizing PNG/JPG files
Trimage is a cross-platform GUI and command-line interface to optimize image files via optipng, advpng and jpegoptim, depending on the filetype (currently, PNG ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found