I wish to display org mode inline image (in emacs) with width 400 but actually it always show it as original size.
My steps as below:
- Install ImageMagick with below command:
sudo port install imagemagick Install emacs with below command:
brew install emacs --HEAD --use-git-head --cocoa --with-gnutls --with-rsvg --with-imagemagickThen I check it, emacs version isGNU Emacs 26.0.50.1, but(image-type-available-p 'imagemagick)result isnilEdit ~/.emacs.d/init.el to add below line:
(setq org-image-actual-width nil)- Write below org code in test.org:
#+ATTR_ORG: :width 400
[[file:test.png]]
5. After run C-c C-x C-v,Image not displayed as 400 but actual size.
sudo port install emacs-app +imagemagick. It looks you are using MacPorts to install dependency for HomeBrew, I have no idea if it should work. and there is no need to install dependency manually at all, it is your package manager's job. Besides, using two package managers at a time is usually a bad idea and unnecessary.