Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom icons for zarr files #477

Open
sofroniewn opened this issue Sep 5, 2019 · 2 comments
Open

custom icons for zarr files #477

sofroniewn opened this issue Sep 5, 2019 · 2 comments

Comments

@sofroniewn
Copy link

When making a zarr file is there a way to have a custom icon (say a heavily down sampled version of an image) appear instead of the folder icon? Or anyway to embed metadata such that things like the "preview mode" in a mac can show some image of what's inside?

I can precompute this icon and even convert it to some png like byte string or svg format if needed, I just need to know how to put it on the folder - which maybe isn't so much of a zarr question, but other people using zarr may have done this or may want to do this.

@sofroniewn
Copy link
Author

To follow up here, I'm not making much progress on this issue. It seems like on windows / linux there are .ico files and on mac .icns files that can be used for this stuff, but I can't even figure out how to use python to programmatically set a .icns file to be the icon of a folder on a mac (though I can do it manually).

It seems like there is no existing python package to allow for setting of custom icons in a cross platform way. Such a package would clearly be independent from zarr, but if such a high-quality package existed (and it didn't come with very complex dependencies) then it could be a nice thing for zarr to leverage for microscopy datasets.

@sofroniewn
Copy link
Author

In case anyone else is following this thread I've made good progress on getting this working on a mac (see napari/napari#490 (comment) and napari/napari#511 (comment) if you are curious). I'm still not sure what cross-platform support looks like, but we'll probably be looking into that on those issues / PRs too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant