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

system gifsicle not working #151

Open
seb-sykio opened this issue Jul 17, 2017 · 10 comments
Open

system gifsicle not working #151

seb-sykio opened this issue Jul 17, 2017 · 10 comments

Comments

@seb-sykio
Copy link

hi,
when I use image_optim_pack, no problem, but when I want to use system gifsicle (ubuntu), i have this error : "Failed to manipulate with rmagick, maybe it is not an image?"
I tried with default ubuntu version (1.78) and then with version I installed muself (1.83 and 1.89) but still same problem. I tried by installing it to /usr/local/bin first and then /usr/bin

I could use image_optim_pack but I notice a lot of random other issues on jpg and pnd (i could not reproduice, but users of my website told me)
Last week I was still using image_optimizer gem and I didnt have any problem with system gifsicle

any idea ?

thank

@toy
Copy link
Owner

toy commented Jul 18, 2017

I suggest to try to optimise the gif that causes problems using the cli and check if the result is malformed. rmagick in the message suggests that the problem is in the pipeline after image_optim.

It would be great if you could find which issues are caused by image_optim_pack.

@seb-sykio
Copy link
Author

hi,

thanks for answer. As I said, the same gif does not make any problem when I use image_optim_pack

@toy
Copy link
Owner

toy commented Jul 18, 2017

Yes, so try using image_optim --no-pack --verbose xxx.gif

@seb-sykio
Copy link
Author

image_optim v0.25.0
config:
  pack: false
  verbose: true
  pngout: false
  svgo: false
  pngcrush: false
nice: 10
threads: 40
pack: false
skip_missing_workers: false
allow_lossy: false
cache_dir: 
cache_worker_digests: false
Resolved advpng 1.18 at /usr/bin/advpng
Resolved optipng 0.7.6 at /usr/bin/optipng
Resolved pngquant 2.0.1 at /usr/bin/pngquant
WARN: pngquant 2.0.1 at /usr/bin/pngquant (< 2.1) may be lossy even with quality `100-`
Resolved jhead 2.97 at /usr/bin/jhead
Resolved jpegtran 1.3.0 at /usr/bin/jpegtran
Resolved jpegoptim 1.3.0 at /usr/bin/jpegoptim
Resolved gifsicle 1.78 at /usr/bin/gifsicle
WARN: gifsicle 1.78 at /usr/bin/gifsicle (< 1.85) does not support removing extension blocks
Workers by format:
jpeg:
  jhead:
  jpegoptim:
    allow_lossy: false
    strip: ["all"]
    max_quality: 100
  jpegtran:
    copy_chunks: false
    progressive: true
    jpegrescan: false
png:
  optipng:
    level: 6
    interlace: false
    strip: true
  pngquant:
    allow_lossy: false
    max_colors: 256
    quality: 100..100
    speed: 3
  advpng:
    level: 4
gif:
  gifsicle:
    interlace: false
    level: 3
    careful: false
  gifsicle:
    interlace: true
    level: 3
    careful: false
argument is not a file or a directory or does not exist
optimizing: ......✓ 0.008146582s gifsicle --optimize\=3 --no-interlace --output\=/tmp/my_gif_file20170718-25588-6itexb.gif --no-comments --no-names --same-delay --same-loopcount --no-warnings -- my_gif_file.gif
✓ 0.00747005s gifsicle --optimize\=3 --interlace --output\=/tmp/my_gif_file20170718-25588-6itexb.gif --no-comments --no-names --same-delay --same-loopcount --no-warnings -- my_gif_file.gif
optimizing: 100.0% (elapsed: 0s)
------         my_gif_file.gif
Total: ------       

@toy
Copy link
Owner

toy commented Jul 18, 2017

By the output it looks like the gif can't be optimised further, so the image should not be changed

@toy
Copy link
Owner

toy commented Jul 18, 2017

May the problem be in how image_optim is added to the pipeline?

@seb-sykio
Copy link
Author

sorry I dont understand what you mean. How can I check this ?

@toy
Copy link
Owner

toy commented Jul 19, 2017

How do you add image_optim to the pipeline?

@seb-sykio
Copy link
Author

i'm using rails, not sure this answer your question

@toy
Copy link
Owner

toy commented Jul 20, 2017

By the error message it seems that you are using carrierwave, can you debug what happens with the image when you use system gifsicle?

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