f71548ce45991fc2698426199116beb8c067d0c2 — Ivan Oleynikov 1 year, 13 days ago b194997
Make freeimage backend have preceedence over libjpeg

The current implementation of freeimage backend automatically rotates the
images based on EXIF info. Libjpeg backed doesn't do that (although libjpeg
itself may be able to, I didn't check). This commit makes Imv use freeimage for
jpeg files when both backends are available to enable automatic image rotation
when possible.

A cleaner solution could be to add automatic rotaiton functionality to libjpeg
backend as well, but this quick hack is better than nothing ☺
1 files changed, 4 insertions(+), 4 deletions(-)

M src/main.c
M src/main.c => src/main.c +4 -4
@@ 18,6 18,10 @@ int main(int argc, char **argv)
    return 1;

  imv_install_backend(imv, &imv_backend_freeimage);

  imv_install_backend(imv, &imv_backend_libtiff);

@@ 38,10 42,6 @@ int main(int argc, char **argv)
  imv_install_backend(imv, &imv_backend_libnsgif);

  imv_install_backend(imv, &imv_backend_freeimage);

  imv_install_backend(imv, &imv_backend_libheif);