]> git.eshelyaron.com Git - emacs.git/commit
Fix misc problems with thumbnails on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sat, 1 Jun 2024 13:43:18 +0000 (16:43 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 1 Jun 2024 17:05:01 +0000 (19:05 +0200)
commitfc61466ab15a4fd1e49dbaff4a1db26d350c9e59
tree2e5fd68a2449d5a70c501a3735d29e94a18f5424
parent303d61e9c2c336bb7b5fba6fbe46cd1b92785c7c
Fix misc problems with thumbnails on MS-Windows

* lisp/image/image-dired-external.el (image-dired-pngcrush-thumb):
Fix deletion of intermediate file.
(image-dired-cmd-pngcrush-options)
(image-dired-cmd-create-standard-thumbnail-options): Use %u for
file:// URI.
(image-dired--file-URI): New function.
(image-dired-create-thumb-1, image-dired-create-thumb-2)
(image-dired-set-exif-data): Use it to generate correct URI on
MS-Windows.

* src/w32image.c (Fw32image_create_thumbnail): Copy the file names
before mirroring their slashes.

(cherry picked from commit d2dce513445d7235c9f751ea6d9b4847d62882e7)
lisp/image/image-dired-external.el
src/w32image.c