Page 1 of 1
[Solved] thumbnail problem
Posted: 06 Dec 2015, 00:18
by otrebor6
Hi! I installed the phocagallery module and published it on my homepage in order to have a quick view on the content of the image. The big problem is the following
The images as the icons are out of the square. I can't understand the reason. If I try to modify the settings from the admin panel (in the component) I can see that the shape of the square is adjusted but when I regenerate the thumbnail the new image will present the same problem in the picture above.
I think that is a problem of the module because in the other cases there are no problem (when I click on the menu so when I use directly the component) as you can see:
Thanks a lot
Re: thumbnail problem
Posted: 06 Dec 2015, 02:16
by Benno
Hi,
which Joomla! version do you use?
which Phoca Gallery Component version do you use?
which Phoca Gallery Image Module version do you use?
the URL would be very helpful (to see the problem...)
Kind regards,
Benno
Re: thumbnail problem
Posted: 06 Dec 2015, 11:26
by otrebor6
I'm using Joomla 3.4.5 with Phocagallery 4.2.1 and Module version 4.2.1
This is the link
http://www.unicass.altervista.org/
Re: thumbnail problem
Posted: 06 Dec 2015, 11:39
by Benno
Hi,
try to add:
Code: Select all
.pg-cv-box-mod-ri {
height: 370px;
width: 270px;
}
at the end of your template.css
Kind regards,
Benno
Re: thumbnail problem
Posted: 06 Dec 2015, 16:07
by otrebor6
Benno, thank you.
I tried to put the code in the css, but it doesn't work. Look here:
By using Firebug it seems that somewhere it was generated the wrong dimension (340px x 250px) and there is no way to edit it.
Am I wrong something?
Re: thumbnail problem
Posted: 06 Dec 2015, 20:16
by Benno
HI,
ok, then try to change the above code from:
Code: Select all
.pg-cv-box-mod-ri {
height: 370px;
width: 270px;
}
to:
Code: Select all
.pg-cv-box-mod-ri {
height: 370px !important;
width: 270px !important;
}
Thanks to Christine for this hint.
Kind regards,
Benno
Re: thumbnail problem
Posted: 06 Dec 2015, 22:47
by otrebor6
Thank you a lot!!
Re: [Solved] thumbnail problem
Posted: 07 Dec 2015, 00:02
by Benno
You're welcome!
And again, now in german: Danke an Christine, das "ist nicht auf meinem Mist gewachsen.."
Kind regards,
Benno
Re: thumbnail problem
Posted: 07 Dec 2015, 00:31
by christine
@ Benno: thank you also, I'm
Machst mich verlegen.
otrebor6 wrote:Am I wrong something?
absolutely not
The !important; was "important"
because of "hard coded" in index.php/template:
Code: Select all
<style type="text/css">
.pg-cv-box-mod-ri {
height: 340px;
width: 250px;}
you can see this also on your screenshot (index):69 and this will "overwrite" CSS parameters.
Whenever you need exact explanation about e.g. documentation Benno & Jan will help you!
https://www.phoca.cz/documentation
Kind regards, Christine