sveinbjornt / osxiconutils Goto Github PK
View Code? Open in Web Editor NEWA suite of command line utilities for working with Mac icons
Home Page: https://sveinbjorn.org/osxiconutils
License: BSD 3-Clause "New" or "Revised" License
A suite of command line utilities for working with Mac icons
Home Page: https://sveinbjorn.org/osxiconutils
License: BSD 3-Clause "New" or "Revised" License
Thank you so much for this awesome work.
I am generating folders on Linux AWS workers and would absolutely love to support folder images for macOS users, but it appears this will only be possible if the workers are running macOS, rather than Linux.
Do you have some idea if it would be possible to build something like this on Linux and if so, what the work would look like?
I see your project is all in Objective C or Swift maybe? I'm assuming the image data is just written as metadata in the folder's 'stat' data, but may be read/written via proprietary Apple code? Or can you give me an overview of how it works/how I might implement it on Linux?
Thank you again!
geticon -t png doesn't create the output file as expected.
seticon doesn't work without using the -d option
7 warnings, 5 errors under 10.10 Yosemite / XCode 6.3.2
Update to recommended settings pic2icns Group
IconFamily.m:1210:128: Incomplete format specifier
IconFamily/IconFamily.m:1255:9: Use of undeclared identifier 'CGDirectPaletteRef'
IconFamily/IconFamily.m:1264:9: Use of undeclared identifier 'cgPal'
IconFamily/IconFamily.m:1264:17: Implicit declaration of function 'CGPaletteCreateDefaultColorPalette' is invalid in C99
IconFamily/IconFamily.m:1276:32: Implicit declaration of function 'CGPaletteGetIndexForColor' is invalid in C99
IconFamily/IconFamily.m:1276:58: Use of undeclared identifier 'cgPal'
IconFamily/IconFamily.m:1289:58: Use of undeclared identifier 'cgPal'
IconFamily/IconFamily.m:1296:9: Implicit declaration of function 'CGPaletteRelease' is invalid in C99
IconFamily/IconFamily.m:1296:26: Use of undeclared identifier 'cgPal'
IconFamily/IconFamily.m:1300:127: Incomplete format specifier
IconFamily.m:1376:127: Incomplete format specifier
/custom-components/osxiconutils master*
❯ file ~/Databases/Files.noindex/svg/c/ic_account_balance_wallet_48px.svg
/Users/storm/Databases/svg/c/ic_account_balance_wallet_48px.svg: SVG Scalable Vector Graphics image
/custom-components/osxiconutils master*
❯ svg2png --width=250 /Users/storm/Databases/svg/c/ic_account_balance_wallet_48px.svg out2.png
/custom-components/osxiconutils master*
❯ file out2.png
out2.png: PNG image data, 250 x 250, 8-bit/color RGBA, non-interlaced
/custom-components/osxiconutils master*
❯ bin/image2icns out2.png out2.icns
2019-08-24 19:25:58.552 image2icns[34400:6625508] get32BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerSample == 16
2019-08-24 19:25:58.552 image2icns[34400:6625508] Null data returned to setIconFamilyElement:fromBitmapImageRep:
2019-08-24 19:25:58.582 image2icns[34400:6625508] get32BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerSample == 16
2019-08-24 19:25:58.582 image2icns[34400:6625508] Null data returned to setIconFamilyElement:fromBitmapImageRep:
2019-08-24 19:25:58.600 image2icns[34400:6625508] get32BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerSample == 16
2019-08-24 19:25:58.600 image2icns[34400:6625508] Null data returned to setIconFamilyElement:fromBitmapImageRep:
2019-08-24 19:25:58.615 image2icns[34400:6625508] get32BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerSample == 16
2019-08-24 19:25:58.615 image2icns[34400:6625508] Null data returned to setIconFamilyElement:fromBitmapImageRep:
2019-08-24 19:25:58.628 image2icns[34400:6625508] get32BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerSample == 16
2019-08-24 19:25:58.628 image2icns[34400:6625508] Null data returned to setIconFamilyElement:fromBitmapImageRep:
2019-08-24 19:25:58.640 image2icns[34400:6625508] get32BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerSample == 16
2019-08-24 19:25:58.640 image2icns[34400:6625508] Null data returned to setIconFamilyElement:fromBitmapImageRep:
2019-08-24 19:25:58.652 image2icns[34400:6625508] get32BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerSample == 16
2019-08-24 19:25:58.652 image2icns[34400:6625508] Null data returned to setIconFamilyElement:fromBitmapImageRep:
/custom-components/osxiconutils master* 6s
❯ uname -a
Darwin 10core.local 19.0.0 Darwin Kernel Version 19.0.0: Fri Aug 9 21:59:46 PDT 2019; root:xnu-6153.0.139.161.2~2/RELEASE_X86_64 x86_64
I'm new to programming and it's annoying that these basic instructions aren't listed anywhere that I could find in this project. After I downloaded the files, I'm not sure what to do with them . Don't I have to move them to a specific folder or something?
icns2image doens't get the default icon from the icns file that actually used by the application in all cases, frequently getting an alternative icon that isn't used. It says that by default it gets the largest sized icon by resolution, but that doesn't seem to be correct in some cases.
I wish there was a way on the command line to expand ALL representations, or list them, then be able to extract a particular one. I'm wondering if the Application Default icon is typically the largest representation of the first set of icons, rather than just the largest. Also, it isn't clear to me what icns2image does if multiple icons have the same representation size.
i build it on macos 13.2, arm64.
i think everything is ok...Maybe...
Here is my built files.
On osx 10.13.6
when i run image2icns somethingcute.png somethingcute.icns
the output looks extremely blurry.
To try and debug I used your icns2iconset tool (found in platypus examples) and it appears that the only image that gets messed up is the largest 512x2 image.
I'll keep poking around but wanted to point it out. thanks for the tools!
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.