blackosx Posted September 4, 2020 Author Share Posted September 4, 2020 (edited) Nice! I know what you mean, I find it‘s only when you see all icons together that you see things that need addressing. That’s one reason I created my preview script (personal use only for now, but maybe I’ll work to get it ready for some kind of public release, if anybody is interested, though it requires imagemagick) Edit: nice to see you have added some tool icons and I like your selected icon. I have ideas but unfortunately don’t have the time at the moment. Edited September 4, 2020 by blackosx 1 Link to comment Share on other sites More sharing options...
AliPas52 Posted September 5, 2020 Share Posted September 5, 2020 @pkdesing your Hex icons are very nice, you can ask you to add arch debian and ubuntu linux icons Link to comment Share on other sites More sharing options...
pkdesign Posted September 5, 2020 Share Posted September 5, 2020 If I have some time I will add those icons for you. 21 hours ago, blackosx said: Edit: nice to see you have added some tool icons and I like your selected icon. I have ideas but unfortunately don’t have the time at the moment. All thanks to you for explaining to me how to get them to show! 1 Link to comment Share on other sites More sharing options...
pkdesign Posted September 5, 2020 Share Posted September 5, 2020 I have updated CircleBlobIcon and CircleBlobText. Made some fixes and added some icons. https://github.com/pkdesign/OpenCanopyIcons 1 Link to comment Share on other sites More sharing options...
blackosx Posted September 7, 2020 Author Share Posted September 7, 2020 Nice updates! I created some updated previews of them Spoiler Did you forget to optimise some of the images as I notice the file sizes are larger then they could be? For example, the Selected.icns from your Hex_1.1 is 27KB but I managed to get it down to 12KB. Here's my version for comparison. Selected.icns.zip 1 Link to comment Share on other sites More sharing options...
pkdesign Posted September 8, 2020 Share Posted September 8, 2020 Hmm, I did. And i tried it again but I got the same 27KB. I use ImageOptim app to optimize. Lossy PNG 90% setting. Thank you again for preview! 1 Link to comment Share on other sites More sharing options...
blackosx Posted September 10, 2020 Author Share Posted September 10, 2020 (edited) Hmm, out of interest I just tried ImageOptim using lossy PNG at 90% and recreated that selected.icns file at 11KB. Strange how you got 27KB. Am I using different settings to you? Spoiler Selected.icns.zip ps. Sorry to keep on about this but this will be a technical requirement for moving forward, as per Vit's post. There will be technical requirements about the formats. The icons should be created with the builtin icnspack utility (which settles down the format question and makes HiDPI support a requirement), and PNG files used as a source must be as small as possible. You can optimise them with ImageOptim. Edited September 10, 2020 by blackosx Link to comment Share on other sites More sharing options...
pkdesign Posted September 10, 2020 Share Posted September 10, 2020 (edited) I think I have tracked down the cause. I am using @chris1111 tool to create ICNS. I see that when it creates the second smaller PNG it does not optimize it. So the 288px one is just 7KB, which is the icon that I exported from Photoshop as PNG and then ran through ImageOptim. But the 144px one is 20KB (sizes are Selected size requirements). Sigh, I really hope there is some way to fix this. Using that tool makes it so simple to create these ICNS. This also means that all my ICNS can be made smaller. I'm kind of tickled that we are worrying about a few KB! These days when file size are huge. Edited September 10, 2020 by pkdesign 1 Link to comment Share on other sites More sharing options...
chris1111 Posted September 10, 2020 Share Posted September 10, 2020 (edited) 46 minutes ago, pkdesign said: I think I have tracked down the cause. I am using @chris1111 tool to create ICNS. I see that when it creates the second smaller PNG it does not optimize it. So the 288px one is just 7KB, which is the icon that I exported from Photoshop as PNG and then ran through ImageOptim. But the 144px one is 20KB (sizes are Selected size requirements). Sigh, I really hope there is some way to fix this. Using that tool makes it so simple to create these ICNS. This also means that all my ICNS can be made smaller. I'm kind of tickled that we are worrying about a few KB! These days when file size are huge. I test ImageOptim on my Icon; after optimisation its a 2ko Selected.png file then after the creation Icons its 3ko Selected.icns looks good here Dont know what wrong on your side? Edited September 10, 2020 by chris1111 1 Link to comment Share on other sites More sharing options...
pkdesign Posted September 10, 2020 Share Posted September 10, 2020 What is your process @chris1111? I create the 256 (or 288) PNG from Photoshop (I create then in Illustrator). Then I process that PNG with ImageOptim. That compresses the ~27KB PNG to ~7KB. I copy that file into the "icon" folder (I am using the command utility as I have added several icons to the list.) When I process, the 256px PNG stays at 7KB, but the second image that your script creates as a 128px image is ~27KB. That second image does not get compressed by me through ImageOptim as its creation and processing inot ICNS is done by the script. Does that make sense? Link to comment Share on other sites More sharing options...
chris1111 Posted September 10, 2020 Share Posted September 10, 2020 6 minutes ago, pkdesign said: What is your process @chris1111? I create the 256 (or 288) PNG from Photoshop (I create then in Illustrator). Then I process that PNG with ImageOptim. That compresses the ~27KB PNG to ~7KB. I copy that file into the "icon" folder (I am using the command utility as I have added several icons to the list.) When I process, the 256px PNG stays at 7KB, but the second image that your script creates as a 128px image is ~27KB. That second image does not get compressed by me through ImageOptim as its creation and processing inot ICNS is done by the script. Does that make sense? Try with this https://github.com/chris1111/Icnspack-Builder let me know if is the same ? Link to comment Share on other sites More sharing options...
pkdesign Posted September 10, 2020 Share Posted September 10, 2020 I created the "Selected" ICNS with your v3 GUI tool and it still makes the resulting ICNS file 27KB. Link to comment Share on other sites More sharing options...
chris1111 Posted September 10, 2020 Share Posted September 10, 2020 1 minute ago, pkdesign said: I created the "Selected" ICNS with your v3 GUI tool and it still makes the resulting ICNS file 27KB. send me the compress.png file please Link to comment Share on other sites More sharing options...
pkdesign Posted September 10, 2020 Share Posted September 10, 2020 Here you go. Link to comment Share on other sites More sharing options...
chris1111 Posted September 10, 2020 Share Posted September 10, 2020 2 minutes ago, pkdesign said: Here you go. Unbelivable Dont understnad that ? My Apple.png is 41kb compress and its out at 56kb I think its not bad? but for your Icns its triple the size Link to comment Share on other sites More sharing options...
pkdesign Posted September 10, 2020 Share Posted September 10, 2020 (edited) I broke your script into two parts. First I run it to make two sets of PNGs: You can see the original PNGs don’t get processed by ImageOptim because I already did that. The newly created ones by your script get processed by ImageOptim. (ignore the screenshot one I added by mistake) When the first half of your script creates the other size, they do not get optimized. So I run them through ImageOptim after the first half of your script. Then I run the second half after I've manually optimized to create the final ICNS and they come out compressed. Edited September 10, 2020 by pkdesign 1 Link to comment Share on other sites More sharing options...
pkdesign Posted September 10, 2020 Share Posted September 10, 2020 I have just uploaded a further compressed version of Hex to GitHub. See v1.2 https://github.com/pkdesign/OpenCanopyIcons 1 Link to comment Share on other sites More sharing options...
chris1111 Posted September 10, 2020 Share Posted September 10, 2020 4 minutes ago, pkdesign said: I have just uploaded a further compressed version of Hex to GitHub. See v1.2 https://github.com/pkdesign/OpenCanopyIcons Beautyfull 1 Link to comment Share on other sites More sharing options...
pkdesign Posted September 10, 2020 Share Posted September 10, 2020 (edited) I'm no coder so i don’t understand this stuff , but is their no hook into ImageOptim or some other image optimizer built into the OS that you can call on in your script? Or if you have ImageOptim app (you can make that a requirement) in your Applications folder, your script can use that to process images? Maybe pngquant could be used? Edited September 10, 2020 by pkdesign Link to comment Share on other sites More sharing options...
pkdesign Posted September 10, 2020 Share Posted September 10, 2020 (edited) Eureka!! I got it to work! by using pngquant in your script @chris1111, you can duplicate, resize and create ICNS in one fell swoop! Download pngquant here https://pngquant.org/ I also made some edits to your script to better reflect what the icons are, i.e. Apple128.png to reflect the actual size of the created icon. I set the compression to 90 but that may be to much. Easily edited by entering whatever quality settings you want. Check it out. icnspack-Build_Test3.command Edited September 10, 2020 by pkdesign 2 Link to comment Share on other sites More sharing options...
chris1111 Posted September 10, 2020 Share Posted September 10, 2020 (edited) Update Icnspack-Builder-V4 I add CL ImageOptim Thank you @pkdesign for the suggestion Please test See now you have to wait a bit for Optimisation Edited September 10, 2020 by chris1111 Link to comment Share on other sites More sharing options...
pkdesign Posted September 10, 2020 Share Posted September 10, 2020 (edited) Nice! We are getting there. I ran my uncompressed PNGs through the GUI, but but they are still larger than when I run it through the script version. 12K vs 24K for the Apple.icns for example. Maybe it is imageoptim setting. For pngquant, i.e. --quality=90 Edited September 10, 2020 by pkdesign 1 Link to comment Share on other sites More sharing options...
chris1111 Posted September 10, 2020 Share Posted September 10, 2020 (edited) 4 minutes ago, pkdesign said: Nice! We are getting there. I ran my uncompressed PNGs through the GUI, but but they are still larger than when I run it through the script version. Ok I have Update Now I add directly ImageOptim.app in the program Its it is less heavy and no need that ImageOptim is in the applications because with the CL it had to be in the Apps See my new release https://github.com/chris1111/Icnspack-Builder See image spoiler Spoiler Edited September 10, 2020 by chris1111 Edit see image spoiler Link to comment Share on other sites More sharing options...
chris1111 Posted September 10, 2020 Share Posted September 10, 2020 I will test your command ./pngquant --quality=90 --ext=.png --force ./Icon/*.png If its work like it should I will Update v5 1 Link to comment Share on other sites More sharing options...
chris1111 Posted September 10, 2020 Share Posted September 10, 2020 (edited) I have 28 Kb Apple.icns with Release V4 and 40 Kb with your command somethings wrong EDIT ***** Do I need both pngquant , pngquant-openmp Edited September 10, 2020 by chris1111 Link to comment Share on other sites More sharing options...
Recommended Posts