GithubHelp home page GithubHelp logo

sveinbjornt / osxiconutils Goto Github PK

View Code? Open in Web Editor NEW
106.0 106.0 15.0 120 KB

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

Objective-C 92.96% HTML 3.49% Roff 2.10% Shell 1.46%
command-line-tool icns icons macos osx

osxiconutils's People

Contributors

sveinbjornt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

osxiconutils's Issues

Linux support?

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!

Not all arguments work

geticon -t png doesn't create the output file as expected.
seticon doesn't work without using the -d option

Build errors stop build in 10.10

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

32 bit vs 16 bits per sample

Builds on macOS catalina - latest devbeta, but doesn't provide expected output

/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

SO....HOW DO I INSTALL THIS THESE UTILITIES?

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 doesn't get the default icon

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.

image2icns output is messed up on X2

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.