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

Jpeg optimization not working with "empty input file" error ("Optimize Images" plugin) #654

Open
Ciges opened this issue Jan 25, 2016 · 2 comments

Comments

@Ciges
Copy link

Ciges commented Jan 25, 2016

Hello,

I have founded that on my server (CentOs 5.10) jpeg optimizing does not works.

It has to do with the jpegtran command version used. For jpegtran 1.6 a different destination mus be used.

I made a dirty quick hack, replacing line 25 of "optimize_images.py" with the following one:

     '.jpg': ('jpegtran {flags} -copy none -optimize -outfile "/tmp/`basename {filename}`" "{filename}"; cp "/tmp/`basename {filename}`" "{filename}"; rm "/tmp/`basename {filename}`"', '', ''),

Hope it helps

@Ciges Ciges changed the title Jpeg optimization not working with "empty input file" error Jpeg optimization not working with "empty input file" error ("Optimize Images" plugin) Jan 25, 2016
@justinmayer
Copy link
Member

@Ciges: Would you consider submitting a PR to address the issue discussed here?

@Ciges
Copy link
Author

Ciges commented Mar 29, 2018

Hi,

@justinmayer I am not currently using Pelican anymore, so I am not up to date to last evolutions.

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