• Paul Eggert's avatar
    For SVG, 8192 is the new 256 · db9af103
    Paul Eggert authored
    Prefer librsvg for display of splash.svg
    When both librsvg and Imagemagick are available, Emacs should
    prefer librsvg to render SVG images.  However, Emacs was using
    Imagemagick to render its own splash.svg file because
    image-type-from-file-header returned nil for that file.
    * lisp/image.el (image-type-from-buffer)
    (image-type-from-file-header): Look at the first 8192 bytes of
    the image, not just the first 256.  For Emacs’s own splash.svg
    file, image-type-header-regexps needs to look at 939 bytes.
    8192 bytes is a reasonable number nowadays given typical file
    system design.
    * test/lisp/image-tests.el (image-tests--emacs-images-directory):
    New contant.
    (image-type-from-file-header-test): New test.
    db9af103
Name
Last commit
Last update
admin Loading commit data...
build-aux Loading commit data...
doc Loading commit data...
etc Loading commit data...
leim Loading commit data...
lib Loading commit data...
lib-src Loading commit data...
lisp Loading commit data...
lwlib Loading commit data...
m4 Loading commit data...
modules Loading commit data...
msdos Loading commit data...
nextstep Loading commit data...
nt Loading commit data...
oldXMenu Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.dir-locals.el Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
BUGS Loading commit data...
CONTRIBUTE Loading commit data...
COPYING Loading commit data...
ChangeLog.1 Loading commit data...
ChangeLog.2 Loading commit data...
ChangeLog.3 Loading commit data...
GNUmakefile Loading commit data...
INSTALL Loading commit data...
INSTALL.REPO Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
config.bat Loading commit data...
configure.ac Loading commit data...
make-dist Loading commit data...