kawamataryo / alfred-imagemin Goto Github PK
View Code? Open in Web Editor NEWAlfred workflow - Minify images with Imagemin
License: MIT License
Alfred workflow - Minify images with Imagemin
License: MIT License
Hi
I recently tried to run the Imagemin workflow for Alfred and I get a popup window with this error in it...
"cjpeg” cannot be opened because the developer cannot be verified.
I'm running the following versions...
And when run this is the log output...
STDERR: Imagemin[[Run Script](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D7604045-A449-45D7-BA82-486D600FE38B%3ED26018EE-ED09-4F7C-8010-E150093C4D65)] (node:65334) UnhandledPromiseRejectionWarning: Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:94:16)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:65334) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:65334) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Thanks for a great workflow and I hope it can be fixed as I really do find it useful.
Regards - Jason
Hey Ryo!
Thanks for the nice workflow!
It would be really useful if the user could in addition to recompress also choose to downscale the image(s) like this:
Imagemin 640
which would resize the image, using the longest side of the image (width or height) and resize it to the resolution specified,
keeping the aspect ratio the same as the original so calculating the other side automatically based on that aspect ratio.
Or, if you want to use cjpeg only, at least have the possibility to scale as a percentage (supported by cjpeg natively) like this:
imagemin 1/2
would downscale it to half the res and so on...
It would be really useful!!!
Cheers Ryo!
This has served me so well for so long. Even after moving to Raycast, I still rely on this tool because it works better than any other. Today, it fails on all files. I'm not sure why. Is there any chance this can be ported to Raycast like you were able to with TinyPNG? Happy holidays!
This is a great tool! Would be even greater, if it would also appear in the file menu as well. :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.