Comments (4)
Hi,
I understand your need, but unfortunately it's not possible to convert SVG/PNG back to Heimer's internal data model :(
from heimer.
I was thinking more along the lines of appending a copy of the internal data-format to the end of the PNG stream.
AFAIK png-decoders ignore any additional bytes after the image data
cat exported.png original.alz > combined.png
The combined.png
should practically work like a regular image but it gives the option to "import" it back into heimer.
Either by jumping through the chunks or just skipping all bytes until the IEND
marker;
https://en.wikipedia.org/wiki/PNG#Examples
Then assume that any additional bytes are alz-format.
As for SVG; It's xml, introducing a custom tag like <alz>base64-encoded-heimer-graph</alz>
can be done but that would require additional steps parsing XML. :/
I don't know.
Point is, I really like your software, creativity thrives in simplicity and limitation; IMHO: The more devices that your custom data-format reaches (even if it's embedded) the higher the chance that more people will download the editor.
from heimer.
Hmm, ok :)
That could indeed be doable - although a bit hackish.
from heimer.
I think it's the same technique used today by https://draw.io and https://www.lexaloffle.com/pico-8.php
A long time ago I used it myself in a couple of projects to prepend cross-os-folder thumbnails/previews.
The tradeoff is that filemagic reports image/png
for such files shrug
Um. If this feature is part of the roadmap, would you mind reopen?
Cheers!
from heimer.
Related Issues (20)
- Paste option doesn't work for special characters inside a node's textbox HOT 1
- Attached node background images not loading HOT 6
- Add option to automatically open the last used file on application start HOT 2
- cannot drag and move when zoomed in + performance issues HOT 5
- Undo stack takes too much memory
- Shadow effects introduce performance issues HOT 7
- Cannot drag if the drag position is inside the virtual rectangle spanned by an edge HOT 1
- Build failure with gcc13 Wchanges-meaning HOT 3
- Suggestion: Search list that lets you move to the respective node + shortcut HOT 4
- Add additional arrows HOT 6
- Feature request: Selection features, alignment HOT 2
- Cut and paste between diagrams HOT 4
- [Feature Request] option to set an image as background and draw nodes on it
- Option to include grid on export HOT 3
- Refactor CMakeLists.txt for Qt 6
- Feature request: child has same colors as parent HOT 3
- Qt6: Fix deprecated QMessageBox::critical()
- Propely set the output path for unit test binaries
- Run error in ArchLinux HOT 7
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 heimer.