Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • theprist Friend
    #141405

    How can i disable the resize function of the images from articles in frontpage?

    scotty Friend
    #305682

    I’m not certain with Mica but normally enter 0 (zero) as the width and height.

    theprist Friend
    #305734

    Every image i put in an article on the frontpage is resized an cropped.
    This is the root of the resized images:
    images/resized/images/stories/pa.jpg
    It,s like an photo gallery module who is resizing the photos.:((
    Sorry for my bad english.:p

    theprist Friend
    #305738

    I found the solution on another topic in this forum::D
    ———————————————————————–
    I have looked through ja_templateTools_15.php and found the problem – a previous post on this issue suggested changing $crop=1 to $crop = 0 – I thought I had made that change but after rechecking I had not.

    starting @ line # 448 make the change to “$crop = 0”

    function processImage ( &$img, $width, $height, $crop=0) {
    if(!$img) return;

    $img = str_replace(JURI::base(),”,$img);
    $img = str_replace(“‘”,”,$img);
    $img = rawurldecode($img);
    $imagesurl = (file_exists(JPATH_SITE .’/’.$img)) ? JA_Tools::jaResize($img,$width,$height, $crop) : ” ;
    return $imagesurl;
    }

    function jaResize($image,$max_width,$max_height, $crop=0){
    $path =JPATH_SITE;
    $imgInfo = getimagesize($path.’/’.$image);
    $width = $imgInfo[0];
    $height = $imgInfo[1];
    if(!$max_width && !$max_height) {
    $max_width = $width;
    $max_height = $height;
    }else{
    —————————————————
    Thanks anyway!:)

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  theprist 15 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum