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

[Enhancement] Image features #239

Open
mihdicaballero opened this issue Nov 9, 2023 · 3 comments
Open

[Enhancement] Image features #239

mihdicaballero opened this issue Nov 9, 2023 · 3 comments

Comments

@mihdicaballero
Copy link
Sponsor

[1] Can we choose to have relative locations of images that are pasted? Maybe after being pasted:

image

This is because if we move a Calcpad from the original folder, all the image links will be broken, and will have to relocate them all manually.

Maybe another option would be to define the fixed location above and then all images concatenate the fixed location with the relative one, and then you just update the fixed one in one place. This is because if I have a tool with 10 images and I want to paste it into my project folder, I wouldn't want to lose all the images.

I really don't know how it works, but the relative location is what makes LaTeX work with copy-paste of complete projects. The Image Wizard of TeXstudio makes it even easier to adjust.

[2] Can we remove the width or height of the image code? And block the aspect ratio by default. When I want to change the sizes of an image, I end up deleting one and modifying the other one.

@Proektsoftbg
Copy link
Owner

Hi!

Just put your images in the same folder or an "Images" subfolder. Then write <img src="./Images/map.png".

After that, if you "save as" your cpd file into another location, local images will be copied automatically.
If you pack your worksheet info a *.cpdz file with the latest version, all local images will be packed in it together with all modules. So, eventually, you will need to redistribute only one *.cpdz file and do not bother about dependencies.

What we did so far is also very simple. We uploaded all image files on internet and added the addresses. This is how all examples in Calcpad are made.

@mihdicaballero
Copy link
Sponsor Author

Aaah didn't know that part. Maybe can we add the change to the relative path in the same menu where you write the image name with a checkbox? So it makes the change automatically.

And what do you think about idea [2]?

@Proektsoftbg
Copy link
Owner

Yes, this would be a good option. :)

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

No branches or pull requests

2 participants