- Posts: 23
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- creat thumbnail by width and height. you can input height value on K2 control center
creat thumbnail by width and height. you can input height value on K2 control center
- vanshion
-
Topic Author
- Offline
- Junior Member
Lukas said:Well, this is wrong:
if (JRequest::getInt('itemImageS')) {
$imageWidth = JRequest::getInt('itemImageS');
$imageHeight = JRequest::getInt('itemImageS_height');
} else {
$imageWidth = $params->get('itemImageS', '200');
$imageHeight = $params->get('itemImageS_height', '200');
}
should be? :
if (JRequest::getInt('itemImageS')) {
$imageWidth = JRequest::getInt('itemImageS');
} else {
$imageWidth = $params->get('itemImageS', '200');
}
if (JRequest::getInt('itemImageS_height')) {
$imageHeight = JRequest::getInt('itemImageS_height');
} else {
$imageHeight = $params->get('itemImageS_height', '200');
}
p.s. for clear view, am just frontendguy, so php i guess+assemble+tweak ;)
Please Log in or Create an account to join the conversation.
- vanshion
-
Topic Author
- Offline
- Junior Member
- Posts: 23
thank you.
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
Then we can delete that our confusing looks like posts?...
l
Please Log in or Create an account to join the conversation.
- vanshion
-
Topic Author
- Offline
- Junior Member
- Posts: 23
Lukas said:Great, we can celebrate :) Can you put here that one "simple&real" solution for others? Then we can delete that our confusing looks like posts?...
l
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
It's how OSS users with mood sometimes can works ;)
Regards,
l
Please Log in or Create an account to join the conversation.
- vanshion
-
Topic Author
- Offline
- Junior Member
- Posts: 23
then I have uploaded that. everone can download now.
Lukas said:Thanks. It's how OSS users with mood sometimes can works ;)
Regards,
l
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
I missed link here? ? Come on, promote link to your site with solution here...
l
Please Log in or Create an account to join the conversation.
- vanshion
-
Topic Author
- Offline
- Junior Member
- Posts: 23
but i can't delete the administrator.rar
I have to go to bed now..it's dark.
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
you want some semi-solution that is somewhere in middle from "original" to "all to params" way . I've got it?
l
Please Log in or Create an account to join the conversation.
- vanshion
-
Topic Author
- Offline
- Junior Member
- Posts: 23
param menu="hide" name="catImageHeigh" type="text" default="100" size="4" label="Category image height (in px)" description="" /
add these code to 33 line on config.xml
param menu="hide" name="userImageHeight" type="text" default="100" size="4" label="User image (avatar) width (in px)" description="" /
these can set height value about category image and userimage.
Please Log in or Create an account to join the conversation.
- vanshion
-
Topic Author
- Offline
- Junior Member
- Posts: 23
$handle->image_ratio_crop = true; //crop image
$handle->image_ratio_crop = false; //don't crop image
this line code can do this! but I haven't found which XML is. Maybe we should add a new XML file. I believe Lukas can achieve it
Sébastien said:Yes ! I think the original settings were good for some people or for some content (for exemple for DVD reviews when you l
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
Regards,
l
panagiotis said:However I have a question: If I apply this hack will I need to re-upload all the images in my K2 items?
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
"function save" seems to be responsible for thumbs creation...
I don't know how exactly your "hack for the automatically cache rebuild" works... But, you are on good way ;)
l
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
l
Please Log in or Create an account to join the conversation.
- miquel
-
- Offline
- New Member
- Posts: 5
Please Log in or Create an account to join the conversation.
- A Schlumberger
-
- Offline
- New Member
- Posts: 4
I will need to try with the category images.
Thanks !
Please Log in or Create an account to join the conversation.
- BBC
-
- Offline
- Platinum Member
- Posts: 663
I removed comment "//" from $handle->image_ratio_y = true; for those large images. Category thumbs are not sa important. They can be cropped.
Please Log in or Create an account to join the conversation.
- juju
-
- Offline
- Premium Member
- Posts: 119
For now, I use the hack for cache image here :
community.getk2.org/forum/topics/image-cache-questions?commentId=3536014%3AComment%3A19447
And I want to add your hack to add possibility to fix height in config files, What I need to do ?
Thanks ;)
Please Log in or Create an account to join the conversation.
- juju
-
- Offline
- Premium Member
- Posts: 119
Could you post all the files you've modify to have the complete hack ?
Thanks ;)
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- creat thumbnail by width and height. you can input height value on K2 control center