Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INstalled and compiled in Centos #218

Open
uhlhosting opened this issue Aug 2, 2016 · 16 comments
Open

INstalled and compiled in Centos #218

uhlhosting opened this issue Aug 2, 2016 · 16 comments

Comments

@uhlhosting
Copy link

Nothing works... If I run mozpeg is just blank...

Used this steps to install:
autoreconf -fiv
mkdir build && cd build
sh ../configure
sudo make install

Runing Centos 7.
The files are all present it simply does not do anything...

@kornelski
Copy link
Member

What do you mean by blank? How are you trying to use it?

@uhlhosting
Copy link
Author

I run mozjpeg and nothing shows.

@kornelski
Copy link
Member

mozjpeg mainly is a library with a C API for use by other tools, so it doesn't have any GUI by itself.

It comes with a simple command-line tool, cjpeg, that only converts files to JPEG. It has no GUI, it does not display anything.

If you're not a programmer, but you're looking to use mozjpeg, look for other applications built on top of mozjpeg.

For Mac I wrote https://imageoptim.com and I have a basic web UI for other platforms: https://imageoptim.com/mozjpeg

@uhlhosting
Copy link
Author

uhlhosting commented Aug 5, 2016

Hello I compiled this on Centos 7 . If I run the cmdline i get this:

`root@panel [~/uhlhosting/git]# mozjpeg

`

Every cmd line has a help menu or something. Or instructions or says something, returns something.
I followed this install: https://blarg.co.uk/blog/how-to-install-mozjpeg

@kornelski
Copy link
Member

This one, like cat, by default expects input from stdin.

@uhlhosting
Copy link
Author

So how would it look like a working cmd line to optimize jpegs?

@kornelski
Copy link
Member

kornelski commented Aug 5, 2016

See

cjpeg -h

(or mozjpeg -h) for instructions

@uhlhosting
Copy link
Author

Yes thank you that works!

@uhlhosting
Copy link
Author

uhlhosting commented Aug 5, 2016

what would be a good swich to optimise images, no rezise, no rename, just optimisation and maybe removal of any tags. Thank you!

@kornelski
Copy link
Member

Check out the jpegtran command. It's the same as for libjpeg.

@FossPrime
Copy link

I'm on Fedora, ran uhlhosting's steps and I get "make: *** No targets specified and no makefile found. Stop." Has anyone here gotten this to build?

@kornelski
Copy link
Member

"No makefile found" means you haven't run ./configure.

@FossPrime
Copy link

FossPrime commented Jun 5, 2017

@pornel thanks for the tip. I had ran ./configure but it runs into an error configure: error: no nasm (Netwide Assembler) found :/ I'm looking into it.
Update: Success! on RHEL you'll need nasm before running ./configure sudo dnf install nasm

Instructions for Fedora

sudo dnf install nasm automake libtool
autoreconf -fiv
./configure
make
./cjpeg -quality 85 -outfile ~/output.jpg ~/input.jpg

Centos7 Instructions

sudo yum install nasm automake libtool
./configure
make
./cjpeg -quality 85 -outfile ~/output.jpg ~/input.jpg

@dvershinin
Copy link

Users of CentOS / RedHat 7 may want to install jpegoptim compiled with MozJPEG using these instructions (no compilation required, ready to install package).

@goodpsdev8
Copy link

Users of CentOS / RedHat 7 may want to install jpegoptim compiled with MozJPEG using these instructions (no compilation required, ready to install package).

It dosn't work now.

@dvershinin
Copy link

@goodpsdev8 It works. Access to the repository is now subscription-based.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants