Generate thumbs with percentage rather than px?

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Sun Jul 04, 2010 8:26 pm
Wouldn't that be handy in some cases, for example when source images are both landscape and standing?
User avatar
Junior Boarder

GK User
Sun Jul 04, 2010 9:50 pm
Hi

Maybe we add this option on next update.
For now, NSP GK4 only provides thumbnails in px.

If you want, there's a way to make this using hard code.

Disable "Create thumbnails" option, set "0" to both width and height image dimension values and add this code:

Code: Select all
#nsp-moduleID .nsp_image{width: 50%;height:50%}


moduleID is the unique ID of the module. So it will only effect this specific module.

Beware that this will not use thumbnails both resize image.

Cheers ;)
User avatar
Platinum Boarder

GK User
Mon Jul 19, 2010 11:34 am
THX for the solution. I just like to know, in what file it have to add the code.
User avatar
Fresh Boarder

teitbite
Mon Jul 19, 2010 7:19 pm
Hi

I do not know what template You use so please try to add this to gk_stuff.css (I think it comes with this module).
User avatar
Moderator

GK User
Tue Jul 20, 2010 5:53 pm
I'm using the TWN template. However I could not find the gt_stuff.css.
User avatar
Fresh Boarder

teitbite
Wed Jul 21, 2010 12:45 pm
Hi

Please see in templates/gk_twn/css/gk_stuff.css
User avatar
Moderator

GK User
Mon Jul 26, 2010 3:15 pm
THX
Well it works, however the images are in the right ratio but will not scale the 50%

Here ist the link : www.nachrichten-kl.de
User avatar
Fresh Boarder

GK User
Thu Jul 29, 2010 11:31 am
Any solution to generate the right ration for the thumbs?
User avatar
Fresh Boarder

GK User
Fri Aug 06, 2010 8:04 am
Is ther no other solution to set the ration on thumbs?
User avatar
Fresh Boarder

teitbite
Sun Aug 08, 2010 1:10 pm
Hi

Sorry but all You can do is to set the right dimensions to the thumbs. Additionaly You can set whe size in css, but scaling to the % values are diffrently implemented in some browsers so it's not a good way.
User avatar
Moderator

GK User
Sun Aug 08, 2010 9:17 pm
THX a lot. Will try to find a workaround to convert the right values of pictures before uploading them.
Once again
THX
User avatar
Fresh Boarder


cron