pngquant libjpeg error appearing on OSX when run with PHP -
i trying run pngquant php. use code:
echo $get_compress = exec("find . -name '*.png' -exec /usr/local/bin/pngquant --ext .png --force 256 {} \; 2>&1", $output); print_r($output);
the error getting looks this:
in /system/library/frameworks/imageio.framework/versions/a/imageioarray ( [0] => dyld: symbol not found: __cg_jpeg_resync_to_restart [1] => referenced from: /system/library/frameworks/imageio.framework/versions/a/imageio [2] => expected in: /applications/xampp/xamppfiles/lib/libjpeg.dylib [3] => in /system/library/frameworks/imageio.framework/versions/a/imageio )
any idea missing? on osx, sierra
the same code works on linux centos, it's got mac thing..
edit: info may useful
otool -l /usr/local/bin/pngquant /usr/local/bin/pngquant: /system/library/frameworks/cocoa.framework/versions/a/cocoa (compatibility version 1.0.0, current version 22.0.0) /usr/local/opt/libpng/lib/libpng16.16.dylib (compatibility version 46.0.0, current version 46.0.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8) /usr/lib/libsystem.b.dylib (compatibility version 1.0.0, current version 1238.50.2) /system/library/frameworks/appkit.framework/versions/c/appkit (compatibility version 45.0.0, current version 1504.82.104) /system/library/frameworks/applicationservices.framework/versions/a/applicationservices (compatibility version 1.0.0, current version 48.0.0) /system/library/frameworks/foundation.framework/versions/c/foundation (compatibility version 300.0.0, current version 1349.63.0) /usr/lib/libobjc.a.dylib (compatibility version 1.0.0, current version 228.0.0)
Comments
Post a Comment