* Displaying BMP Images in Emacs 27.1's Image Major Mode.
@ 2022-10-08 10:26 Ralph Corderoy
2022-10-16 17:11 ` Bruno Barbier
0 siblings, 1 reply; 2+ messages in thread
From: Ralph Corderoy @ 2022-10-08 10:26 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
On Debian 11, Bullseye, I've package emacs 1:27.1+1-3.1 installed on a
remote server. If I ‘ssh -Y’ to the machine and run ‘emacs
/tmp/foo.png’ then the X Windows version of Emacs appears on the local X
server with the top-half of the window showing foo.png as pixels in
‘(Image[png])’ mode. All is well.
Note, I have no ~/.emacs file as the remote user.
But if I run ‘emacs /tmp/foo.bmp’ instead then I see the characters of
the file in the top-half buffer and it's in ‘(Fundamental Image)’ mode.
At the bottom of the window it says ‘Cannot display image: (Invalid
image type `bmp')’. ^C ^X switches to the hex-dump and ^C ^C switches
back, as I'd expect in Image mode.
I'm aware BMP needs an external converter. The remote machine has
Debian packages for graphicsmagick and imagemagick-6.q16 installed.
gm(1) works fine, for example.
I used customize to set image-use-external-converter to t but that
didn't improve the above BMP outcome after quitting and re-running.
The setting did appear in a new ~/.emacs.
I've also replaced ~/.emacs with
(auto-image-file-mode 1)
(setq image-use-external-converter t
image-converter 'graphicsmagick)
based on some ’net searching with no improvement.
Using ‘strace -fe execve emacs /tmp/foo.bmp’, I see no attempt to run
gm(1) or similar to learn what formats they support or try a conversion.
Please put me out of my misery or, if you think that's too extreme,
let me know few scant lines in ~/.emacs would display the BMP.
--
Thanks, Ralph.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Displaying BMP Images in Emacs 27.1's Image Major Mode.
2022-10-08 10:26 Displaying BMP Images in Emacs 27.1's Image Major Mode Ralph Corderoy
@ 2022-10-16 17:11 ` Bruno Barbier
0 siblings, 0 replies; 2+ messages in thread
From: Bruno Barbier @ 2022-10-16 17:11 UTC (permalink / raw)
To: Ralph Corderoy, help-gnu-emacs
Ralph Corderoy <ralph@inputplus.co.uk> writes:
> Hi,
>
> On Debian 11, Bullseye, I've package emacs 1:27.1+1-3.1
> ..
> But if I run ‘emacs /tmp/foo.bmp’
With an emacs 27.1, compiled '--with-imagemagick', the command:
emacs -Q an_image.bmp
just works for me (more info below, and I didn't use a remote but I
don't think it matters).
Did you manage to make it work ? Did you try using "-Q" ?
Bruno
emacs-version:
GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, X toolkit) of 2022-10-16
system-configuration-options:
"--with-imagemagick --without-gif --without-compress-install
--without-hesiod --without-gameuser --without-lcms2 --without-mailutils
--without-wide-int --without-kerberos --without-kerberos5
--with-sound=no --without-ns --without-gconf --without-gsettings
--without-toolkit-scroll-bars --with-harfbuzz --without-libotf
--without-m17n-flt --without-xwidgets --with-gif=ifavailable
--with-native-compilation --without-modules --without-threads
--with-x-toolkit=lucid --without-pop"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-16 17:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-08 10:26 Displaying BMP Images in Emacs 27.1's Image Major Mode Ralph Corderoy
2022-10-16 17:11 ` Bruno Barbier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.