Skip to content
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

Insert Images Into Nodes #51

Closed
MagnetoOptical opened this issue Feb 12, 2019 · 5 comments
Closed

Insert Images Into Nodes #51

MagnetoOptical opened this issue Feb 12, 2019 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@MagnetoOptical
Copy link

I think it'd be really great to insert images (maybe as a faded background element which auto-scales to the node size) so that those nodes will stand out more. With maps like the one I'm currently working on which have over 50 nodes (and growing), an image could make the map easier to navigate.

This is especially the case if auto-arranging of nodes becomes and option.

I realize this would probably require a new file format, but tar-gzipping the contents similar to what LibreOffice (and others) do should be sufficient, I would think.

@juzzlin
Copy link
Owner

juzzlin commented Feb 12, 2019

The original idea was to be able to embed all kinds of attachment data like images in the current file format. So I guess this is doable :)

@juzzlin juzzlin added the enhancement New feature or request label Feb 12, 2019
@juzzlin juzzlin self-assigned this Sep 30, 2019
juzzlin added a commit that referenced this issue Nov 25, 2019
- Node context menu now includes "Attach image" and "Remove attached image"
- The attached image shows as the background image of the node
- The image data is embedded in the .ALZ-file
juzzlin added a commit that referenced this issue Nov 25, 2019
- Node context menu now includes "Attach image" and "Remove attached image"
- The attached image shows as the background image of the node
- The image data is embedded in the .ALZ-file
@juzzlin
Copy link
Owner

juzzlin commented Nov 25, 2019

Implemented in c4e9e00.

@juzzlin juzzlin closed this as completed Nov 25, 2019
@mmahmoudian
Copy link

mmahmoudian commented Sep 27, 2021

@juzzlin I just installed this tool and I was hoping to be able to add images to the nodes but copy-pasting does not work, right-click menu or the application menu do not have any option for importing (either from clipboard or file). Searching through the issues of the repo got me to this thread which you stated in 2019 that it is implemented. Would you please guide me on how to do this?

P.s: the snap gave me segfault:

❯  snap run heimer
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
Mon Sep 27 14:44:50 2021 [I] Heimer version 2.6.0
Mon Sep 27 14:44:50 2021 [I] Copyright (c) 2018-2021 Jussi Lind
Mon Sep 27 14:44:50 2021 [I] Compiled against Qt version 5.9.5
Mon Sep 27 14:44:50 2021 [I] Trying Qt translations for 'en-US'
Mon Sep 27 14:44:50 2021 [W] Failed to load Qt translations for 'en-US'
Mon Sep 27 14:44:50 2021 [I] Trying application translations for 'en-US'
Mon Sep 27 14:44:50 2021 [W] Failed to load application translations for 'en-US'
Fontconfig warning: FcPattern object weight does not accept value [40 210)
[1]    16428 segmentation fault (core dumped)  snap run heimer

So I'm Running the AppImage (which I also personally prefer).

Update: I just figured it out that I should have right-clicked on an existing node:

Peek.2021-09-27.14-55.mp4

@juzzlin
Copy link
Owner

juzzlin commented Sep 27, 2021

Unfortunately the only way to add an image currently is to select a file. Not sure about that snap issue - it works on my Ubuntu 20.04 just fine.

@juzzlin
Copy link
Owner

juzzlin commented Sep 27, 2021

I didn't see Fontconfig warning: FcPattern object weight does not accept value [40 210) on my setup so maybe that's related to the crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants