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
pngquant libraries not loaded dmg installer & homebrew cask install approaches (libpng + little-cms2) [fixed!] #7
Comments
If you happen to have access to Homebrew can I ask you to install libpng with the following and try again?
If that works I will update the docs with this dependency and add it as a dependency during the homebrew installation. Sorry I didn't realize this was an issue. Thanks for reporting it. |
Had the same issue and installing libpng fixed that! Another issue arose:
Installing pngquant fixed up everything for me and now it's working flawless! Hopes this helps others if they run into similar issues. |
@kevinrajaram Thanks Kevin! Looks like we need to add these two libraries as dependencies to both documentation and the homebrew installation process:
Will get on it this week. Will update here when available. |
Verified both of those are pngquant dependencies in the pngquant homebrew Ruby installer script: |
Here is what we need in the Crunch homebrew installer script: depends_on formula: [
'libpng',
'little-cms2'
] |
Formula update submitted as a new PR on Homebrew cask repo: This should fix these issues when accepted in Homebrew cask. |
The Homebrew Cask PR was merged. @soundage mind trying the install with Homebrew Cask again and let me know if this fixes the issue for you (or can someone else please confirm)? |
I had the same issue before; but downloaded the latest Homebrew Cask and now it's working for me – great job! |
This should be fixed across both install approaches as of v1.0.1 release. dmg installer file is available here: https://github.com/chrissimpkins/Crunch/releases/download/v1.0.1/Crunch-Installer.dmg Please confirm that this installs and executes without issues if you do not have libpng or little-cms2 installed through Homebrew on your system (or prior builds from source...). You can confirm that these libraries are present from prior Homebrew installs with Will close if we have achieved a fix with the v1.0.1 release to address this issue. We should be able to eliminate the Homebrew install of these additional dependencies through the Homebrew cask installation approach if we are gtg with the current pngquant build. |
I was able to confirm that using the 1.0.1 .dmg build (without having libpng or little-cms2) works. [~/Downloads] > brew list | grep libpng
[~/Downloads] > brew list | grep little-cms2
[~/Downloads] > Verified by crunching a test file using Crunch.app from the above link. |
@adidalal Thank you very much Aditya! Greatly appreciated! Will close this as fixed. |
After installing wthe DMG file and dragging the PNG, this is what I got:
dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib Referenced from: /Applications/Crunch.app/Contents/Resources/./pngquant Reason: image not found /Applications/Crunch.app/Contents/Resources/script: line 10: 6549 Abort trap: 6 ./pngquant --quality=80-98 --skip-if-larger --force --ext -crunch.png "$imagepath" > /dev/null
@chrissimpkins edits below -------
Associated closed issue reports to limit discussion to this thread:
#10
#12
TODO:
FIX IS AVAILABLE (v1.0.1)
For those who previously used the Homebrew Cask installer
Try to install with the Homebrew cask install approach again. The installer script was updated with a couple of new dependencies and this should now be fixed
For those who want to install with the dmg installer
Please attempt your install with the v1.0.1 build. This should be the fix for this issue. Feedback needed to confirm and close this issue report.
https://github.com/chrissimpkins/Crunch/releases/tag/v1.0.1
The text was updated successfully, but these errors were encountered: