Re: [Koha] Two problems with cover images: rotation and scaling

2021-02-11 Thread Owen Leonard
>   1.  When uploading a local cover image which is in portrait mode (i.e. 
> width is smaller than height), KOHA will display this image in the catalogue 
> rotated 90°, i.e. in landscape mode

In my experience when this happens in other (non-Koha) situations, the
explanation is in the photo's EXIF data:
https://www.howtogeek.com/254830/why-your-photos-dont-always-appear-correctly-rotated/

Koha isn't designed to read EXIF orientation data. If the photo was
created in landscape mode and it's the data which tells your photo
viewer that it should be displayed in portrait mode, Koha doesn't know
it.

I don't know if this has any relevance to your situation but I thought
it might help. I've never seen Koha incorrectly rotate a cover image.

 -- Owen

-- 
Web Developer
Athens County Public Libraries
(740) 737-6006
https://www.myacpl.org
___

Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Two problems with cover images: rotation and scaling

2021-02-11 Thread Jonathan Druart
Hello André,
1. It's hardcoded, you cannot configure that. You should open a bug report.
2. It's a bug that has been fixed in more versions, see bug 23963
(which actually reverts 21987)
Regards,
Jonathan
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23963
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21987

Le jeu. 11 févr. 2021 à 07:41, André Hartmann
 a écrit :

>
> Hello,
>
>   I have two problems with local cover images in our KOHA instance 
> (18.05.14.000). They concern rotation and scaling of the images.
>
>
>   1.  When uploading a local cover image which is in portrait mode (i.e. 
> width is smaller than height), KOHA will display this image in the catalogue 
> rotated 90°, i.e. in landscape mode... so you have to twist your neck to read 
> it. Very inconvenient! Is there a way to avoid this? I scanned the system 
> preferences but I could not find anything whose name suggests it has anything 
> to do with that. When I upload images in landscape mode, they remain upright, 
> so everything is fine. Images uploaded are jpg, size seems irrelevant.
>
>
>
>   1.  The upladed images get scaled down, resolution is lost significantly. I 
> am aware that KOHA displays images as thumbnails and when you click on them 
> supposedly in full size. But even the full size view has lost resolution. 
> When a cover image contains a photo of the table of contents from a book, 
> this cannot be read anymore when viewed in KOHA... but the picture before 
> upload is very clear. Is there a way to control the downsizing/scaling, that 
> KOHA obviously applies here?
>
> Thanks in avdance,
>
> André Hartmann
> KOHA admin of the libraries of the Berlin astronomical observatories
> ___
>
> Koha mailing list  http://koha-community.org
> Koha@lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
___

Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha