Page 1 of 2

Detail view cropped

Posted: 29 Mar 2019, 23:40
by Reddar
Hi,

Everething was going fine but i have an issue and i don't have any ideas how to solve it.

When i select a picture in a category view,using Photoswipe, the picture (the large Thumbnail) is cropped !

I have try a lot of parameters without success. The crop thumbnail parameter is set to "Medium and small thumnails".

Thanks for your help.

Best regards

PD

Re: Detail view cropped

Posted: 30 Mar 2019, 08:37
by KarEm
What did you do before the problem occurred?

Regards
KarEm

Re: Detail view cropped

Posted: 30 Mar 2019, 12:59
by Reddar
I have change the value Widh & height of the large image in the Thumbnails parameters.
The original image is 4016x6016.
With Large thumbnail 2000x1500 , the result is OK
With large thumbnail parameters 1920x1080, the large thumbnail image is cropped.

Regards
PC

Re: Detail view cropped

Posted: 30 Mar 2019, 13:31
by KarEm
An image / thumbnail format of 2000x1500 corresponds to 4:3, one of 1920 x 1080 corresponds to 16:9. If I'm not wrong, an image in 1920 x 1080 will be cropped. The format of the original image is matches nearly 2:3 format. I.e. 3 different formats. Don't know how to solve this without cropping.

Re: Detail view cropped

Posted: 30 Mar 2019, 19:27
by Reddar
it's not a matter of ratio.
I've made additionnal tests.
I've used the same image in Portrait and Landscape view. I've used 4 differents ratio for the thumbnail parameters and 2 where equal to the image ratio.
The large thumbnail generation create 2 files: L1 and L. The L1 is larger than the L. It seams that the L1 is used for detail view of a portrait image and the L for landscape.
Whatever the thumbnails parameters used there is always on thumnail cropped.

And only one parameter give me at the same time a L1 thumbnail for the portrait and a L for the lanscape not cropped !

For 2 pictures, 4016x6016 (ratio 0.67) and 6016x4016 (ratio 1.5) i use as thumbnail parameters 2000x1500 (ratio 1.33)

Re: Detail view cropped

Posted: 30 Mar 2019, 20:37
by Reddar
The solution : change the "Additonal Thumbnail" parameter from All to small and medium ==> L1 large thumbnail is not created.

L large thumbnail is never cropped whatever the thumbnail size parameter ratio.

Re: Detail view cropped

Posted: 30 Mar 2019, 20:51
by Benno
Hi,
When you put the "Additonal thumbnail" to Yes, additonnal small and medium thumbnail are created but also the L1 large thumbnail.
The _l1_ thumbs will be created if you set: Additional Thumbnails=All
If you set: Additional Thumbnails=Medium and Small they will be not created.
The _l1_ thumbs will be not needed in most cases.

Kind regards,
Benno

Re: Detail view cropped

Posted: 30 Mar 2019, 23:10
by Reddar
The _l1_ thumbs will be not needed in most cases.
Maybe , but if you set the Different Thubmnail Height parameter to yes, the Photoswipe detailled view is requesting a _l1_ thumbnail.

Is it possible to modify some code to force the use of the _l_ thumb instead ?

Re: Detail view cropped

Posted: 31 Mar 2019, 17:05
by Jan
Hi, then you need to customize the PHP code directly, e.g.:

administrator\components\com_phocagallery\libraries\phocagallery\file\filethumbnail.php

e.g. function: getThumbnailName

Jan

Re: Detail view cropped

Posted: 31 Mar 2019, 21:10
by Reddar
Fantastic ! Issue solved.

You're the best !