Such functionality is provied by packages:
With point in the thumbnail buffer, you can type RET (image-dired-display-thumbnail-original-image) to display a sized version of it in another window. This sizes the image to fit the window.
It uses ImageMagick's convert command.
You can also use image-dired-external-viewer to avoid ...
I used the source code in lisp/image-mode.el to write this up. Calling this function in any image buffer will resize it to fit to width or height depending on the image and window height/width ratios.
You do need these 2 things for this function to work:
Your Emacs needs to have been compiled with ImageMagick.
By default libjpeg loader is used to ...
Do you see the same problem when you start Emacs using emacs -Q? I doubt it. If so, and if your Emacs version is recent, report the problem: M-x report-emacs-bug.
If not, then recursively bisect your init file to determine the culprit. You can use command comment-region to comment out a region of text (and with C-u it uncomments a region).
(With emacs -Q, ...
in my case, scaling didn't work because my variable-pitch configuration specified the :height in the format 140. i switched it to the format 1.3. and now it works.
(thanks Basil for the pointers. emacs -Q will come in handy again i'm sure.)
mapping behavior similar to browser might be helpful,
zoom in : Ctrl + mouse-scroll-up and Ctrl + Shift + =
zoom out : Ctrl + mouse-scroll-down and Ctrl + -
zoom 1x : Ctrl + 0
these config are for the single buffer
(global-set-key [C-mouse-4] 'text-scale-increase)
(global-set-key [(control ?+)] 'text-scale-increase)
(global-set-key [C-mouse-5] 'text-...
Library zoom-frm.el lets you do either of these things using the mouse wheel:
Zoom the buffer text size, for all windows showing a given buffer. This is called text-scaling.
Zoom the frame text size, for a given frame or for all frames.
It, in turn, requires these libraries:
See also Changing Font Size.
These are bindings ...
I believe this is related to a recent OS change (from Ubuntu to Arch), which included an Emacs upgrade from 24.3 to 24.4. I think my .emacs.desktop files were not compatible with this update, and this zoom bug was one effect. My desktop files are used to save my open buffers for each emacs session.
Thanks to @Drew's answer, I found the cause of this issue ...
image-transform-set-scale may be what you are looking for. However it requires Emacs to be compiled with Imagemagick support.
There is also a commented out image-transform-mode in image-mode.el labeled "Not yet implemented."