Using wanderlust in emacs-25.1.x, how can I specify the display size and position in the message buffer of attached images that are shown inline?
I want to display smaller versions of the images, and I'd like to arrange them in a grid at the bottom of the message.
I can't find anything in the wanderlust docs about this.
Thank you in advance.
More info added ...
OK. Here's what I have been able to determine so far. Images are displayed using the code in semi/mime-image.el. Near the top of that file is a static-cond which is used to select different methods for displaying images. The one that is selected by default makes use of the standard emacs 'insert-image' function. Here is its doc string:
(insert-image IMAGE &optional STRING AREA SLICE)
Insert IMAGE into current buffer at point. IMAGE is displayed by inserting STRING into the current buffer with a ‘display’ property whose value is the image. STRING defaults to a single space if you omit it. AREA is where to display the image. AREA nil or omitted means display it in the text area, a value of ‘left-margin’ means display it in the left marginal area, a value of ‘right-margin’ means display it in the right marginal area. SLICE specifies slice of IMAGE to insert. SLICE nil or omitted means insert whole image. SLICE is a list (X Y WIDTH HEIGHT) specifying the X and Y positions and WIDTH and HEIGHT of image area to insert. A float value 0.0 - 1.0 means relative to the width or height of the image; integer values are taken as pixel values.
So, even if I change how 'insert-image' is called, it can't be used to resize the image ... only to reposition it and display slices (subsets) of it.
In order to resize these images, I am going to have to add code to redefine new versions the 'mime-image-create' and 'mime-image-insert' functions that normally get defined in semi/mime-image.el.
I'm still not sure how to best do this. Perhaps I can use imagemagick's 'display' program to rescale the image text.
I'm investigating this, and I will continue to report my findings.
w3m
kicks in to help display in-line images, but I'd need to check that to be sure . . .