Not a bug

Gallery auto-rotate pictures ?

rfavrelle 2 years ago updated 1 year ago 7

So I created a "Image gallery" type shared link w/ password, and, although thumbnails are fine, all the portrait pictures are automatically to landscape. Is that expected behaviour, and, if yes, is there a way to change it?

Thanks a lot

Under review

Is ImageMagick enabled in your FileRun installation? (Under the control panel "Files" -> "Image preview".)

Yes, here's the output of the built-in test button. I'm using the official docker image.

GraphicsMagick 1.3.25 2016-09-05 Q16 http://www.GraphicsMagick.org/
Copyright (C) 2002-2016 GraphicsMagick Group.
Additional copyrights and licenses apply to this software.
See http://www.GraphicsMagick.org/www/Copyright.html for details.
Feature Support:
 Native Thread Safe yes
 Large Files (> 32 bit) yes
 Large Memory (> 32 bit) yes
 BZIP yes
 DPS no
 FlashPix no
 FreeType yes
 Ghostscript (Library) no
 JBIG yes
 JPEG-2000 no
 JPEG yes
 Little CMS yes
 Loadable Modules no
 OpenMP yes (201511)
 PNG yes
 TIFF yes
 TRIO no
 UMEM no
 WebP yes
 WMF yes
 X11 yes
 XML yes
 ZLIB yes
Host type: x86_64-pc-linux-gnu
Configured using the command:
./configure '--build' 'x86_64-linux-gnu' '--enable-shared' 
'--enable-static' '--enable-libtool-verbose' '--prefix=/usr' 
'--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' 
'--with-gs-font-dir=/usr/share/fonts/type1/gsfonts' '--with-x' 
'--x-includes=/usr/include/X11' '--x-libraries=/usr/lib/X11' 
'--without-dps' '--without-modules' '--without-frozenpaths' 
'--with-webp' '--with-perl' '--with-perl-options=INSTALLDIRS=vendor' 
'--enable-quantum-library-names' '--with-quantum-depth=16' 
'build_alias=x86_64-linux-gnu' 'CFLAGS=-Wall -g -fno-strict-aliasing 
-O2' 'LDFLAGS=' 'CXXFLAGS=-Wall -g -fno-strict-aliasing -O2'
Final Build Parameters:
 CC = gcc
 CFLAGS = -fopenmp -Wall -g -fno-strict-aliasing -O2 -Wall -pthread
 CPPFLAGS = -I/usr/include/X11 -I/usr/include/freetype2 -I/usr/include/libxml2
 CXX = g++
 CXXFLAGS = -Wall -g -fno-strict-aliasing -O2 -pthread
 LDFLAGS = -L/usr/lib/X11 -L/usr/lib/x86_64-linux-gnu
LIBS = -ljbig -lwebp -llcms2 -ltiff -lfreetype -ljpeg -lpng16 
-lwmflite -lXext -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lz -lm -lgomp 

Not a bug

When opening the images for viewing, FileRun applies no processing, and the files are loaded in the browser as they are. Browsers currently do not handle JPG EXIF orientation, unless the files are opened by their direct URL (ie, not in a web page).

We won't be adding manual processing of this as it adds too much overhead, either on the browser side or the server side. We are currently waiting for the browsers to handle this better.

How come then it works with thumbnails?

I thought Image shock was used to view the images.. Or is it only used to create the thumbnails? 

Could FileRun not tell imagemagick to use the orientation data of the image? 

Clicking on an image it loads the image file as it is. Doing real-time processing to it would be slow. Doing in advance would make other actions slow and use up storage. It's enough that it has to do so for the thumbnails.

So far...one year is over and the browser still didn't react neither Filerun. 
Would be great to see some action or some possibilities to active something like "rotate" on our own for the cost of real-time calculation in weblinks. Maybe active imagemagick for weblinks?