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

Doesn't work with jpegoptim 1.3.0-1ubuntu1 #1

Open
johannburkard opened this issue Dec 19, 2014 · 1 comment
Open

Doesn't work with jpegoptim 1.3.0-1ubuntu1 #1

johannburkard opened this issue Dec 19, 2014 · 1 comment

Comments

@johannburkard
Copy link

Just tried cjpeg-dssim on my box running Ubuntu 14.04:

jpegoptim: unrecognized option '--stdout'
convert.im6: no decode delegate for this image format `/tmp/magick-qBVT656h' @ error/constitute.c/ReadImage/544.
convert.im6: no images defined `png:-' @ error/convert.c/ConvertImageCommand/3044.
  error: Read error
Can't read /dev/stdin
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error

You may want to try the following code that is absolutely untested:

                "jpegoptim") JPEG_COMPRESSION_COMMAND="tmp=`tempfile`; jpegoptim -q -p -f --max=\${__current_jpeg_quality} --strip-all --all-progressive -d\${tmp} \${INPUTFILE} | cat \${tmp}";;
@masfree
Copy link

masfree commented Sep 24, 2018

May be same problem.

cjpeg-dssim jpegoptim file_name.jpg
Can't read /dev/fd/63: text chunk keyword too short or long: must have size 1-79
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error

And when i try again with new file created with script

cjpeg-dssim jpegoptim file_name_cjpeg_dssim.jpg
and script createoptimaized image with name file_name_cjpeg_dssim_cjpeg_dssim.jpg

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

2 participants