1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00
emacs/lisp/image
Eli Zaretskii ae7d0e86b3 Support built-in thumbnail creation on MS-Windows
* src/w32image.c (get_encoder_clsid, Fw32image_create_thumbnail)
(globals_of_w32image, syms_of_w32image): New functions.
* src/emacs.c (main): Call 'syms_of_w32image' and
'globals_of_w32image'.
* src/w32term.h (syms_of_w32image, globals_of_w32image): Add
prototypes.

* lisp/image/image-dired.el
(image-dired-thumbnail-display-external): Add a fallback for
MS-Windows.
* lisp/image/image-dired-external.el
(image-dired--probe-thumbnail-cmd): New function.
(image-dired--check-executable-exists): Call it to verify that
"convert" is indeed an Imagemagick program.  New argument FUNC
specifies a function that can be used as an alternative to running
EXECUTABLE.
(image-dired-create-thumb-1): Don't call
'image-dired--check-executable-exists' here, ...
(image-dired-thumb-queue-run): ...call it here, with
'w32image-create-thumbnail' as the alternative function.  If on
MS-Windows and no "convert" command, call
'image-dired-create-thumb-2' instead.
(image-dired-create-thumb-2): New function.

* etc/NEWS: Announce the thumbnail support.
2024-05-30 17:45:33 +03:00
..
compface.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
exif.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
gravatar.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
image-converter.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
image-crop.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
image-dired-dired.el Enable marking tagged with ls -F 2024-01-27 20:44:01 +02:00
image-dired-external.el Support built-in thumbnail creation on MS-Windows 2024-05-30 17:45:33 +03:00
image-dired-tags.el Avoid errors in 'image-dired-tag-thumbnail' 2024-05-08 16:13:27 +03:00
image-dired-util.el Avoid another warning (bug#70942). 2024-05-14 20:45:58 +03:00
image-dired.el Support built-in thumbnail creation on MS-Windows 2024-05-30 17:45:33 +03:00
wallpaper.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00