-
Notifications
You must be signed in to change notification settings - Fork 123
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
Add support for a logo for a template #240
Comments
Thanks @gagandeepp, yes, I'll release the assignment! |
how to test this functionality?? @mttrbrts |
Any updates? |
@mttrbrts pinging you again on this one. |
@jeromesimeon I would like to give this a try. :) |
There hasn't been any progress on this. It's yours @algomaster99 ! |
What should the proper internal representation for an image in the template or metadata class? I am suspecting it shouldn't be a string. Should it be instead:
If we need manipulation of the image (or even simply know the image size) do we need support for a library. e.g., https://github.com/lovell/sharp ? |
Another open question: should the logo file be part of the hash calculated for the template? |
@Michael-Grover is there a logo for Accord Project templates that you would like? (Probably should be added to the templates in the library once the functionality is in place). Would the |
Can you tell me why do we calculate hash? 😅 |
It's a way to uniquely identify the content of the template (can be used to do sanity checks on downloads for example). |
256x256 seems really big. What applications might we use for the logo that are 256 x 256, or 128 x 128 on a retina screen? |
Summary of some fact-finding for png files size. How to determine that the file is PNG:
How to determine the size:
Trace:
|
Fixed by @algomaster99 and merged in #533 with some additional fixes in #535 Thanks for the contribution! |
It would be very useful for display purposes if a Cicero template could contain an optional logo.
logo.png
and is in the root of the templateThe text was updated successfully, but these errors were encountered: