-
Notifications
You must be signed in to change notification settings - Fork 17
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 the possibility to create PNG with meta information #26
Comments
Do you have an example of file with such textual information so we can understand:
|
I guess one idea is that when you copy a molecule as PNG we can insert the smiles or molfile in it so that if we somehow copy it back from another software we cane extract the chemical structure. Using
We can check if the keyword has been added using You will find here both images before and after adding the Smiles There are 3 possible chunks: |
Both your examples use the BTW, thanks @stropitek for your example, it made me realize that the decoding was wrong. Fixed in #39 |
@lpatiny is |
Yes latin1 is enough for SMILES and molfile. |
When encoding an image we would need to be able to add textual information following the specifications:
https://www.w3.org/TR/PNG/#11textinfo
We should also ensure that decoding can read those information.
The text was updated successfully, but these errors were encountered: