]> git.eshelyaron.com Git - emacs.git/commit
Add image resizing and rotation to NS port
authorAlan Third <alan@idiocy.org>
Sun, 3 Dec 2017 17:39:03 +0000 (17:39 +0000)
committerAlan Third <alan@idiocy.org>
Sun, 3 Dec 2017 22:41:05 +0000 (22:41 +0000)
commite4f2061ebc61168f23c0d9440221cbc99864deae
treec9831522b68c63c5810b0164ec67fb3714c771fd
parent1cdd0e8cd801aa1d6f04ab4d8e6097a46af8c951
Add image resizing and rotation to NS port

* lisp/image.el (image--get-imagemagick-and-warn): Bypass imagemagick
check when using NS.
* src/nsimage.m (ns_load_image): Add rotation and resizing
functionality. Move the getMetaData call to before the resize/rotation
so it returns correct metadata.
(EmacsImage::setSizeFromSpec, EmacsImage::rotate): New functions.
* src/nsterm.h (EmacsImage): Add new function prototypes.
(NSCompositingOperationCopy): Add define to older equivalent for
GNUstep and pre-10.12 macOS.
* configure.ac: Don't use libjpeg on Cocoa.
configure.ac
lisp/image.el
src/nsimage.m
src/nsterm.h