-
Notifications
You must be signed in to change notification settings - Fork 5
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
update catalog thumbnails to be in line with guidelines #25
Comments
Perhaps it make sense to wait until we have thumbnail functionality added to |
I think I'm still going to do it now. Because most of the work is just cropping/scaling them right, which I think we'll have to do anyway (just for this first batch). |
Also I think maybe let's move the thumbnail images to the We prefer that users keep their thumbnail in their manuscript's repo, since that's really where it belongs, together with its content. But, we have an Also, it would allow them to make just one PR, to |
That does seem to make more sense than https://github.com/manubot/manubot.org. The ability to upload an image as part of the PR would be nice for cases where the thumbnail is not part of the manuscript repo or other repo of the authors. My only worry is bloating the catalog repo. How big is each PNG? We could use Git LFS to store them, but that can make it slightly harder for some contributors without Git LFS installed locally. |
The png's size can really vary a lot, depending on the content of the image and the compression settings. Maybe from 10 kb to 200 kb. But with maximum compression (takes longer to decode but should still be lossless) it should be on the lower end of that spectrum. I wouldn't worry about it for now, since this is a last resort for when we can't have the thumb in the manuscript repo. Also, Greene Lab people have these multi-gigabyte datasets hosted on github with no problem. |
It seems like several of the images removed in #27 are around the 500 KB region. I'd say 1 MB is probably what a complex image that has lot's of pixel variation would take.
If their files are >100 MB, then they are using Git LFS, which does not bloat the git repository at all because the repository only stores the hash of the file. I am curious whether if we use git lfs, will people still be able to upload PNGs by GitHub's web interface and have things work. |
I guess I see four options:
The benefit of a different branch is that we don't clutter / bloat master and that we don't have to deal with local paths for thumbnails in the catalog... everything remains as URLs. The downside of a different branch is that a single PR cannot update We can discuss a bit more in person what is best. |
Can you define what bloat is and what the downsides are. It sounds like we're talking about doing something for the benefit of the computers instead of for the benefit of the users. If it's an actual github storage limit, that makes sense to me. But I don't think a bunch of .pngs, which are really common files, will cause any problems on github, which frequently hosts repositories which have loads of images in them (like websites). |
I believe I had exported those with the lowest compression settings, so it should be possible to reduce it. But even so, I agree that 1 MB is a fair worst-case upper-limit to assume if we're trying to calculate storage limits. |
update catalog thumbnails to be in line with the new thumbnail guidelines (soon-to-be) in
manubot/catalog
readme.The text was updated successfully, but these errors were encountered: