Comments (6)
Do you have an example of file with such textual information so we can understand:
- Which chunk is most appropriate for it
- How the API should look like to pass it to the encoder
from fast-png.
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 imagemagick
we can add a new keyword in a PNG using:
convert butane.png -set 'Smiles' 'CCCC' butane_meta.png
We can check if the keyword has been added using identify --verbose butane_meta.png
You will find here both images before and after adding the Smiles
There are 3 possible chunks:
from fast-png.
FWIW excalidraw exports a png with a json in the metadata so that it can be re-edited:
This is the png with the embedded data:
from fast-png.
Both your examples use the tEXt
chunk, so we only need to implement the encoder part of it.
BTW, thanks @stropitek for your example, it made me realize that the decoding was wrong. Fixed in #39
from fast-png.
@lpatiny is latin1
enough for your use case?
from fast-png.
Yes latin1 is enough for SMILES and molfile.
from fast-png.
Related Issues (14)
- Web Browser problem HOT 5
- Extract resolution information HOT 1
- Compute CRC HOT 1
- Dependency problem? HOT 2
- Normalize to RGBA when decoding indexed images HOT 1
- Fix syntax inconsistencies
- 1bit greyscale encoder support HOT 4
- JHKAJKH aKShjk aSDHJKasdhjk ads JHKAJKH aKShjk aSDHJKasdhjk ads JHKAJKH aKShjk aSDHJKasdhjk ads JHKAJKH aKShjk aSDHJKasdhjk ads JHKAJKH aKShjk aSDHJKasdhjk ads JHKAJKH aKShjk aSDHJKasdhjk ads #27 HOT 2
- Support for interlace image HOT 3
- Feature request: Export function for png signature check HOT 1
- tRNS not handled properly, causing a error during decoding gray scale images. HOT 3
- Add support for APNG HOT 2
- Encoding 16 bit floating point data to BT.2100 PQ PNG file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast-png.