Comments (17)
Ben you're absolutely right. Thanks so much for this detailed feedback, it's right on the money. I'll get all this addressed.
from grunt-imageoptim.
Thanks Jamie, nice one =)
from grunt-imageoptim.
Hey Ben, let me know if https://github.com/JamieMason/grunt-imageoptim now covers everything and is clear.
Cheers
from grunt-imageoptim.
Hi Jamie,
My only critique is to mention the "allow access for assistive devices" system preference for jpegmini (it is off by default) or make a mention of using the imageoptim-cli directly for troubleshooting (using CLI will provide the error message that the system preference needs to be enabled).
Aside from that one little thing, it looks great.
from grunt-imageoptim.
ah I forgot about that, I'll add it to the README as well. The version I released today should now output the exact same error output as ImageOptim-CLI which should help a little too.
Thanks, anything else please mention - it's all really useful info.
from grunt-imageoptim.
Nice one. I think that the error message is a big deal, if you're displaying the CLI errors, it should help a lot.
When installing jpegmini, I went with the in app purchase from the lite version and was a bit concerned that the app name looked wrong (due to the -lite suffix). I realise now that I couldn't get it working due to the assistive devices thing, but at the time went and downloaded the full version from the app store.
It appears you're all over that particular case:
JamieMason/ImageOptim-CLI#26
I presume this is the natural order for most people (try before buying).
It wasn't a big deal, but if the CLI works with either naming (jpegmini or jpegmini-lite) perhaps it is worth mentioning that the in-app upgrade will work without renaming or installing the full version.
Although it may be unnecessary now you've added better error handling, as it was something I tried when attempting to resolve the assistive devices thing.
After work I'll do a clean install and let you know if there are any gnarly bits, but I think you've covered it now.
Cheers
from grunt-imageoptim.
+1 for mentioning System preferences > Accessibility > 'Enable access for assistive devices' option [within OSX Mountain Lion] is REQUIRED for jpeg-mini to work ... and another +1 for making errors more visible from grunt context. Thanks! :)
PS Thanks to my headcold, I didn't come looking here at the issues page until I'd already figured this one out for myself (which I was able to by running imageOptim without grunt, and thus got a helpful error message). Was going to raise the issue to help others avoid the pain of figuring it out.
from grunt-imageoptim.
One of the most beautiful and detailed issues I've seen on Github.
Not only has it helped me save a lot of time but also taught me how to create a meaningful issue/bug report.
Thanks to all ;)
from grunt-imageoptim.
Definitely, I wish more people wrote issues like @at0g
from grunt-imageoptim.
Awww shucks
from grunt-imageoptim.
Hey @at0g,
I've started to put together an FAQ on the ImageOptim-CLI README (not yet released) and if you have a moment I'd love it if you could add any others you know can be issues for new starters.
Here are the ones I have so far;
- Do ImageOptim, ImageAlpha, or JPEGmini come bundled with the ImageOptim-CLI installation?
- Do I have to pay to use ImageOptim-CLI?
- Why are shorthand options supplied in the format imageoptim -a -j -q instead of the more common imageoptim -ajq?
- The WebP image format looks promising, can you get ImageOptim-CLI to convert images to it?
- Can you get ImageOptim-CLI to skip images it's already processed, if they haven't changed?
Windows and Linux
- Can I use ImageOptim-CLI on Windows or Linux?
- Are there any plans for ImageOptim-CLI to support Windows or Linux?
- I don't have OS X, can you recommend an alternative to ImageOptim-CLI?
JPEGmini
- Can I use ImageOptim-CLI with JPEGmini Lite, the free version of JPEGmini?
- I upgraded from JPEGmini Lite to JPEGmini but ImageOptim-CLI still says JPEGmini is not installed.
- ImageOptim-CLI says “To automate JPEGmini we need to enable GUI Scripting”, how do I do that?
ImageAlpha
- I don't think ImageAlpha is running, I can't see anything.
- Can I configure ImageAlpha's settings using ImageOptim-CLI?
Thanks Ben.
from grunt-imageoptim.
Eventually read more on the imageoptim homepage and learn I must explicitly enable the app to run, because I'm on mountain lion and gatekeeper is ruining my mojo.
@at0g Can you tell me more about this? I couldn't find the enabling info you mentioned on imageoptim.com
from grunt-imageoptim.
@JamieMason - "System preferences > Accessibility > 'Enable access for assistive devices' option" refers to prerequisite configuration of OSX Mountain Lion per se.
HTH
Chris
from grunt-imageoptim.
Sorry @cweekly I didn't understand your comment — are you referring to the way of enabling GUI Scripting being different on Mavericks -vs- previous versions of OS X?
from grunt-imageoptim.
Sorry for my lack of clarity; my comment and experience are specific to Mountain Lion only. I don't know about Mavericks.
from grunt-imageoptim.
Eventually read more on the imageoptim homepage and learn I must explicitly enable the app to run, because I'm on mountain lion and gatekeeper is ruining my mojo.
I believe @at0g is referring to the need previously to explicitly exempt ImageOptim from Gatekeeper so that it can run (necessary to open mac apps that are not Developer ID-signed with the default Gatekeeper setting in Mac OS 10.8+). This process is described in the Apple support doc “About Gatekeeper”, under “How to open an app from a unidentified developer and exempt it from Gatekeeper”.
As far as I can tell, the special right-click-to-open process is not necessary with the latest version of ImageOptim, which appears to be Developer ID-signed, though it is still necessary with ImageAlpha (see screenshot below). But I would guess that either way, you still need to open the apps at least once before they can be automated.
from grunt-imageoptim.
Sorry for the huge wait, I will close this and instead track ongoing issues over at https://github.com/JamieMason/ImageOptim-CLI/.
from grunt-imageoptim.
Related Issues (20)
- Enable access for assistive devices issue HOT 9
- Fails when processing very large folders HOT 15
- 3.6hours later.... nothing was written HOT 6
- Running with grunt-newer task HOT 3
- Image optim not installed HOT 3
- prevent generation loss? HOT 3
- Need to make some corrections to README file
- Integration with grunt-newer and similar HOT 2
- Is it possible to gather the binaries from deps? HOT 3
- Confusion about files settings HOT 3
- New version of imageoptim-cli breaks Jpegmini functionality HOT 2
- Imageoptim opening gui HOT 1
- JPEGmini not working - imageoptim-cli v1.11.6 :: grunt-imageoptim v1.4.1 :: Grunt v0.4.5 :: JPEGmini v1.9.0 HOT 1
- ImageAlpha doesn't appear to be running HOT 2
- Problem with Grunt HOT 2
- Only seeing "kb" as output after running grunt task HOT 1
- Output to different destination?
- quitAfter: false not working
- Crashes grunt if no images are found in one or more folders
- Features requested HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-imageoptim.