News for hackers. Stuff that matters.
Re:NirSoft Freeware (2008) by LeoPanthera on Monday April 16, 2018 @04:37PM (#16852512)
You can probably shrink your icon down (losslessly) by dropping it into ImageOptim. https://imageoptim.com/mac
Re:NirSoft Freeware (2008) by newsbinator on Monday April 16, 2018 @09:22PM (#16854613)
I find Optimage has better lossless compression. I never regretted paying for the full version. https://getoptimage.com
Re:NirSoft Freeware (2008) by conradev on Monday April 16, 2018 @07:11PM (#16853798)
Or the command line util pngcrush
Re:NirSoft Freeware (2008) by LeoPanthera on Monday April 16, 2018 @08:27PM (#16854315)
pngcrush is fairly old. And terribly unoptimized. If you want a command line solution, I recommend optipng (which does what pngcrush does, but better), and sending the result through advdef, which improves the compression even further.

...but really. ImageOptim is super awesome and zero-effort.

Re:NirSoft Freeware (2008) by derefr on Monday April 16, 2018 @09:01PM (#16854495)
Super awesome yes, zero-effort no—just try to make it into part of an CI/CD asset build pipeline ;)

But really, why isn't ImageOptim itself available in command-line form?

Re:NirSoft Freeware (2008) by dabockster on Monday April 16, 2018 @09:10PM (#16854546)
IIRC, ImageOptim is a front end for a bunch of CLI image compression tools. So, in theory, you could roll your own for a CI system if you figured out all the arguments that ImageOptim was passing to those tools.
Re:NirSoft Freeware (2008) by joombaga on Monday April 16, 2018 @09:31PM (#16854667)
This looks promising:

> Automates ImageOptim, ImageAlpha, and JPEGmini for Mac to make batch optimisation of images part of your automated build process.

https://jamiemason.github.io/ImageOptim-CLI/

Re:NirSoft Freeware (2008) by tokenizerrr on Tuesday April 17, 2018 @04:26AM (#16856511)
> automated build process

> Mac

Why would anyone run a CI server on a Mac?

Re:NirSoft Freeware (2008) by joombaga on Tuesday April 17, 2018 @01:33PM (#16860455)
Perhaps it's just their preferred platform. If it weren't for the expense I'd probably prefer it over Windows at least. At any rate, the readme does link to this article[1] if macOS isn't your thang.

[1] https://addyosmani.com/blog/image-optimization-tools/

Re:NirSoft Freeware (2008) by hboon on Tuesday April 17, 2018 @04:50AM (#16856590)
You need to if your product is a macOS or iOS/watchOS/tvOS app.
Re:NirSoft Freeware (2008) by Prefinem on Monday April 16, 2018 @05:44PM (#16853100)
Not OP, but thanks for the link to that app. It's quite amazing.
Re:NirSoft Freeware (2008) by dchest on Tuesday April 17, 2018 @04:11AM (#16856443)
Yes, the size is after optimization (although I suspect iconutil recompresses it) :-) It's just that there are 10 images inside, from 1024x1024 to 16x16.