I've found that if I open an image in Emacs over 1MB it starts to take a while. I justed opened up a 3MB and it took 16seconds. I'm just using the default image-mode is there a better way?
Is there a way to shrink the preview image before putting it into a buffer? Maybe using imagemagick?
Update When I type in './configure --prefix=/opt/emacs-26.0.50 --with-xft' it already says I'm using imagemagick, do I have to recompile with --with-imagemagick? It doesn't seem to change this list if I configure with-imagemagick.
Where should the build process find the source code? .
What compiler should emacs be built with? gcc -std=gnu11 -g3 -O2
Should Emacs use the GNU version of malloc? yes
(Using Doug Lea's new malloc from the GNU C Library.)
Should Emacs use a relocating allocator for buffers? no
Should Emacs use mmap(2) for buffer allocation? no
What window system should Emacs use? x11
What toolkit should Emacs use? GTK3
Where do we find X Windows header files? Standard dirs
Where do we find X Windows libraries? Standard dirs
Does Emacs use -lXaw3d? no
Does Emacs use -lXpm? yes
Does Emacs use -ljpeg? yes
Does Emacs use -ltiff? yes
Does Emacs use a gif library? yes -lgif
Does Emacs use a png library? yes -lpng12
Does Emacs use -lrsvg-2? yes
Does Emacs use cairo? no
Does Emacs use imagemagick (version 6)? yes
Does Emacs support sound? yes
Does Emacs use -lgpm? yes
Does Emacs use -ldbus? yes
Does Emacs use -lgconf? no
Does Emacs use GSettings? yes
Does Emacs use a file notification library? yes -lglibc (inotify)
Does Emacs use access control lists? no
Does Emacs use -lselinux? no
Does Emacs use -lgnutls? yes
Does Emacs use -lxml2? yes
Does Emacs use -lfreetype? yes
Does Emacs use -lm17n-flt? yes
Does Emacs use -lotf? yes
Does Emacs use -lxft? yes
Does Emacs use -lsystemd? no
Does Emacs directly use zlib? yes
Does Emacs have dynamic modules support? no
Does Emacs use toolkit scroll bars? yes
Does Emacs support Xwidgets (requires gtk3)? no
Does Emacs have threading support in lisp? yes
Update: How I build emacs
Here is how I'm compiling emacs under Debian Jessie (64bit)
cd ~/src/emacs-master
git pull
./autogen.sh
./autogen.sh git
./configure --prefix=/opt/emacs-26.0.50 --with-xft --with-imagemagick
make bootstrap -j32
sudo make install
Output from configure command https://gist.github.com/map7/ebbec3c6ce491180099bde6e7c1a5fa3