No bug Preview Images are blurred
- Helmut
-
Onderwerp Auteur
- Offline
Minder
Lees meer
- Berichten: 11
- Ontvangen bedankjes 0
1 jaar 2 maanden geleden #2842
door Helmut
Preview Images are blurred werd gestart door Helmut
Dit bericht bevat beveiligde informatie
Discussie gesloten.
- Ruud van Lent
-
- Offline
Minder
Lees meer
- Berichten: 1707
- Ontvangen bedankjes 111
1 jaar 2 maanden geleden #2843
door Ruud van Lent
Beantwoord door Ruud van Lent in topic Preview Images are blurred
Hi Helmut,
the preview image size is 290 x 170, but it is 'stretched' to fit in a 290 x 290 container.
because the height is smaller (170) then the container height (290) the image gets stretched. You can try to set the preview width to 500, that way the height will be around 290 and the image doesn't need to be stretched (and as such will not look blurred).
Can you five that a try?
the preview image size is 290 x 170, but it is 'stretched' to fit in a 290 x 290 container.
because the height is smaller (170) then the container height (290) the image gets stretched. You can try to set the preview width to 500, that way the height will be around 290 and the image doesn't need to be stretched (and as such will not look blurred).
Can you five that a try?
Discussie gesloten.
- Helmut
-
Onderwerp Auteur
- Offline
Minder
Lees meer
- Berichten: 11
- Ontvangen bedankjes 0
1 jaar 2 maanden geleden #2844
door Helmut
Beantwoord door Helmut in topic Preview Images are blurred
Hi Ruud,
i tested this but it doesn't work - the images are still blurred.
And - additionally - the 500px doesn't fit our needs (looks not good in our layout).
Best regards
Helmut
i tested this but it doesn't work - the images are still blurred.
And - additionally - the 500px doesn't fit our needs (looks not good in our layout).
Best regards
Helmut
Discussie gesloten.
- Ruud van Lent
-
- Offline
Minder
Lees meer
- Berichten: 1707
- Ontvangen bedankjes 111
1 jaar 2 maanden geleden - 1 jaar 2 maanden geleden #2845
door Ruud van Lent
Beantwoord door Ruud van Lent in topic Preview Images are blurred
Hi Helmut,
that is due to the boxed layout: that sets the preview width on the image element: in your case now to 500 > this makes the height to be agin strecthed from 290 to 500 > that will be blurred.
So there are two things you can do here: do not use the boxed layout but e.g. the flexbox layout: that will set the preview widt but it will not set the height and as such the image is not stretched,
of if you want the boxe layout you can do a template override for it:
in file gallery_boxed.php you can change line
to (e.g.)
that way the 500px preview image will be displayed in a 290 x 290 box and then there is no need to stretch as the height of the image is appr. 290px
Note that this will then be 'fixed' size also for other boxed galleries
that is due to the boxed layout: that sets the preview width on the image element: in your case now to 500 > this makes the height to be agin strecthed from 290 to 500 > that will be blurred.
So there are two things you can do here: do not use the boxed layout but e.g. the flexbox layout: that will set the preview widt but it will not set the height and as such the image is not stretched,
of if you want the boxe layout you can do a template override for it:
in file gallery_boxed.php you can change line
Code:
$previewWidth = $tag['previewWidth'];
to (e.g.)
Code:
$previewWidth = 290;
that way the 500px preview image will be displayed in a 290 x 290 box and then there is no need to stretch as the height of the image is appr. 290px
Note that this will then be 'fixed' size also for other boxed galleries
Laatst bewerkt 1 jaar 2 maanden geleden doorRuud van Lent.
Discussie gesloten.
- Helmut
-
Onderwerp Auteur
- Offline
Minder
Lees meer
- Berichten: 11
- Ontvangen bedankjes 0
1 jaar 2 maanden geleden #2847
door Helmut
Beantwoord door Helmut in topic Preview Images are blurred
Hello Ruud,
thanks for the workaround. For now - this works
Best regards
Helmut
thanks for the workaround. For now - this works

Best regards
Helmut
Discussie gesloten.
- Ruud van Lent
-
- Offline
Minder
Lees meer
- Berichten: 1707
- Ontvangen bedankjes 111
1 jaar 2 maanden geleden #2848
door Ruud van Lent
Beantwoord door Ruud van Lent in topic Preview Images are blurred
Thanks for reporting back Helmut.
Good to hear (and see) that it worked out!
Closing this topic, if you have any other questions / suggestions feel free to open a new topic.
Regards,
Ruud.
Good to hear (and see) that it worked out!
Closing this topic, if you have any other questions / suggestions feel free to open a new topic.
Regards,
Ruud.
Discussie gesloten.