Git Product home page Git Product logo

Comments (8)

approached avatar approached commented on August 22, 2024 1

Which OS you are use? I just updated the package and now it works fine. Look in my install script:

  - wget http://de.archive.ubuntu.com/ubuntu/pool/universe/p/pngquant/pngquant_2.5.0-1_amd64.deb
  - sudo dpkg -i pngquant_2.5.0-1_amd64.deb

  - wget https://launchpad.net/ubuntu/+archive/primary/+files/gifsicle_1.88-1_amd64.deb
  - sudo dpkg -i gifsicle_1.88-1_amd64.deb

  - wget https://launchpad.net/ubuntu/+archive/primary/+files/jpegoptim_1.4.3-1_amd64.deb
  - sudo dpkg -i jpegoptim_1.4.3-1_amd64.deb

#  - sudo apt-get install -y pngquant gifsicle jpegoptim (not usable OS is old in travis)
  - pngquant --version # 2.5.0 (June 2015)
  - jpegoptim --version # jpegoptim v1.4.3  x86_64-pc-linux-gnu (libjpeg version: 8d  15-Jan-2012)
  - gifsicle --version # LCDF Gifsicle 1.88

from image-optimizer.

approached avatar approached commented on August 22, 2024

Same issue on my extended package.
https://travis-ci.org/approached/laravel-image-optimizer/jobs/151516271

Can try to give more write rights, like this:
chmod 777 -R /home/koichirose/public_html/dev/system/../assets/images/news/

from image-optimizer.

koichirose avatar koichirose commented on August 22, 2024

It works for me if I select "jpegoptim" manually. using the "smart" optimizer automatically select "jpegtran" and that command fails.

from image-optimizer.

zorobabel avatar zorobabel commented on August 22, 2024

I tested this issue for pngquant on Windows 8.1 and CentOS and get:

ImageOptimizer\Exception\Exception

Command failed, return code: 4, command: "D:\ImageOptimization\pngquant.exe" "--force" "--quality 70" "--ext=.png" "--" "D:\Development\PHP\tests\image-optimizer\a.png"
D:\ImageOptimization\pngquant.exe: unknown option -- quality 70

The generated command is wrong but this works fine (removing double quotes for --quality 70):

"D:\ImageOptimization\pngquant.exe" "--force" --quality 70 "--ext=.png" "--" "D:\Development\PHP\tests\image-optimizer\a.png"

from image-optimizer.

ChristianTheMinery avatar ChristianTheMinery commented on August 22, 2024

Just encountered this issue also, running PHP from the command line of an AWS server.

from image-optimizer.

psliwa avatar psliwa commented on August 22, 2024

I am not able to help if I won't get jpegtran and other stuff versions. Of course the output (from both: stdout and stderr) of the command generated by the library would be essential as well. @ChristianTheMinery Can you provide such info?

from image-optimizer.

robotE13 avatar robotE13 commented on August 22, 2024

Hi!
Jpegtran optimizer creates command with quoted jpegtran options. Like this "C:\Windows\jpegtran.EXE" "-optimize" "-progressive" "-copy none" "-outfile" "path-to-file" "path-to-file".

It is not works. If i run this command from cmd then jpegtran shows help screen and do nothing. With removed quotes it work well.

from image-optimizer.

psliwa avatar psliwa commented on August 22, 2024

Since 2.0.0 version a way of generating command has changed (symfony-process component is used), so it should not be a problem anymore.

from image-optimizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.