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
Detail view cropped
- KarEm
- Phoca Professional
- Posts: 154
- Joined: 20 Dec 2015, 21:25
Re: Detail view cropped
What did you do before the problem occurred?
Regards
KarEm
Regards
KarEm
-
- Phoca Enthusiast
- Posts: 58
- Joined: 29 Mar 2019, 23:33
Re: Detail view cropped
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
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
- KarEm
- Phoca Professional
- Posts: 154
- Joined: 20 Dec 2015, 21:25
Re: Detail view cropped
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.
-
- Phoca Enthusiast
- Posts: 58
- Joined: 29 Mar 2019, 23:33
Re: Detail view cropped
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)
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)
-
- Phoca Enthusiast
- Posts: 58
- Joined: 29 Mar 2019, 23:33
Re: Detail view cropped
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.
L large thumbnail is never cropped whatever the thumbnail size parameter ratio.
- Benno
- Phoca Hero
- Posts: 9117
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Detail view cropped
Hi,
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
The _l1_ thumbs will be created if you set: Additional Thumbnails=AllWhen you put the "Additonal thumbnail" to Yes, additonnal small and medium thumbnail are created but also the L1 large thumbnail.
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
-
- Phoca Enthusiast
- Posts: 58
- Joined: 29 Mar 2019, 23:33
Re: Detail view cropped
Maybe , but if you set the Different Thubmnail Height parameter to yes, the Photoswipe detailled view is requesting a _l1_ thumbnail.The _l1_ thumbs will be not needed in most cases.
Is it possible to modify some code to force the use of the _l_ thumb instead ?
- Jan
- Phoca Hero
- Posts: 47883
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Detail view cropped
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
administrator\components\com_phocagallery\libraries\phocagallery\file\filethumbnail.php
e.g. function: getThumbnailName
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 58
- Joined: 29 Mar 2019, 23:33
Re: Detail view cropped
Fantastic ! Issue solved.
You're the best !
You're the best !