view .dir-locals.el @ 19728:c334e4af3a1b

Fix incorrect writing of grayscale JPEG images (bugs #41673, #44118, #42474) * __magick_read__.cc: when writing grayscale images, we should create a Magick::Image object of Magick::GrayscaleType type, then use Magick::Color with only the red channel set (the other channels would be ignored). However, this seems to not work for JPEG images which would then generate grayscale images with one third of the intensity. This fixes it.
author Ilya Kurdyukov <olme8@mail.ru>
date Wed, 11 Feb 2015 17:40:04 +0000
parents 9ff04de067ce
children
line wrap: on
line source

((nil .
      ((c-file-style . "gnu")
       (indent-tabs-mode . nil)
       (fill-column . 72)
       (eval . (when (and (buffer-file-name)
                          (string-match-p "\\.h\\'" (buffer-file-name))
                          (not (string-match-p "/gnulib/" (buffer-file-name))))
                 (c++-mode)
                 (c-set-style "gnu")))))
 (change-log-mode . ((indent-tabs-mode . t)))
 (makefile-mode . ((indent-tabs-mode . t))))