I have a very complex document with many pictures (jpg, png and pdf). In trying to improve compiling performance I tried to convert all pictures to jpg, then all pictures to png and then to pdf (with imagemagick and density 400). Then I timed the compiling times:
- all pictures in pdf format: 41s
- all pictures in jpg format: 41s
- all pictures in png format: 55s
What are the reasons that png pictures are slower? Is it generally true that the same pictures in jpg and pdf format load with the same speed and that the same picture in png loads slower or can you report cases where the ranking is different?
Is there even a better format for performance than jpg/pdf?
Is there any general accepted "best practice" of which graphics format is the best for including non-vector-graphics into a pdflatex document with respect to performance and other aspects?
I used the texlive delivered with ubuntu 15.10.
draftexcept for the final version of when you specifically need to see the images? Note, too, that it depends on how large the images are. If you are creating huge imaes and then scaling them down, things are going to take longer for no discernible benefit (and maybe disbenefit). – cfr Oct 08 '16 at 22:20