Problems with Trimage Image compressor. It lacks of 2 libraries. please help!.

3 replies [Last post]
panoramix
Offline
Joined: 05/05/2017

Hi, I easily installed "Trimage" from "Graphics" repositories, and I m using 32 bits trisquel belenos. It did not work, nothing happens when draggin or selecting pictures, just screen remains white and "recompress" greyed out, and sometimes a message "queued" appears. I try to compress an image by running a command and it seems I find why it does not work with GUI:

trimage -f uncompressed.jpg --file=optimized.jpg

and it reports:

pngcrush 1.7.65, uses libpng 1.2.49 and zlib 1.2.8
Check http://pmt.sf.net/
for the most recent version.
[error] optimized.jpg not a supported image file and/or not writeable

So I try to install these libraries and I got these error messages:

with zlib:
sudo apt-get install zlib1g-dev
reports:

The following packages have unmet dependencies:
zlib1g-dev : Depende: libc6-dev pero no va a instalarse o
libc-dev
Unable to correct problems, you have held broken packages.

with libpng:
after getting content ( wget http://prdownloads.sourceforge.net/libpng/libpng-1.5.4.tar.gz ) and uncompressing the tar file I cd to the directory where I got everything and then I run:
./configure --prefix=/usr/local/libpng

and it reports:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/gwx/Descargas/libpng':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

So I cannot have any of the required libraries.

How could I solve my problem with Trimage?. Thanks in advance to those who could say something back!:).

ADFENO
Offline
Joined: 12/31/2012

When you installed trimage, you already installed pngcrush, and also
zlib1g, and libpng12-0. No need to install again. :)

If I'm not mistaken, pngcrush can only have .png images as results. No
.jpg. Try replacing "optimized.jpg" with "optimized.png".

--
- [[https://libreplanet.org/wiki/User:Adfeno]]
- Palestrante e consultor sobre /software/ livre (não confundir com
gratis).
- "WhatsApp"? Ele não é livre, por isso não uso. Iguais a ele prefiro
GNU Ring, ou Tox. Quer outras formas de contato? Adicione o vCard
que está no endereço acima aos teus contatos.
- Pretende me enviar arquivos .doc, .ppt, .cdr, ou .mp3? OK, eu
aceito, mas não repasso. Entrego apenas em formatos favoráveis ao
/software/ livre. Favor entrar em contato em caso de dúvida.

panoramix
Offline
Joined: 05/05/2017

No way, same error but found another app called Converseen that completely solved my need of image compression. Setting quality image to 85 just halves the size and turning a 2 MB picture into a 855Kb pic ( which is very cool ) is as easy as setting this bar on 75. On both cases got great quality, plus I got complete control of my conversions. Thanks anyway. Same error with png. Trimage does not work for me. :(.

Completely recommend Converseen.

ADFENO
Offline
Joined: 12/31/2012

I wonder if pngcrush can be used directly... I have never used it
myself, but that would be a good thing to test. :)