Open pawsen opened 4 years ago
Hi @pawsen,
Sorry for the delay.
I would recommend that you advise the org-msg-org-to-xml
on its results, walk through the XML tree, locate the img
tags and do the transformation at this point.
Jeremy
Hi Jeremy, Thank you for the answer. I will try it.
Dear all,
I would like to automatic resize all inline- and attached images in messages I send. The listed code does this for attached images, but not for inline images (ie
[[file:~/some_inline_img.jpg]]
).mu4e-resize-image-attachments
is run bymessage-send-hook
, looking for something likeand then replacing the filename with a resized version of the image created in
/tmp
.What do I have to look for, for inline messages? org-msg also adds to the
message-send-hook
. How do I know in which order the different hooks are run in, ie. should I search for[[file:~/some_inline_img.jpg]]
, resize and replace with[[file:/tmp/some_inline_img.jpg]]
?Best regards, Paw