nobiot / org-transclusion

Emacs package to enable transclusion with Org Mode
https://nobiot.github.io/org-transclusion/
GNU General Public License v3.0
941 stars 48 forks source link

Org image size not updated for transcluded text #127

Open joshcho opened 2 years ago

joshcho commented 2 years ago

When I change the image size in org (using image-decrease-size), the change doesn't get reflected in the transcluded text.

Calling the function on the transcluded text does update the size, but once you remove and add again, the image is back to its default size.

nobiot commented 2 years ago

I have a little bit of hard time to really reproduce the issue, but I think I got what you are doing -- I don't use org-toggle-inline-images often and every time I refresh the transclusion with an image I need to disable and then enable it again.

For keeping the decreased image size, I don't know if i can do much.

But I set this variable org-image-actual-width to make the default a reasonable size for my screen. I suggest that you use it rather than adjusting the size manually.

joshcho commented 2 years ago

Yup, that's what I ended up doing, and it works well until I have different kinds of images (textbook screenshots and lecture slides require very different image sizes). I will try to look into this when I get the time.

nobiot commented 2 years ago

How about this solution? https://stackoverflow.com/questions/11670654/how-to-resize-images-in-org-mode/69339844#69339844

You should be able to add #+attr* before specific transclusion keywords

ParetoOptimalDev commented 1 month ago

How about this solution? https://stackoverflow.com/questions/11670654/how-to-resize-images-in-org-mode/69339844#69339844

You should be able to add #+attr* before specific transclusion keywords

I can confirm this works as I just used it.