fabianmichael/kirby-imagekit

Mozjpeg on osx

iskrisis opened this issue · 1 comments

Hey i can't seem to get this work on osx when i want to test it.

Ive installed current mozjpeg with brew and its in my path working (cjpeg from commandline is working).

c::set('imagekit.mozjpeg.bin', '/usr/local/opt/mozjpeg/bin/cjpeg');
c::set('imagekit.mozjpeg.bin', 'cjpeg'); 

Doesn't have any effect. It doesn't even fail or give errors it just gives out unoptimized image.

Questions:

  1. I have mozjpeg 3.2 can it be the problem?
  2. From docs its not very clear if i have to use ImageMagick or i can use gd. You mention IM several times but i haven't found anything about why its better or that i have to have it.

Thanks!

Close this, i got it working.

Can confirm 3.2 brewed version works.